Skip to content

Commit

Permalink
tools/bpftool: Remove warning about PID iterator support
Browse files Browse the repository at this point in the history
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 <rdna@fb.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200710232605.20918-1-andriin@fb.com
  • Loading branch information
Andrii Nakryiko authored and Alexei Starovoitov committed Jul 13, 2020
1 parent 7c4bf5f commit 93776cb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/bpf/bpftool/pids.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down

0 comments on commit 93776cb

Please sign in to comment.