eunomia-bpf / bpftime

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

[FEATURE] Build options to disable libbpf and Linux kernel interoperability #175

Closed agentzh closed 1 month ago

agentzh commented 6 months ago

Currently, the bpftime build always includes libbpf and Linux kernel interoperability, which we don't need in our use cases. It would be nice to have a build option to exclude these things to have much smaller binaries (and also smaller images in the global shm?).

I heard that it might also make it easier to port bpftime to other operating systems like macOS and *BSD (or even Windows?).

Bakugo90 commented 4 months ago

Hello, I would like to work on this issue

Officeyutong commented 4 months ago

Hello,

I would like to work on this issue

Thank you! I've assigned this issue to you

hp77-creator commented 2 months ago

@yunwei37 @Officeyutong should we try to create bpftime without making libbpf? Should I add this option?