diff options
author | 2020-12-07 22:43:26 -0800 | |
---|---|---|
committer | 2020-12-08 17:14:27 +0100 | |
commit | 8bdd8e275ede9786d845b3ec952836e61fd824e9 (patch) | |
tree | b2bd78289137cf215590fe134814a6494275b346 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | xsk: Validate socket state in xsk_recvmsg, prior touching socket members (diff) | |
download | wireguard-linux-8bdd8e275ede9786d845b3ec952836e61fd824e9.tar.xz wireguard-linux-8bdd8e275ede9786d845b3ec952836e61fd824e9.zip |
bpf: Return -ENOTSUPP when attaching to non-kernel BTF
Return -ENOTSUPP if tracing BPF program is attempted to be attached with
specified attach_btf_obj_fd pointing to non-kernel (neither vmlinux nor
module) BTF object. This scenario might be supported in the future and isn't
outright invalid, so -EINVAL isn't the most appropriate error code.
Suggested-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20201208064326.667389-1-andrii@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions