]> granicus.if.org Git - strace/commit
bpf: move definitions of bpf_attr structures to separate header file
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 2 Apr 2018 13:12:57 +0000 (13:12 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 4 Apr 2018 12:24:19 +0000 (12:24 +0000)
commitb93c952ba5a87b5c67a7660d19e02f6a0c5ea658
tree56a5a74148c71497983fcf7efb4a633dd01b6c6d
parent7eac1da9be7d43fff8190148ea956a07cc6850b5
bpf: move definitions of bpf_attr structures to separate header file

This also unifies decoders of bpf commands by moving common code
to new macros.

* bpf_attr.h: New file.
* Makefile.am (strace_SOURCES): Add it.
* bpf.c: Include it.
(DEF_BPF_CMD_DECODER): Rename to BEGIN_BPF_CMD_DECODER, add code common
to all decoders.  All users updated.
(END_BPF_CMD_DECODER): New macro, add its invocation to all users
of BEGIN_BPF_CMD_DECODER macro.
Makefile.am
bpf.c
bpf_attr.h [new file with mode: 0644]