]> granicus.if.org Git - strace/commit
tests: check BPF_OBJ_GET_INFO_BY_FD decoding
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 1 Jun 2018 00:55:21 +0000 (02:55 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 4 Jun 2018 01:11:05 +0000 (01:11 +0000)
commit93ef3d32aba0e5d6604896853012563fe0be4614
tree968643852f9dede40623af73271dcfeec1754b82
parentebdc322480f6897227600a89f46a6b9b6deff522
tests: check BPF_OBJ_GET_INFO_BY_FD decoding

* tests/bpf-obj_get_info_by_fd-prog-v.c: New file.
* tests/bpf-obj_get_info_by_fd-prog.c: Likewise.
* tests/bpf-obj_get_info_by_fd-v.c: Likewise.
* tests/bpf-obj_get_info_by_fd.c: Likewise.
* configure.ac (AC_CHECK_HEADERS): Check for struct bpf_insn,
struct bpf_map_info, and struct bpf_prog_info.
* tests/pure_executables.list: Add bpf-obj_get_info_by_fd,
bpf-obj_get_info_by_fd-v, bpf-obj_get_info_by_fd-prog, and
bpf-obj_get_info_by_fd-prog-v.
* tests/.gitignore: Likewise.
* tests/gen_tests.in (bpf-obj_get_info_by_fd,
bpf-obj_get_info_by_fd-v, bpf-obj_get_info_by_fd-prog,
bpf-obj_get_info_by_fd-prog-v): New tests.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
configure.ac
tests/.gitignore
tests/Makefile.am
tests/bpf-obj_get_info_by_fd-prog-v.c [new file with mode: 0644]
tests/bpf-obj_get_info_by_fd-prog.c [new file with mode: 0644]
tests/bpf-obj_get_info_by_fd-v.c [new file with mode: 0644]
tests/bpf-obj_get_info_by_fd.c [new file with mode: 0644]
tests/gen_tests.in
tests/pure_executables.list