You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some kernels builds might inline vfs_getattr call within
fstat syscall code path, so fentry/vfs_getattr trampoline
is not called.
I'm not sure how to handle this in some generic way other
than use some other function, but that might get inlined at
some point as well.
Adding flags that indicate trampolines were called and failing
the test if neither of them got called.
$ sudo ./test_progs -t d_path
test_d_path:PASS:setup 0 nsec
...
trigger_fstat_events:PASS:trigger 0 nsec
test_d_path:FAIL:124 trampolines not called
#22 d_path:FAIL
Summary: 0/0 PASSED, 0 SKIPPED, 1 FAILED
If only one trampoline is called, it's still enough to test
the helper, so only warn about missing trampoline call and
continue in test.
$ sudo ./test_progs -t d_path -v
test_d_path:PASS:setup 0 nsec
...
trigger_fstat_events:PASS:trigger 0 nsec
fentry/vfs_getattr not called
#22 d_path:OK
Summary: 1/0 PASSED, 0 SKIPPED, 0 FAILED
Signed-off-by: Jiri Olsa <[email protected]>
---
.../testing/selftests/bpf/prog_tests/d_path.c | 25 +++++++++++++++----
.../testing/selftests/bpf/progs/test_d_path.c | 7 ++++++
2 files changed, 27 insertions(+), 5 deletions(-)
0 commit comments