Commit 6f78154
committed
bpf: Add log for attaching tracing programs to functions in deny list
JIRA: https://issues.redhat.com/browse/RHEL-78204
commit 863aab3
Author: KaFai Wan <[email protected]>
Date: Thu Jul 24 23:14:52 2025 +0800
bpf: Add log for attaching tracing programs to functions in deny list
Show the rejected function name when attaching tracing programs to
functions in deny list.
With this change, we know why tracing programs can't attach to functions
like __rcu_read_lock() from log.
$ ./fentry
libbpf: prog '__rcu_read_lock': BPF program load failed: -EINVAL
libbpf: prog '__rcu_read_lock': -- BEGIN PROG LOAD LOG --
Attaching tracing programs to function '__rcu_read_lock' is rejected.
Suggested-by: Leon Hwang <[email protected]>
Signed-off-by: KaFai Wan <[email protected]>
Acked-by: Yafang Shao <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Jerome Marchand <[email protected]>1 parent ff345ab commit 6f78154
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23985 | 23985 | | |
23986 | 23986 | | |
23987 | 23987 | | |
| 23988 | + | |
| 23989 | + | |
23988 | 23990 | | |
23989 | 23991 | | |
23990 | 23992 | | |
| |||
0 commit comments