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

[FEATURE] Add cmake options to control build runtime interact with kernel maps #251

Closed yunwei37 closed 3 months ago

yunwei37 commented 3 months ago

Is your feature request related to a problem? Please describe.

See #145 and #175

Describe the solution you'd like

Add a cmake option BPFTIME_BUILD_KERNEL_BPF, which can control whether to build the shared maps between kernel and userspace. Disable these options will not build the source code in https://github.com/eunomia-bpf/bpftime/tree/master/runtime/src/bpf_map/shared

Officeyutong commented 3 months ago

Note that program map also requires libbpf

hp77-creator commented 3 months ago

@Officeyutong does that mean we can't disable libbpf?

Officeyutong commented 3 months ago

@Officeyutong does that mean we can't disable libbpf?

We may disable features that rely on libbpf

hp77-creator commented 3 months ago

Hi @Officeyutong @yunwei37 Can you assign me this issue, I will send a PR asap.