Skip to contentSkip to conversation

multi uprobe link

LSF/MM/BPF TOPIC Jiri Olsa 2 participants 2 messages Feb 24, 2023 BPF

lore
Share & tools
lore

Jiri Olsa

author
#0 lore raw

We have a usecase to monitor potentially many uprobes and current way of attaching many uprobes through perf takes long time. It's because there's extra perf event install/schedule for each uprobe you want to attach.

It'd be great to have a another way to attach multiple uprobes probably by adding new uprobe_multi link, that would create system wide uprobes directly and attach bpf program to it.

Although that would not solve all the performance issues with uprobes, it seems like a good start to solve attach/detach times.

I'd be interested in other people's experiences with uprobes and ideas on speeding it up. The uprobe_multi link prototype should be done by that time, hopefully ;-)

thanks,
jirka

#1 lore raw
Quoted 9 lines · Jiri Olsa

We have a usecase to monitor potentially many uprobes and current way of attaching many uprobes through perf takes long time. It's because there's extra perf event install/schedule for each uprobe you want to attach.

It'd be great to have a another way to attach multiple uprobes probably by adding new uprobe_multi link, that would create system wide uprobes directly and attach bpf program to it.

Quoted 6 lines

Although that would not solve all the performance issues with uprobes, it seems like a good start to solve attach/detach times.

I'd be interested in other people's experiences with uprobes and ideas on speeding it up. The uprobe_multi link prototype should be done by that time, hopefully ;-)

Great! Looking forward to it! Certainly a very useful thing, also for USDTs which could be inlined in lots of places, so one USDT attachment is actually a multi-uprobe attachment, in general.

Quoted 3 lines

thanks,
jirka