aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-08-15 07:06:03 +0000
committerDaniel Borkmann <[email protected]>2021-08-16 22:45:08 +0000
commit3ec84f4b1638495ebff068a668dc417b4de5727e (patch)
treed3f711331cd4c4fd2ecd7c01cd68316ec81c3399 /net/unix/unix_bpf.c
parentlibbpf: Use BPF perf link when supported by kernel (diff)
downloadkernel-3ec84f4b1638495ebff068a668dc417b4de5727e.tar.gz
kernel-3ec84f4b1638495ebff068a668dc417b4de5727e.zip
libbpf: Add bpf_cookie support to bpf_link_create() API
Add ability to specify bpf_cookie value when creating BPF perf link with bpf_link_create() low-level API. Given BPF_LINK_CREATE command is growing and keeps getting new fields that are specific to the type of BPF_LINK, extend libbpf side of bpf_link_create() API and corresponding OPTS struct to accomodate such changes. Add extra checks to prevent using incompatible/unexpected combinations of fields. 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 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions