selftests/bpf: Add test for recursive attachment of tracing progs
authorDmitrii Dolgov <9erthalion6@gmail.com>
Wed, 3 Jan 2024 19:05:45 +0000 (20:05 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 5 Jan 2024 04:40:14 +0000 (20:40 -0800)
commit5c5371e069e1ffc204dda8b20c609b170b823165
tree9c069886df0b11d18f024da451c384615b2f1200
parent19bfcdf9498aa968ea293417fbbc39e523527ca8
selftests/bpf: Add test for recursive attachment of tracing progs

Verify the fact that only one fentry prog could be attached to another
fentry, building up an attachment chain of limited size. Use existing
bpf_testmod as a start of the chain.

Acked-by: Jiri Olsa <olsajiri@gmail.com>
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Dmitrii Dolgov <9erthalion6@gmail.com>
Link: https://lore.kernel.org/r/20240103190559.14750-3-9erthalion6@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/recursive_attach.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/fentry_recursive.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/fentry_recursive_target.c [new file with mode: 0644]