diff options
| author | Yonghong Song <[email protected]> | 2020-05-13 18:02:16 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-05-13 19:30:49 +0000 |
| commit | 21aef70eade22a656297c28d5da93301915d2ac2 (patch) | |
| tree | 65d4b196f967e2b3d0f5a4b471f00bd75fd8f906 /tools/lib/bpf/libbpf.c | |
| parent | tools/bpf: selftests : Explain bpf_iter test failures with llvm 10.0.0 (diff) | |
| download | kernel-21aef70eade22a656297c28d5da93301915d2ac2.tar.gz kernel-21aef70eade22a656297c28d5da93301915d2ac2.zip | |
bpf: Change btf_iter func proto prefix to "bpf_iter_"
This is to be consistent with tracing and lsm programs
which have prefix "bpf_trace_" and "bpf_lsm_" respectively.
Suggested-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Yonghong Song <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
| -rw-r--r-- | tools/lib/bpf/libbpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index fd882616ab52..292257995487 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -6919,7 +6919,7 @@ invalid_prog: #define BTF_TRACE_PREFIX "btf_trace_" #define BTF_LSM_PREFIX "bpf_lsm_" -#define BTF_ITER_PREFIX "__bpf_iter__" +#define BTF_ITER_PREFIX "bpf_iter_" #define BTF_MAX_NAME_SIZE 128 static int find_btf_by_prefix_kind(const struct btf *btf, const char *prefix, |
