eunomia-bpf / bpftime

Userspace eBPF runtime for fast Uprobe & Syscall hook & Extensions with LLVM JIT
https://eunomia.dev/bpftime/
MIT License
687 stars 68 forks source link

[QUESTION]How he avoids the pile-driving recursion of the code? #296

Open zbs4017 opened 1 month ago

zbs4017 commented 1 month ago

In your paper, I see

In bpftime, the system is designed such that while the host application and the eBPF runtime share the same address space, they do not share libraries, including libc.

But when I look at libbpftime-agent.so with the ldd command, I see that he still depends on the standard library. Even though vm and runtime compile to static libraries, they still use glibc's dynamic libraries if the code in the static libraries uses malloc. image

So I would like to know what is the mechanism by which he realizes this?