]> granicus.if.org Git - strace/commit
bpf: add support for btf_* fields in struct bpf_map_info
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 12 Mar 2019 11:17:20 +0000 (11:17 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 12 Mar 2019 11:17:20 +0000 (11:17 +0000)
commit27bd13d3664a6047e9431e01bd13fc04cc5e373b
treed253169d28b39807f55528cdb787b1ca8e62b0e4
parent14a9b6ca66109fc1231eb16e98a9ce4262fb610c
bpf: add support for btf_* fields in struct bpf_map_info

* bpf_attr.h (struct bpf_map_info_struct): Add btf_fd, btf_key_type_id,
and btf_value_type_id fields.
* bpf.c (print_bpf_map_info): Decode btf_fd, btf_key_type_id,
and btf_value_type_id fields introduced by Linux commits
v4.18-rc1~114^2~223^2~21^2~4 and v4.18-rc1~114^2~148^2~7^2~2.
* tests/bpf-obj_get_info_by_fd.c (main): Update expected output.
bpf.c
bpf_attr.h
tests/bpf-obj_get_info_by_fd.c