diff options
| author | Paul Chaignon <paul@cilium.io> | 2020-10-26 18:46:05 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-10-26 19:17:24 +0100 |
| commit | 97de33592d4162ca8b1f82300ab57404bf686e6e (patch) | |
| tree | 107d6e17f1731eaf1b2bc7115afd511ec95a459d /sys/linux | |
| parent | fde88e12eb25ce1ff9b3bb7501d36c408e914f1e (diff) | |
sys/linux: add BPF_PROG_BIND_MAP bpf(2) command
This new command was introduced in commit ef15314 ("bpf: Add
BPF_PROG_BIND_MAP syscall") upstream. The flags field is not currently
used.
Signed-off-by: Paul Chaignon <paul@cilium.io>
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/bpf.txt | 7 | ||||
| -rw-r--r-- | sys/linux/bpf.txt.const | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt index 67a70000f..d1050edf3 100644 --- a/sys/linux/bpf.txt +++ b/sys/linux/bpf.txt @@ -64,6 +64,7 @@ bpf$ITER_CREATE(cmd const[BPF_ITER_CREATE], arg ptr[in, bpf_iter_create_arg], si bpf$LINK_GET_FD_BY_ID(cmd const[BPF_LINK_GET_FD_BY_ID], arg ptr[in, bpf_link_id], size len[arg]) fd_bpf_link bpf$LINK_GET_NEXT_ID(cmd const[BPF_LINK_GET_NEXT_ID], arg ptr[inout, bpf_link_get_next_id_arg], size len[arg]) bpf$LINK_DETACH(cmd const[BPF_LINK_DETACH], arg ptr[in, fd_bpf_link], size len[arg]) +bpf$PROG_BIND_MAP(cmd const[BPF_PROG_BIND_MAP], arg ptr[in, bpf_prog_bind_map_arg], size len[arg]) bpf_map_create_arg { type flags[bpf_map_type, int32] @@ -469,6 +470,12 @@ bpf_prog_get_fd_by_id_arg { flags const[0, int32] } +bpf_prog_bind_map_arg { + prog_fd fd_bpf_prog + map_fd fd_bpf_map + flags const[0, int32] +} + bpf_get_prog_info_arg { prog fd_bpf_prog len len[info, int32] diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const index 7dda20e41..7f8e0defd 100644 --- a/sys/linux/bpf.txt.const +++ b/sys/linux/bpf.txt.const @@ -143,6 +143,7 @@ BPF_OBJ_NAME_LEN = 16 BPF_OBJ_PIN = 6 BPF_OR0 = 4 BPF_PROG_ATTACH = 8 +BPF_PROG_BIND_MAP = 35 BPF_PROG_DETACH = 9 BPF_PROG_GET_FD_BY_ID = 13 BPF_PROG_GET_NEXT_ID = 11 |
