aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorMykyta Yatsenko <[email protected]>2024-09-06 13:24:53 +0000
committerAndrii Nakryiko <[email protected]>2024-09-06 21:06:30 +0000
commitf8c6b7913dfaa67475883f94261c278adbcaa0ae (patch)
tree61f1e8d7c90d9a3c50f121f878d98869b348ec20 /tools/lib/bpf/libbpf.c
parentMerge branch 'allow-kfuncs-in-tracepoint-and-perf-event' (diff)
downloadkernel-f8c6b7913dfaa67475883f94261c278adbcaa0ae.tar.gz
kernel-f8c6b7913dfaa67475883f94261c278adbcaa0ae.zip
bpftool: Improve btf c dump sorting stability
Existing algorithm for BTF C dump sorting uses only types and names of the structs and unions for ordering. As dump contains structs with the same names but different contents, relative to each other ordering of those structs will be accidental. This patch addresses this problem by introducing a new sorting field that contains hash of the struct/union field names and types to disambiguate comparison of the non-unique named structs. Signed-off-by: Mykyta Yatsenko <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions