aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf_internal.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2024-06-05 00:16:26 +0000
committerDaniel Borkmann <[email protected]>2024-06-05 14:54:32 +0000
commit2bce2c1cb2f0acbf619737a10575f99df0c43984 (patch)
tree000ced203a6a1054130b9a5848f29915b9ea67ad /tools/lib/bpf/libbpf_internal.h
parentlibbpf: Add BTF field iterator (diff)
downloadkernel-2bce2c1cb2f0acbf619737a10575f99df0c43984.tar.gz
kernel-2bce2c1cb2f0acbf619737a10575f99df0c43984.zip
libbpf: Make use of BTF field iterator in BPF linker code
Switch all BPF linker code dealing with iterating BTF type ID and string offset fields to new btf_field_iter facilities. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Tested-by: Alan Maguire <[email protected]> Acked-by: Eduard Zingerman <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf_internal.h')
-rw-r--r--tools/lib/bpf/libbpf_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/bpf/libbpf_internal.h b/tools/lib/bpf/libbpf_internal.h
index 80f3d346db33..96c0b0993f8b 100644
--- a/tools/lib/bpf/libbpf_internal.h
+++ b/tools/lib/bpf/libbpf_internal.h
@@ -515,11 +515,11 @@ enum btf_field_iter_kind {
struct btf_field_desc {
/* once-per-type offsets */
- int t_cnt, t_offs[2];
+ int t_off_cnt, t_offs[2];
/* member struct size, or zero, if no members */
int m_sz;
/* repeated per-member offsets */
- int m_cnt, m_offs[1];
+ int m_off_cnt, m_offs[1];
};
struct btf_field_iter {