libbpf: Support batch_size option to bpf_prog_test_run
authorToke Høiland-Jørgensen <toke@redhat.com>
Wed, 9 Mar 2022 10:53:44 +0000 (11:53 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 9 Mar 2022 22:19:22 +0000 (14:19 -0800)
commit24592ad1ab18416a850f03d46d07ae483f808895
tree6b3d773c0a8ecd8efc5753e77221698e55d93a29
parent1a7551f15097dff30cf0853117b2f8077bb84f0a
libbpf: Support batch_size option to bpf_prog_test_run

Add support for setting the new batch_size parameter to BPF_PROG_TEST_RUN
to libbpf; just add it as an option and pass it through to the kernel.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20220309105346.100053-4-toke@redhat.com
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf.h