]> granicus.if.org Git - strace/commit
bpf: enhance BPF_OBJ_GET_INFO_BY_FD decoder
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 1 Jun 2018 00:53:00 +0000 (02:53 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 2 Jun 2018 16:32:10 +0000 (16:32 +0000)
commit05813058edac32681fec8f7714d3e48117b561e0
tree5929c886f094860f0448b91515dbf711b2b4a713
parentec27280cf3b21e6b34775786ec23785973fc7384
bpf: enhance BPF_OBJ_GET_INFO_BY_FD decoder

* bpf.c (print_bpf_map_info): Print only those fields that are
present in the structure, as it has been growing over time.
(print_bpf_prog_info): Likewise.  Print map_ids field as an array
of uint32_t instead of uint64_t; print "name" field.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
bpf.c