diff options
| author | Jiri Olsa <[email protected]> | 2023-09-20 21:31:45 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2023-09-25 23:37:45 +0000 |
| commit | 85981e0f9e9fc882578f0ad7488d6c59193dd187 (patch) | |
| tree | c693b65caa5a8a700c04677fcce5e8db95a7a706 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | selftests/bpf: Add test for recursion counts of perf event link kprobe (diff) | |
| download | kernel-85981e0f9e9fc882578f0ad7488d6c59193dd187.tar.gz kernel-85981e0f9e9fc882578f0ad7488d6c59193dd187.zip | |
selftests/bpf: Add test for recursion counts of perf event link tracepoint
Adding selftest that puts kprobe on bpf_fentry_test1 that calls bpf_printk
and invokes bpf_trace_printk tracepoint. The bpf_trace_printk tracepoint
has test[234] programs attached to it.
Because kprobe execution goes through bpf_prog_active check, programs
attached to the tracepoint will fail the recursion check and increment the
recursion_misses stats.
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Tested-by: Song Liu <[email protected]>
Reviewed-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
