aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-08-15 07:05:56 +0000
committerDaniel Borkmann <[email protected]>2021-08-16 22:45:07 +0000
commit652c1b17b85b9c195978c051aa283027529db1fe (patch)
treed4c4f634ab8cefc26a85c4ea225936a551e509ac /net/unix/unix_bpf.c
parentbpf: Refactor BPF_PROG_RUN_ARRAY family of macros into functions (diff)
downloadkernel-652c1b17b85b9c195978c051aa283027529db1fe.tar.gz
kernel-652c1b17b85b9c195978c051aa283027529db1fe.zip
bpf: Refactor perf_event_set_bpf_prog() to use struct bpf_prog input
Make internal perf_event_set_bpf_prog() use struct bpf_prog pointer as an input argument, which makes it easier to re-use for other internal uses (coming up for BPF link in the next patch). BPF program FD is not as convenient and in some cases it's not available. So switch to struct bpf_prog, move out refcounting outside and let caller do bpf_prog_put() in case of an error. This follows the approach of most of the other BPF internal functions. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions