diff options
author | Alexei Starovoitov <ast@fb.com> | 2017-03-31 06:45:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-01 21:45:57 +0200 |
commit | 3084887378f5271daedd52cc3372cb8011ad39b6 (patch) | |
tree | 718b917960b188fc93def7948d09bf9d30ff71c3 /tools/lib/bpf/bpf.h | |
parent | bpf: introduce BPF_PROG_TEST_RUN command (diff) | |
download | linux-3084887378f5271daedd52cc3372cb8011ad39b6.tar.xz linux-3084887378f5271daedd52cc3372cb8011ad39b6.zip |
tools/lib/bpf: add support for BPF_PROG_TEST_RUN command
add support for BPF_PROG_TEST_RUN command to libbpf.a
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Wang Nan <wangnan0@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | tools/lib/bpf/bpf.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h index 93f021932623..edb4daeff7a5 100644 --- a/tools/lib/bpf/bpf.h +++ b/tools/lib/bpf/bpf.h @@ -47,6 +47,8 @@ int bpf_obj_get(const char *pathname); int bpf_prog_attach(int prog_fd, int attachable_fd, enum bpf_attach_type type, unsigned int flags); int bpf_prog_detach(int attachable_fd, enum bpf_attach_type type); - +int bpf_prog_test_run(int prog_fd, int repeat, void *data, __u32 size, + void *data_out, __u32 *size_out, __u32 *retval, + __u32 *duration); #endif |