diff options
| author | Viktor Malik <[email protected]> | 2024-04-30 11:38:06 +0200 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-05-01 09:53:47 -0700 |
| commit | 8f8a024272f3e335854515b41638bdf89c6d3146 (patch) | |
| tree | ebd3594f73d8bd495851b1dc43559d04162656c7 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 9a1a2cb5a0e3531d68a2616663ddce49df85dfff (diff) | |
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 patch 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.
Signed-off-by: Viktor Malik <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/9085a8cb9a552de98e554deb22ff7e977d025440.1714469650.git.vmalik@redhat.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions