diff options
author | Roman Gushchin <[email protected]> | 2018-12-10 15:43:01 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2018-12-12 15:33:38 -0800 |
commit | 9a1126b63190e2541dd5d643f4bfeb5a7f493729 (patch) | |
tree | 35e30e558ead54bd7268bbc48161beb6af8e3c6a /tools/lib/bpf/bpf_prog_linfo.c | |
parent | 1b2b234b1318afb3775d4c6624fd5a96558f19df (diff) |
bpf: add bpffs pretty print for cgroup local storage maps
Implement bpffs pretty printing for cgroup local storage maps
(both shared and per-cpu).
Output example (captured for tools/testing/selftests/bpf/netcnt_prog.c):
Shared:
$ cat /sys/fs/bpf/map_2
# WARNING!! The output is for debug purpose only
# WARNING!! The output format will change
{4294968594,1}: {9999,1039896}
Per-cpu:
$ cat /sys/fs/bpf/map_1
# WARNING!! The output is for debug purpose only
# WARNING!! The output format will change
{4294968594,1}: {
cpu0: {0,0,0,0,0}
cpu1: {0,0,0,0,0}
cpu2: {1,104,0,0,0}
cpu3: {0,0,0,0,0}
}
Signed-off-by: Roman Gushchin <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
0 files changed, 0 insertions, 0 deletions