diff options
author | Alexei Starovoitov <ast@kernel.org> | 2021-05-19 04:40:32 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-05-19 16:35:12 +0300 |
commit | 5d67f349590ddc94b6d4e25f19085728db9de697 (patch) | |
tree | 2c7255f37098da2c2e894b6562db9229e023fd25 /tools/lib/bpf/skel_internal.h | |
parent | 3d431677687652808a9c9cf9e6c59dbeaf4a1f4d (diff) | |
download | linux-5d67f349590ddc94b6d4e25f19085728db9de697.tar.xz |
bpf: Add cmd alias BPF_PROG_RUN
Add BPF_PROG_RUN command as an alias to BPF_RPOG_TEST_RUN to better
indicate the full range of use cases done by the command.
Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20210519014032.20908-1-alexei.starovoitov@gmail.com
Diffstat (limited to 'tools/lib/bpf/skel_internal.h')
-rw-r--r-- | tools/lib/bpf/skel_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/skel_internal.h b/tools/lib/bpf/skel_internal.h index 12a126b452c1..b22b50c1b173 100644 --- a/tools/lib/bpf/skel_internal.h +++ b/tools/lib/bpf/skel_internal.h @@ -102,7 +102,7 @@ static inline int bpf_load_and_run(struct bpf_load_and_run_opts *opts) attr.test.prog_fd = prog_fd; attr.test.ctx_in = (long) opts->ctx; attr.test.ctx_size_in = opts->ctx->sz; - err = skel_sys_bpf(BPF_PROG_TEST_RUN, &attr, sizeof(attr)); + err = skel_sys_bpf(BPF_PROG_RUN, &attr, sizeof(attr)); if (err < 0 || (int)attr.test.retval < 0) { opts->errstr = "failed to execute loader prog"; if (err < 0) |