On 8/15/23 3:01 AM, Shuyi Cheng wrote:
Hello.Recently we found that eBPF can call kernel functions, but we don’t know whether it is possible to call register_btf_kfunc_id_set in the out-of-tree module, and enable eBPF programs of types such as kprobe and tracepoint to call functions defined in out-of-tree modules.
Never tried but I think it is possible. register_btf_kfunc_id_set() can be used in modules. btf.c:EXPORT_SYMBOL_GPL(register_btf_kfunc_id_set);
Thanks in advance!