aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorLuigi Rizzo <[email protected]>2020-10-05 15:45:28 -0700
committerAlexei Starovoitov <[email protected]>2020-10-06 11:36:10 -0700
commit8cee9107e72c93a52a7f2c58658c99887bdb05e0 (patch)
treec8cdbaf1cf46f3041cd949676a8c5bf533cb2201 /tools/perf/scripts/python/exported-sql-viewer.py
parentfd08f944e0c49b26ee80b87e3c7dc0aa4f045ef3 (diff)
bpf, libbpf: Use valid btf in bpf_program__set_attach_target
bpf_program__set_attach_target(prog, fd, ...) will always fail when fd = 0 (attach to a kernel symbol) because obj->btf_vmlinux is NULL and there is no way to set it (at the moment btf_vmlinux is meant to be temporary storage for use in bpf_object__load_xattr()). Fix this by using libbpf_find_vmlinux_btf_id(). At some point we may want to opportunistically cache btf_vmlinux so it can be reused with multiple programs. Signed-off-by: Luigi Rizzo <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Acked-by: Petar Penkov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions