]> granicus.if.org Git - strace/commit
bpf: move print_big_u64_addr inside print_ebpf_prog
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 1 Jun 2018 00:36:59 +0000 (02:36 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 2 Jun 2018 16:32:10 +0000 (16:32 +0000)
commitd4b2f1c4b64936d71a887750a85f85239290870e
treef648114d7bf6490ab34aedfefcb230a1fd5905eb
parent401818ec3fc22825488698fca1c3e68d51355501
bpf: move print_big_u64_addr inside print_ebpf_prog

* bpf.c (print_ebpf_prog): Add static qualifier.  Change the type
of "addr" argument from kernel_ulong_t to uint64_t, print it using
print_big_u64_addr.
(BEGIN_BPF_CMD_DECODER(BPF_PROG_LOAD), print_bpf_prog_info): Do not call
print_big_u64_addr before print_ebpf_prog.

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