libbpf / libbpf-rs

Minimal and opinionated eBPF tooling for the Rust ecosystem
Other
741 stars 129 forks source link

Add support for attach multiple uprobe #656

Open Zhongy95 opened 7 months ago

Zhongy95 commented 7 months ago

In libbpf, attach multiple uprobes like:

        link->multi_link = bpf_program__attach_uprobe_multi(prog, pid, path,
                                    NULL, &opts_multi);

https://github.com/libbpf/libbpf/blob/master/src/usdt.c

Or do we have other alternatives to attach uprobes to multiple addresses of different target?

danielocfb commented 7 months ago

I don't believe we have multi attach hooked up yet. Feel free to contribute the bindings.