eunomia-bpf / bpftime

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

runtime: support attach arguments of custom attach implementations, and add an example #249

Closed Officeyutong closed 3 months ago

Officeyutong commented 4 months ago

Closes #246

Closes #235

Initial design for attach arguments of custom attach implementations:

Design for the example

The example should be a nginx plugin, providing functions to filter nginx requests. Filtering will be carried out through calling a eBPF program.

There will be two parts of the example:

Since now we don't have packed static library for bpftime, this example will be under the cmake project of bpftime. Once we could pack single-file static library and corresponding headers, we could move the example to a new repository

Detailed documents could be found at https://github.com/Officeyutong/bpftime/blob/master/example/attach_implementation/README.md