linux-xiaomi-chiron/tools/bpf/bpftool
Martin KaFai Lau 555089fdfc bpftool: Fix printing incorrect pointer in btf_dump_ptr
For plain text output, it incorrectly prints the pointer value
"void *data".  The "void *data" is actually pointing to memory that
contains a bpf-map's value.  The intention is to print the content of
the bpf-map's value instead of printing the pointer pointing to the
bpf-map's value.

In this case, a member of the bpf-map's value is a pointer type.
Thus, it should print the "*(void **)data".

Fixes: 22c349e8db ("tools: bpftool: fix format strings and arguments for jsonw_printf()")
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Link: https://lore.kernel.org/bpf/20200110231644.3484151-1-kafai@fb.com
2020-01-11 19:08:21 -08:00
..
bash-completion
Documentation
.gitignore
btf.c tools, bpftool: Fix warning on ignored return value for 'read' 2019-11-24 16:58:44 -08:00
btf_dumper.c bpftool: Fix printing incorrect pointer in btf_dump_ptr 2020-01-11 19:08:21 -08:00
cfg.c
cfg.h
cgroup.c
common.c
feature.c
jit_disasm.c
json_writer.c
json_writer.h
main.c bpftool: Fix bpftool build by switching to bpf_object__open_file() 2019-10-07 18:44:28 -07:00
main.h bpftool: Fix bpftool build by switching to bpf_object__open_file() 2019-10-07 18:44:28 -07:00
Makefile
map.c
map_perf_ring.c
net.c
netlink_dumper.c
netlink_dumper.h
perf.c
prog.c bpftool: Don't crash on missing jited insns or ksyms 2019-12-11 13:57:26 +01:00
tracelog.c
xlated_dumper.c bpftool: Don't crash on missing jited insns or ksyms 2019-12-11 13:57:26 +01:00
xlated_dumper.h