Re: [PATCH v2 06/11] perf/uprobe: SRCU-ify uprobe->consumer list

2024-07-15 Thread Andrii Nakryiko
On Mon, Jul 15, 2024 at 4:25 AM Peter Zijlstra wrote: > > On Fri, Jul 12, 2024 at 02:06:08PM -0700, Andrii Nakryiko wrote: > > + bpf@vger, please cc bpf ML for the next revision, these changes are > > very relevant there as well, thanks > > > > On Thu, Jul 11, 2024 at 4:07 AM Peter Zijlstra wrote

Re: [PATCH v2 06/11] perf/uprobe: SRCU-ify uprobe->consumer list

2024-07-15 Thread Peter Zijlstra
On Fri, Jul 12, 2024 at 02:06:08PM -0700, Andrii Nakryiko wrote: > + bpf@vger, please cc bpf ML for the next revision, these changes are > very relevant there as well, thanks > > On Thu, Jul 11, 2024 at 4:07 AM Peter Zijlstra wrote: > > > > With handle_swbp() hitting concurrently on (all) CPUs th

Re: [PATCH v2 06/11] perf/uprobe: SRCU-ify uprobe->consumer list

2024-07-12 Thread Andrii Nakryiko
+ bpf@vger, please cc bpf ML for the next revision, these changes are very relevant there as well, thanks On Thu, Jul 11, 2024 at 4:07 AM Peter Zijlstra wrote: > > With handle_swbp() hitting concurrently on (all) CPUs the > uprobe->register_rwsem can get very contended. Add an SRCU instance to >

[PATCH v2 06/11] perf/uprobe: SRCU-ify uprobe->consumer list

2024-07-11 Thread Peter Zijlstra
With handle_swbp() hitting concurrently on (all) CPUs the uprobe->register_rwsem can get very contended. Add an SRCU instance to cover the consumer list and consumer lifetime. Since the consumer are externally embedded structures, unregister will have to suffer a synchronize_srcu(). A notably com