aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tracing_struct.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2023-04-18 00:21:48 +0000
committerAlexei Starovoitov <[email protected]>2023-04-18 19:45:11 +0000
commit94dccba7952072ce448a3278c66405fbb2a44ec5 (patch)
treec069a1e9e77fac7fa75e3d6e249d3cf60e82a219 /tools/testing/selftests/bpf/prog_tests/tracing_struct.c
parentlibbpf: move bpf_for(), bpf_for_each(), and bpf_repeat() into bpf_helpers.h (diff)
downloadkernel-94dccba7952072ce448a3278c66405fbb2a44ec5.tar.gz
kernel-94dccba7952072ce448a3278c66405fbb2a44ec5.zip
libbpf: mark bpf_iter_num_{new,next,destroy} as __weak
Mark bpf_iter_num_{new,next,destroy}() kfuncs declared for bpf_for()/bpf_repeat() macros as __weak to allow users to feature-detect their presence and guard bpf_for()/bpf_repeat() loops accordingly for backwards compatibility with old kernels. Now that libbpf supports kfunc calls poisoning and better reporting of unresolved (but called) kfuncs, declaring number iterator kfuncs in bpf_helpers.h won't degrade user experience and won't cause unnecessary kernel feature dependencies. Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions