android_kernel_asus_sm8350/tools/bpf/bpftool
Quentin Monnet 14efbe2499 bpftool: Fix bug for long instructions in program CFG dumps
[ Upstream commit 67cf52cdb6c8fa6365d29106555dacf95c9fd374 ]

When dumping the control flow graphs for programs using the 16-byte long
load instruction, we need to skip the second part of this instruction
when looking for the next instruction to process. Otherwise, we end up
printing "BUG_ld_00" from the kernel disassembler in the CFG.

Fixes: efcef17a6d ("tools: bpftool: generate .dot graph from CFG information")
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/r/20230405132120.59886-3-quentin@isovalent.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-17 11:35:42 +02:00
..
bash-completion tools: bpftool: add "bpftool map freeze" subcommand 2019-08-21 21:17:27 +02:00
Documentation bpftool: Remove inclusion of utilities.mak from Makefiles 2022-01-27 09:19:53 +01:00
.gitignore tools: bpf: account for generated feature/ and libbpf/ directories 2019-08-31 00:38:16 +02:00
btf_dumper.c bpftool: Fix a wrong type cast in btf_dumper_int 2022-10-26 13:22:22 +02:00
btf.c tools, bpftool: Fix wrong return value in do_dump() 2020-08-19 08:16:19 +02:00
cfg.c tools: bpftool: teach cfg code about JMP32 2019-01-26 13:33:01 -08:00
cfg.h tools: bpftool: replace Netronome boilerplate with SPDX license headers 2018-12-13 12:08:44 +01:00
cgroup.c bpf: Print error message for bpftool cgroup show 2020-02-24 08:36:40 +01:00
common.c bpftool: Check malloc return value in mount_bpffs_for_pin 2021-07-28 13:30:55 +02:00
feature.c tools: bpftool: fix reading from /proc/config.gz 2019-08-12 11:07:16 +02:00
jit_disasm.c bpftool: Properly close va_list 'ap' by va_end() on error 2021-07-25 14:35:15 +02:00
json_writer.c tools: bpftool: Remove invalid \' json escape 2023-05-17 11:35:40 +02:00
json_writer.h tools: bpftool: move "__printf()" attributes to header file 2019-08-15 22:06:46 -07:00
main.c bpftool: Clear errno after libcap's checks 2022-10-26 13:22:48 +02:00
main.h tools: bpftool: move "__printf()" attributes to header file 2019-08-15 22:06:46 -07:00
Makefile bpftool: Remove inclusion of utilities.mak from Makefiles 2022-01-27 09:19:53 +01:00
map_perf_ring.c tools: bpftool: fix arguments for p_err() in do_event_pipe() 2019-08-15 22:06:46 -07:00
map.c tools: bpftool: add "bpftool map freeze" subcommand 2019-08-21 21:17:27 +02:00
net.c bpftool: Fix compilation failure for net.o with older glibc 2021-01-17 14:05:37 +01:00
netlink_dumper.c tools: bpftool: dual license all files 2018-12-13 12:08:44 +01:00
netlink_dumper.h tools: bpftool: dual license all files 2018-12-13 12:08:44 +01:00
perf.c tools: bpftool: compile with $(EXTRA_WARNINGS) 2019-08-14 22:57:36 +02:00
prog.c bpftool: Don't crash on missing xlated program instructions 2020-02-14 16:34:09 -05:00
tracelog.c tools: bpftool: add an option to prevent auto-mount of bpffs, tracefs 2018-12-18 14:47:17 +01:00
xlated_dumper.c bpftool: Fix bug for long instructions in program CFG dumps 2023-05-17 11:35:42 +02:00
xlated_dumper.h tools: bpftool: replace Netronome boilerplate with SPDX license headers 2018-12-13 12:08:44 +01:00