eunomia-bpf / bpftime

Userspace eBPF runtime for Observability, Network & General Extensions Framework
https://eunomia.dev/bpftime/
MIT License
834 stars 78 forks source link

[Replaces 248] Support read /sys/bus/event_source/devices/uprobe/type on old kernel versions #333

Closed Officeyutong closed 2 months ago

Officeyutong commented 3 months ago

Replaces #248

Solves #239

Adds file read mocking for /sys/bus/event_source/devices/uprobe/type and /sys/bus/event_source/devices/uprobe/format/retprobe, so libbpf will be able to attach uprobes in container or unprivileged environment.