]> Git Repo - linux.git/commitdiff
tools/bpftool: Remove warning about PID iterator support
authorAndrii Nakryiko <[email protected]>
Fri, 10 Jul 2020 23:26:04 +0000 (16:26 -0700)
committerAlexei Starovoitov <[email protected]>
Mon, 13 Jul 2020 22:41:05 +0000 (15:41 -0700)
Don't emit warning that bpftool was built without PID iterator support. This
error garbles JSON output of otherwise perfectly valid show commands.

Reported-by: Andrey Ignatov <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
tools/bpf/bpftool/pids.c

index c0d23ce4a6f4e52a9876b187a5a07fa9b3154160..e3b116325403bea81a56a03e58f06b8206440dce 100644 (file)
@@ -15,7 +15,6 @@
 
 int build_obj_refs_table(struct obj_refs_table *table, enum bpf_obj_type type)
 {
-       p_err("bpftool built without PID iterator support");
        return -ENOTSUP;
 }
 void delete_obj_refs_table(struct obj_refs_table *table) {}
This page took 0.05253 seconds and 4 git commands to generate.