eunomia-bpf / bpftime

Userspace eBPF runtime for Observability, Network & General Extensions Framework
https://eunomia.dev/bpftime/
MIT License
788 stars 74 forks source link

[QUESTION] How to use ufunc? #291

Open janetat opened 4 months ago

janetat commented 4 months ago

Hello,

1. how to register a ufunc?

BTW, there is no workloads/ebpf-patch-dev/poc5-vim/poc5.json.

2. Any docs about it?

Officeyutong commented 4 months ago

You may call https://github.com/eunomia-bpf/bpftime/blob/f8db2dc52671fc62f17960708b7c00db84eb8d54/runtime/include/bpftime_ufunc.hpp#L70 to register ufunc. ufuncs should be registered at the agent side, and will work for all ebpf vms

janetat commented 4 months ago

Any examples? I still don't know how to figure it out..