]> granicus.if.org Git - strace/commit
bpf: add support for map_name and map_ifindex fields in BPF_MAP_CREATE
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 5 Mar 2018 14:53:48 +0000 (15:53 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 12 Apr 2018 23:00:29 +0000 (23:00 +0000)
commit25a5961610e597c5e9fc5ccdd31a0e24bd2ff11b
tree2ae1e97d34d3f581fc07061e7e99745572eb72c1
parentb20f7446626a16c8fa7d56abec026e93244000a5
bpf: add support for map_name and map_ifindex fields in BPF_MAP_CREATE

* bpf.c (BEGIN_BPF_CMD_DECODER(BPF_MAP_CREATE)): Decode map_name
and map_ifindex fields that were added in Linux commits
v4.15-rc1~84^2~605^2~3 and v4.16-rc1~123^2~145^2~5^2~8, respectively.
* bpf_attr.h (struct BPF_MAP_CREATE_struct): Add map_name
and map_ifindex fields.
* tests/bpf.c (init_BPF_MAP_CREATE_attr7): New function.
(BPF_MAP_CREATE_checks): Remove const qualifier, add two more checks.
bpf.c
bpf_attr.h
tests/bpf.c