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: add map_ops support #229

Closed yunwei37 closed 4 months ago

yunwei37 commented 4 months ago

Description

This PR enables to define external maps when using bpftime as a library. User can register a bpftime_map_ops with a given map types, and allow new bpf map types to work.

This PR also:

I think it would be better if we can use map_ops for all built-in map types in the future. This can help simplify the code.

Type of change