diff options
author | Quentin Monnet <qmo@kernel.org> | 2024-03-20 01:22:41 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-03-19 23:12:22 -0700 |
commit | be24a895149b6df4c474848e3928c237ad10fdc4 (patch) | |
tree | 43ff9022833899117df1e0abacc2f6a807abfdba /sound/firewire/fireworks/fireworks_proc.c | |
parent | 2e244a72cd489e9b8d4c779c0674c80cf92b6aab (diff) |
bpftool: Enable libbpf logs when loading pid_iter in debug mode
When trying to load the pid_iter BPF program used to iterate over the
PIDs of the processes holding file descriptors to BPF links, we would
unconditionally silence libbpf in order to keep the output clean if the
kernel does not support iterators and loading fails.
Although this is the desirable behaviour in most cases, this may hide
bugs in the pid_iter program that prevent it from loading, and it makes
it hard to debug such load failures, even in "debug" mode. Instead, it
makes more sense to print libbpf's logs when we pass the -d|--debug flag
to bpftool, so that users get the logs to investigate failures without
having to edit bpftool's source code.
Signed-off-by: Quentin Monnet <qmo@kernel.org>
Message-ID: <20240320012241.42991-1-qmo@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'sound/firewire/fireworks/fireworks_proc.c')
0 files changed, 0 insertions, 0 deletions