aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorYafang Shao <[email protected]>2022-03-20 06:08:14 +0000
committerDaniel Borkmann <[email protected]>2022-03-21 13:58:06 +0000
commit1824d8ea75f275a5e69e5f6bc0ffe122ea9b938c (patch)
tree1818f51b4c76940cc90ea466d0ba1f957b824971 /tools/lib/bpf/libbpf.c
parentbpf: Fix kprobe_multi return probe backtrace (diff)
downloadkernel-1824d8ea75f275a5e69e5f6bc0ffe122ea9b938c.tar.gz
kernel-1824d8ea75f275a5e69e5f6bc0ffe122ea9b938c.zip
bpftool: Fix print error when show bpf map
If there is no btf_id or frozen, it will not show the pids, but the pids don't depend on any one of them. Below is the result after this change: $ ./bpftool map show 2: lpm_trie flags 0x1 key 8B value 8B max_entries 1 memlock 4096B pids systemd(1) 3: lpm_trie flags 0x1 key 20B value 8B max_entries 1 memlock 4096B pids systemd(1) While before this change, the 'pids systemd(1)' can't be displayed. Fixes: 9330986c0300 ("bpf: Add bloom filter map implementation") Signed-off-by: Yafang Shao <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions