Replies: 2 comments 2 replies
-
|
Please post the full verifier logs here. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
This is a limitation in verifier, it only supports ptr to void/int/struct for ptr function arguments. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm writing simple tracing codes with kfunc.
When I attach kfunc probe to
__netif_receive_skb(as shown in A), it works fine.However, if I attach it to
__netif_receive_skb_core(as shown in B), I get an error message shown in C.A:
B:
C:
I think
__netif_receive_skband__netif_receive_skb_coresupport kfunc.But, I wonder in case B, eBPF verifier might be rejecting the code.
I suspect it's a BTF issue with
struct sk_buff **pskb. When I use kprobe instead, case B works fine.Does anyone have idea about this ?
Beta Was this translation helpful? Give feedback.
All reactions