diff options
author | Rong Tao <rongtao@cestc.cn> | 2022-10-29 17:11:13 +0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-11-04 14:57:31 -0700 |
commit | 1baa7e38002111aee62b489ac343960ae75ce2e9 (patch) | |
tree | 6ebd45a200e2901fd7aab1d4dc5ed6340c46ce65 /kernel/softirq.c | |
parent | 2e20f50ff84903964bcfca10ecdab0fa08cd6a4c (diff) |
samples/bpf: Fix tracex2 error: No such file or directory
since commit c504e5c2f964("net: skb: introduce kfree_skb_reason()")
kfree_skb() is replaced by kfree_skb_reason() and kfree_skb() is set to
the inline function. So, we replace kprobe/kfree_skb with
kprobe/kfree_skb_reason to solve the tracex2 error.
$ cd samples/bpf
$ sudo ./tracex2
libbpf: prog 'bpf_prog2': failed to create kprobe 'kfree_skb+0x0' perf event: No such file or directory
ERROR: bpf_program__attach failed
Signed-off-by: Rong Tao <rongtao@cestc.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/tencent_0F0DAE84C0B3C42E0B550E5E9F47A9114D09@qq.com
Diffstat (limited to 'kernel/softirq.c')
0 files changed, 0 insertions, 0 deletions