aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorYonghong Song <[email protected]>2020-05-14 05:32:05 +0000
committerAlexei Starovoitov <[email protected]>2020-05-14 19:50:10 +0000
commite92888c72fbdc6f9d07b3b0604c012e81d7c0da7 (patch)
treeb2ad05c336d5bb8cf8cbbc5081f8848338516263 /tools/perf/scripts/python/syscall-counts-by-pid.py
parentsecurity: Fix the default value of secid_to_secctx hook (diff)
downloadkernel-e92888c72fbdc6f9d07b3b0604c012e81d7c0da7.tar.gz
kernel-e92888c72fbdc6f9d07b3b0604c012e81d7c0da7.zip
bpf: Enforce returning 0 for fentry/fexit progs
Currently, tracing/fentry and tracing/fexit prog return values are not enforced. In trampoline codes, the fentry/fexit prog return values are ignored. Let us enforce it to be 0 to avoid confusion and allows potential future extension. This patch also explicitly added return value checking for tracing/raw_tp, tracing/fmod_ret, and freplace programs such that these program return values can be anything. The purpose are two folds: 1. to make it explicit about return value expectations for these programs in verifier. 2. for tracing prog_type, if a future attach type is added, the default is -ENOTSUPP which will enforce to specify return value ranges explicitly. Fixes: fec56f5890d9 ("bpf: Introduce BPF trampoline") Signed-off-by: Yonghong Song <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[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