aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/btf.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-09-28 19:05:32 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-09-28 19:17:13 -0700
commit9141f75a3279bab4a7d761c6050d96777b646767 (patch)
tree9079dd66d34a92825ddcb8122dfb399177da8bac /tools/lib/bpf/btf.c
parentlibbpf: Add btf__str_by_offset() as a more generic variant of name_by_offset (diff)
downloadlinux-dev-9141f75a3279bab4a7d761c6050d96777b646767.tar.xz
linux-dev-9141f75a3279bab4a7d761c6050d96777b646767.zip
selftests/bpf: Test BTF writing APIs
Add selftests for BTF writer APIs. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/bpf/20200929020533.711288-4-andriin@fb.com
Diffstat (limited to 'tools/lib/bpf/btf.c')
-rw-r--r--tools/lib/bpf/btf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lib/bpf/btf.c b/tools/lib/bpf/btf.c
index 2d0b1e12f50e..c25f49fad5a6 100644
--- a/tools/lib/bpf/btf.c
+++ b/tools/lib/bpf/btf.c
@@ -31,10 +31,10 @@ struct btf {
__u32 raw_size;
/*
- * When BTF is loaded from ELF or raw memory it is stored
- * in contiguous memory block, pointed to by raw_data pointer, and
- * hdr, types_data, and strs_data point inside that memory region to
- * respective parts of BTF representation:
+ * When BTF is loaded from an ELF or raw memory it is stored
+ * in a contiguous memory block. The hdr, type_data, and, strs_data
+ * point inside that memory region to their respective parts of BTF
+ * representation:
*
* +--------------------------------+
* | Header | Types | Strings |