Check that structures defined by bpf_attr.h match system union bpf_attr
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 2 Apr 2018 19:10:55 +0000 (19:10 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 4 Apr 2018 12:24:19 +0000 (12:24 +0000)
commit1802fe1ea618989a54ec55cc3eefe7a75f84c8e1
tree8a8723adc2bd3bd31603d70cbdd039e53b883a65
parent442560c87532abcb494d2c461f2977aade74d35f
Check that structures defined by bpf_attr.h match system union bpf_attr

* gen_bpf_attr_check.sh: New file.
* Makefile.am (EXTRA_DIST): Add it.
(strace_SOURCES_check): New variable.
(strace_SOURCES): Add $(strace_SOURCES_check).
(BUILT_SOURCES, CLEANFILES): Add bpf_attr_check.c.
(bpf_attr_check.c): New rule.
(sys_func_h_sources): New variable.
(sys_func.h): Use it instead of strace_SOURCES_c.
* .gitignore: Add /bpf_attr_check.c.
.gitignore
Makefile.am
gen_bpf_attr_check.sh [new file with mode: 0755]