Commit 863aab3
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]>1 parent a5a6b29 commit 863aab3
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23981 | 23981 | | |
23982 | 23982 | | |
23983 | 23983 | | |
| 23984 | + | |
| 23985 | + | |
23984 | 23986 | | |
23985 | 23987 | | |
23986 | 23988 | | |
| |||
0 commit comments