diff options
author | 2024-09-16 01:37:45 -0700 | |
---|---|---|
committer | 2024-10-03 17:47:36 -0700 | |
commit | 0aed726cf6f97bfe11de693781504787857894b7 (patch) | |
tree | 29fddc095a2d52eae1c523763b7952a82b704b1e /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | libbpf: Support opening bpf objects of either endianness (diff) | |
download | wireguard-linux-0aed726cf6f97bfe11de693781504787857894b7.tar.xz wireguard-linux-0aed726cf6f97bfe11de693781504787857894b7.zip |
libbpf: Support linking bpf objects of either endianness
Allow static linking object files of either endianness, checking that input
files have consistent byte-order, and setting output endianness from input.
Linking requires in-memory processing of programs, relocations, sections,
etc. in native endianness, and output conversion to target byte-order. This
is enabled by built-in ELF translation and recent BTF/BTF.ext endianness
functions. Further add local functions for swapping byte-order of sections
containing BPF insns.
Signed-off-by: Tony Ambardar <tony.ambardar@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/b47ca686d02664843fc99b96262fe3259650bc43.1726475448.git.tony.ambardar@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions