From: Paul Chaignon <hidden> Date: 2021-12-16 15:33:41
Since commit 6d61a2b55799 ("lib: add libbpf support"), passing the
verbose flag to tc filter doesn't dump the verifier logs anymore in case
of successful loading.
This commit fixes it by setting the log_level attribute before loading.
To that end, we need to call bpf_object__load_xattr directly instead of
relying on bpf_object__load.
Fixes: 6d61a2b55799 ("lib: add libbpf support")
Signed-off-by: Paul Chaignon <redacted>
---
lib/bpf_libbpf.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
From: Hangbin Liu <hidden> Date: 2021-12-17 07:15:41
On Thu, Dec 16, 2021 at 04:33:36PM +0100, Paul Chaignon wrote:
quoted hunk
Since commit 6d61a2b55799 ("lib: add libbpf support"), passing the
verbose flag to tc filter doesn't dump the verifier logs anymore in case
of successful loading.
This commit fixes it by setting the log_level attribute before loading.
To that end, we need to call bpf_object__load_xattr directly instead of
relying on bpf_object__load.
Fixes: 6d61a2b55799 ("lib: add libbpf support")
Signed-off-by: Paul Chaignon <redacted>
---
lib/bpf_libbpf.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)