Commit d2061f1
bpf: Don't run arg-tracking analysis twice on main subprog
Because subprog 0, the main subprog, is considered a global function,
we end up running the arg-tracking dataflow analysis twice on it. That
results in slightly longer verification but mostly in more verbose
verifier logs. This patch fixes it by keeping only the iteration over
global subprogs.
When running over all of Cilium's programs with BPF_LOG_LEVEL2, this
reduces verbosity by ~20% on average.
Fixes: bf0c571 ("bpf: introduce forward arg-tracking dataflow analysis")
Signed-off-by: Paul Chaignon <[email protected]>1 parent ee9631b commit d2061f1
1 file changed
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1914 | 1914 | | |
1915 | 1915 | | |
1916 | 1916 | | |
1917 | | - | |
1918 | | - | |
1919 | | - | |
1920 | | - | |
1921 | | - | |
1922 | | - | |
1923 | | - | |
1924 | | - | |
1925 | | - | |
1926 | 1917 | | |
1927 | 1918 | | |
1928 | 1919 | | |
| |||
1934 | 1925 | | |
1935 | 1926 | | |
1936 | 1927 | | |
| 1928 | + | |
| 1929 | + | |
1937 | 1930 | | |
1938 | 1931 | | |
1939 | 1932 | | |
| |||
0 commit comments