aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2019-12-13 17:43:25 -0800
committerAlexei Starovoitov <[email protected]>2019-12-15 15:58:04 -0800
commit0d13bfce023ac7cef4d0a50b83750254ce31c479 (patch)
tree2a0b25e703e11009c64ec522b6e00eef85ac701c /tools/perf/scripts/python/syscall-counts-by-pid.py
parentaa915931ac3e53ccf371308e6750da510e3591dd (diff)
libbpf: Don't require root for bpf_object__open()
Reorganize bpf_object__open and bpf_object__load steps such that bpf_object__open doesn't need root access. This was previously done for feature probing and BTF sanitization. This doesn't have to happen on open, though, so move all those steps into the load phase. This is important, because it makes it possible for tools like bpftool, to just open BPF object file and inspect their contents: programs, maps, BTF, etc. For such operations it is prohibitive to require root access. On the other hand, there is a lot of custom libbpf logic in those steps, so its best avoided for tools to reimplement all that on their own. 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/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions