]> granicus.if.org Git - strace/commit
bpf: update BPF_MAP_CREATE decoding
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 19 Nov 2017 23:38:58 +0000 (23:38 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Nov 2017 21:39:59 +0000 (21:39 +0000)
commit2d95b53db422529a6e0dba1662f6375794b8a851
tree0bec3ddf0586e95c4ffd66675ce016b8d35a660f
parent7f241f959b35197670e312031e4842c271ff3f2a
bpf: update BPF_MAP_CREATE decoding

Implement decoding of union bpf_attr.numa_node field for BPF_MAP_CREATE
command introduced by linux kernel commit v4.14-rc1~130^2~196^2~1.

* configure.ac: Check for numa_node member of union bpf_attr
instead of inner_map_fd.
(decode_BPF_MAP_CREATE): Add numa_node field to the structure, print it.
* NEWS: Mention this.
* tests/bpf.c: Update macro guards of BPF_MAP_CREATE decoder test.
(init_BPF_MAP_CREATE_first, print_BPF_MAP_CREATE_attr): Update expected
output.
(init_BPF_MAP_CREATE_attr): Initialize numa_node field, update offset.
NEWS
bpf.c
configure.ac
tests/bpf.c