]> granicus.if.org Git - strace/commit
bpf: add support for new fields in BPF_PROG_TEST_RUN
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 2 Jul 2019 11:49:15 +0000 (11:49 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 2 Jul 2019 11:49:15 +0000 (11:49 +0000)
commit20e286881366499bf33b4bf35e740994562f1b4e
treea6d4871868822cb1fc7b938aa8c6833ac9f184b6
parentaf02a147ba5a56d61fe6248ea453472dfefcec3a
bpf: add support for new fields in BPF_PROG_TEST_RUN

* bpf_attr.h (struct BPF_PROG_TEST_RUN_struct): Add ctx_size_in,
ctx_size_out, ctx_in, and ctx_out fields.
* bpf.c (BEGIN_BPF_CMD_DECODER(BPF_PROG_TEST_RUN)): Decode these fields
introduced by Linux kernel commit v5.2-rc1~133^2~193^2~6.
* tests/bpf.c (BPF_PROG_TEST_RUN_checks): Check it.
bpf.c
bpf_attr.h
tests/bpf.c