diff options
| author | Song Liu <[email protected]> | 2021-10-22 23:48:14 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2021-10-26 04:43:05 +0000 |
| commit | 20d1b54a52bd9a1d5d23a45dab75993ce2f1d617 (patch) | |
| tree | c9e04e910758f076c94c445121a09df0da51c3cb /tools/lib/bpf/libbpf_legacy.h | |
| parent | selftests/bpf: Skip all serial_test_get_branch_snapshot in vm (diff) | |
| download | kernel-20d1b54a52bd9a1d5d23a45dab75993ce2f1d617.tar.gz kernel-20d1b54a52bd9a1d5d23a45dab75993ce2f1d617.zip | |
selftests/bpf: Guess function end for test_get_branch_snapshot
Function in modules could appear in /proc/kallsyms in random order.
ffffffffa02608a0 t bpf_testmod_loop_test
ffffffffa02600c0 t __traceiter_bpf_testmod_test_writable_bare
ffffffffa0263b60 d __tracepoint_bpf_testmod_test_write_bare
ffffffffa02608c0 T bpf_testmod_test_read
ffffffffa0260d08 t __SCT__tp_func_bpf_testmod_test_writable_bare
ffffffffa0263300 d __SCK__tp_func_bpf_testmod_test_read
ffffffffa0260680 T bpf_testmod_test_write
ffffffffa0260860 t bpf_testmod_test_mod_kfunc
Therefore, we cannot reliably use kallsyms_find_next() to find the end of
a function. Replace it with a simple guess (start + 128). This is good
enough for this test.
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf_legacy.h')
0 files changed, 0 insertions, 0 deletions
