aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-12-09 11:38:34 -0800
committerAndrii Nakryiko <[email protected]>2021-12-10 15:29:18 -0800
commit2eda2145ebfc76569fd088f46356203fc0c785a1 (patch)
treea9b97de3c8ca6c1e92b54d66565ea70193488041 /tools/perf/scripts/python/syscall-counts.py
parentad9a7f96445b70c415d8e193f854321b110c890a (diff)
libbpf: Preserve kernel error code and remove kprobe prog type guessing
Instead of rewriting error code returned by the kernel of prog load with libbpf-sepcific variants pass through the original error. There is now also no need to have a backup generic -LIBBPF_ERRNO__LOAD fallback error as bpf_prog_load() guarantees that errno will be properly set no matter what. Also drop a completely outdated and pretty useless BPF_PROG_TYPE_KPROBE guess logic. It's not necessary and neither it's helpful in modern BPF applications. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions