You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to modify a kernel variable during runtime in kernel version 5.14. Is this feasible? Are there any specific methods such as using kfuncs or modifying syscalls that I could use to achieve this? Could you also provide some detailed examples or relevant links?
I try to use kfuncs, and checked BPF.support_kfunc() is True. When including #include <bpf/bpf_helpers.h>, I receive an error indicating that the file cannot be found. After including it using the absolute path, I get the error: fatal error: 'bpf_helper_defs.h' file not found (the bpf/bpf_helpers.h includes this file via a relative path). After copying bpf_helper_defs.h to the corresponding directory, I encounter a conflict with the definition in /virtual/include/bcc/helpers.h.
And I am trying to implement my own kfunc in the Linux 5.14 kernel. I have added a function and its corresponding prototype in helpers.c, but I am unable to recognize this symbol in the BCC test.py script.
I am trying to modify a kernel variable during runtime in kernel version 5.14. Is this feasible? Are there any specific methods such as using kfuncs or modifying syscalls that I could use to achieve this? Could you also provide some detailed examples or relevant links?
I try to use kfuncs, and checked
BPF.support_kfunc()
is True. When including #include <bpf/bpf_helpers.h>, I receive an error indicating that the file cannot be found. After including it using the absolute path, I get the error:fatal error: 'bpf_helper_defs.h' file not found
(thebpf/bpf_helpers.h
includes this file via a relative path). After copying bpf_helper_defs.h to the corresponding directory, I encounter a conflict with the definition in/virtual/include/bcc/helpers.h
.And I am trying to implement my own kfunc in the Linux 5.14 kernel. I have added a function and its corresponding prototype in
helpers.c
, but I am unable to recognize this symbol in the BCC test.py script.I am new to BCC and I'm appreciated for your assistance!
The text was updated successfully, but these errors were encountered: