Passing -d or --debug to bpftool should results in bpftool dumping all logs from libbpf. However, in build_obj_refs_table() in pids.c, we explicitly disable logs to avoid the output to be “polluted with libbpf errors if bpf_iter is not supported”. While this is fine for the regular case, these logs should still be displayed in debug mode.
Passing
-d
or--debug
to bpftool should results in bpftool dumping all logs from libbpf. However, inbuild_obj_refs_table()
in pids.c, we explicitly disable logs to avoid the output to be “polluted with libbpf errors if bpf_iter is not supported”. While this is fine for the regular case, these logs should still be displayed in debug mode.