aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2020-12-07 22:43:26 -0800
committerDaniel Borkmann <[email protected]>2020-12-08 17:14:27 +0100
commit8bdd8e275ede9786d845b3ec952836e61fd824e9 (patch)
treeb2bd78289137cf215590fe134814a6494275b346 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
parent3546b9b8eced9799b35ef953f766a0973b17fda2 (diff)
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions