Replies: 2 comments
-
Sorry, bcc does not support kfunc. It need some effort to implement it. libbpf-tools supports kfunc. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the information! |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I'm trying to write BPF code that calls a kfunc (by kfunc I mean "kernel function callable from BPF", not "kernel function hooked by BPF"); but I can't figure out how to make that work. When I declare the kfunc as an extern function with
__attribute__((section(".kyms")))
and call it, I get a compiler error saying "cannot call non-static helper function". Is it just not possible to call kfuncs from code built with bcc, or am I doing it wrong?Beta Was this translation helpful? Give feedback.
All reactions