]> granicus.if.org Git - strace/commit
bpf: enhance BPF_OBJ_GET_INFO_BY_FD decoder further
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 4 Jun 2018 01:11:05 +0000 (01:11 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 4 Jun 2018 01:11:05 +0000 (01:11 +0000)
commitebdc322480f6897227600a89f46a6b9b6deff522
treef77537b0cedeb09d99b1e873af28ae4597071796
parent05813058edac32681fec8f7714d3e48117b561e0
bpf: enhance BPF_OBJ_GET_INFO_BY_FD decoder further

* bpf.c (print_ebpf_prog): Remove "decode" argument, all users updated.
(print_bpf_prog_info): Use the minimum of xlated_prog_len values on
entering and exiting syscall as the size of xlated_prog_insns array
to be decoded.  Likewise, use the minimum of nr_map_ids values on entering
and exiting syscall as the size of map_ids array to be decoded.
bpf.c