diff options
author | Andrii Nakryiko <andriin@fb.com> | 2019-02-08 11:19:39 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-02-08 12:04:13 -0800 |
commit | 49b57e0d01db73c99f86d68480fb9b4014bb1060 (patch) | |
tree | a5b61868a7ba083c1828e438a07a33d9add96c6f /tools/lib/bpf/btf.h | |
parent | ae4ab4b4117d23da49f04a7e1fe82a41e6074eeb (diff) | |
download | linux-stable-49b57e0d01db73c99f86d68480fb9b4014bb1060.tar.gz linux-stable-49b57e0d01db73c99f86d68480fb9b4014bb1060.tar.bz2 linux-stable-49b57e0d01db73c99f86d68480fb9b4014bb1060.zip |
tools/bpf: remove btf__get_strings() superseded by raw data API
Now that we have btf__get_raw_data() it's trivial for tests to iterate
over all strings for testing purposes, which eliminates the need for
btf__get_strings() API.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/btf.h')
-rw-r--r-- | tools/lib/bpf/btf.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/lib/bpf/btf.h b/tools/lib/bpf/btf.h index 0306b54d54eb..94bbc249b0f1 100644 --- a/tools/lib/bpf/btf.h +++ b/tools/lib/bpf/btf.h @@ -67,8 +67,6 @@ LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id); LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id); LIBBPF_API int btf__fd(const struct btf *btf); LIBBPF_API const void *btf__get_raw_data(const struct btf *btf, __u32 *size); -LIBBPF_API void btf__get_strings(const struct btf *btf, const char **strings, - __u32 *str_len); LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset); LIBBPF_API int btf__get_from_id(__u32 id, struct btf **btf); LIBBPF_API int btf__get_map_kv_tids(const struct btf *btf, const char *map_name, |