aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_btf.c
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2018-08-09 08:55:20 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2018-08-10 20:54:07 +0200
commit699c86d6ec21d0f885d12800249d138659de8489 (patch)
treebb2bd8aa6de8cc79a8112954356e241b58dfb8b2 /tools/testing/selftests/bpf/test_btf.c
parentbpf: fix bpffs non-array map seq_show issue (diff)
downloadlinux-dev-699c86d6ec21d0f885d12800249d138659de8489.tar.xz
linux-dev-699c86d6ec21d0f885d12800249d138659de8489.zip
bpf: btf: add pretty print for hash/lru_hash maps
Commit a26ca7c982cb ("bpf: btf: Add pretty print support to the basic arraymap") added pretty print support to array map. This patch adds pretty print for hash and lru_hash maps. The following example shows the pretty-print result of a pinned hashmap: struct map_value { int count_a; int count_b; }; cat /sys/fs/bpf/pinned_hash_map: 87907: {87907,87908} 57354: {37354,57355} 76625: {76625,76626} ... Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions