diff options
| author | Jiri Olsa <[email protected]> | 2022-02-16 10:21:02 +0100 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-02-16 15:08:55 -0800 |
| commit | f76d8507d23834f7e56b0fe95c82605e7d7e0efe (patch) | |
| tree | afda4ed5f257e0e51fb28a06551b4a4ef5f8a770 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 477bb4c1baa7983b1be14af7dbb14f0902fbddac (diff) | |
bpftool: Fix pretty print dump for maps without BTF loaded
The commit e5043894b21f ("bpftool: Use libbpf_get_error() to check error")
fails to dump map without BTF loaded in pretty mode (-p option).
Fixing this by making sure get_map_kv_btf won't fail in case there's
no BTF available for the map.
Fixes: e5043894b21f ("bpftool: Use libbpf_get_error() to check error")
Suggested-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions