diff options
| author | Jiri Olsa <[email protected]> | 2021-10-03 16:49:25 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2021-10-06 19:34:02 +0000 |
| commit | 189c83bdde850e1fc8bb347f813cdd8776ce7abf (patch) | |
| tree | 624a8660d694d394402aac03f1543f2b26cae7dd /tools/testing/selftests/bpf/prog_tests/tcp_rtt.c | |
| parent | bpf: Use $(pound) instead of \# in Makefiles (diff) | |
| download | kernel-189c83bdde850e1fc8bb347f813cdd8776ce7abf.tar.gz kernel-189c83bdde850e1fc8bb347f813cdd8776ce7abf.zip | |
selftest/bpf: Switch recursion test to use htab_map_delete_elem
Currently the recursion test is hooking __htab_map_lookup_elem
function, which is invoked both from bpf_prog and bpf syscall.
But in our kernel build, the __htab_map_lookup_elem gets inlined
within the htab_map_lookup_elem, so it's not trigered and the
test fails.
Fixing this by using htab_map_delete_elem, which is not inlined
for bpf_prog calls (like htab_map_lookup_elem is) and is used
directly as pointer for map_delete_elem, so it won't disappear
by inlining.
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/YVnfFTL/3T6jOwHI@krava
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_rtt.c')
0 files changed, 0 insertions, 0 deletions
