tools/bpftool: remove warning about PID iterator support
Subsystems (4)
PATCH 1/1 tools/bpftool: remove warning about PID iterator support
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]>
--- tools/bpf/bpftool/pids.c | 1 - 1 file changed, 1 deletion(-)
tools/bpf/bpftool/pids.c +0 -1
@@ -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) {}
Signature · 1 line
2.24.1
Quoted 5 lines · Andrii Nakryiko
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]>
Thanks for the fix.
Acked-by Yonghong Song <[email protected]>
Quoted 17 lines
--- tools/bpf/bpftool/pids.c | 1 - 1 file changed, 1 deletion(-)tools/bpf/bpftool/pids.c +0
-1@@ -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) {}
Alexei Starovoitov
AppliedQuoted 4 lines · Yonghong Song
On 7/10/20 4:26 PM, Andrii Nakryiko wrote:
Quoted 8 lines
Quoted 5 lines
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]>Thanks for the fix.
Acked-by Yonghong Song <[email protected]>
Applied. Thanks