aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/struct_ops_module.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2024-05-01 16:53:48 +0000
committerAndrii Nakryiko <[email protected]>2024-05-01 16:53:48 +0000
commitd913aaa990b6024ce815b66e6ce64d88ba2cd0eb (patch)
treea8820f8570a0b6634fc1f0e84099a18c8fac9137 /tools/testing/selftests/bpf/progs/struct_ops_module.c
parentMerge branch 'use network helpers, part 3' (diff)
parentselftests/bpf: add tests for the "module: Function" syntax (diff)
downloadkernel-d913aaa990b6024ce815b66e6ce64d88ba2cd0eb.tar.gz
kernel-d913aaa990b6024ce815b66e6ce64d88ba2cd0eb.zip
Merge branch 'libbpf-support-module-function-syntax-for-tracing-programs'
Viktor Malik says: ==================== libbpf: support "module:function" syntax for tracing programs In some situations, it is useful to explicitly specify a kernel module to search for a tracing program target (e.g. when a function of the same name exists in multiple modules or in vmlinux). This change enables that by allowing the "module:function" syntax for the find_kernel_btf_id function. Thanks to this, the syntax can be used both from a SEC macro (i.e. `SEC(fentry/module:function)`) and via the bpf_program__set_attach_target API call. --- Changes in v2: - stylistic changes (suggested by Andrii) - added Andrii's ack to the second patch ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andrii Nakryiko <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/struct_ops_module.c')
0 files changed, 0 insertions, 0 deletions