samples/bpf: Fix broken tracex1 due to kprobe argument change
authorYaqi Chen <chendotjs@gmail.com>
Fri, 16 Apr 2021 15:48:03 +0000 (23:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:34 +0000 (10:29 +0200)
commitfe2a47415426fa25c8e7f38e2770086dff99b5e5
tree3a0cc220aefb079bbf84d45cadec414fdd6b07d7
parent2e8ffd93332073d43f82d32ea4c3c60070f7b74f
samples/bpf: Fix broken tracex1 due to kprobe argument change

[ Upstream commit 137733d08f4ab14a354dacaa9a8fc35217747605 ]

>From commit c0bbbdc32feb ("__netif_receive_skb_core: pass skb by
reference"), the first argument passed into __netif_receive_skb_core
has changed to reference of a skb pointer.

This commit fixes by using bpf_probe_read_kernel.

Signed-off-by: Yaqi Chen <chendotjs@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210416154803.37157-1-chendotjs@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
samples/bpf/tracex1_kern.c