aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2019-12-13 17:43:32 -0800
committerAlexei Starovoitov <[email protected]>2019-12-15 15:58:05 -0800
commit01af3bf06755dc5cda7050fe5d898998e5775e63 (patch)
treefbfacf758d2ebf276a6ed08123ada06e8ae28f5e /tools/perf/scripts/python/stat-cpi.py
parent9f81654eebe8de7e0db15534816d8f6c84b2e1e5 (diff)
libbpf: Expose BPF program's function name
Add APIs to get BPF program function name, as opposed to bpf_program__title(), which returns BPF program function's section name. Function name has a benefit of being a valid C identifier and uniquely identifies a specific BPF program, while section name can be duplicated across multiple independent BPF programs. Add also bpf_object__find_program_by_name(), similar to bpf_object__find_program_by_title(), to facilitate looking up BPF programs by their C function names. Convert one of selftests to new API for look up. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions