Re: [PATCH v2 00/11] perf/uprobe: Optimize uprobes

2024-07-26 Thread Andrii Nakryiko
On Fri, Jul 19, 2024 at 11:42 AM Andrii Nakryiko wrote: > > On Mon, Jul 15, 2024 at 11:10 AM Andrii Nakryiko > wrote: > > > > On Mon, Jul 15, 2024 at 10:10 AM Andrii Nakryiko > > wrote: > > > > > > On Mon, Jul 15, 2024 at 7:45 AM Peter Zijlstra > > > wrote: > > > > > > > > On Thu, Jul 11, 2024

Re: [PATCH v2 00/11] perf/uprobe: Optimize uprobes

2024-07-19 Thread Andrii Nakryiko
On Mon, Jul 15, 2024 at 11:10 AM Andrii Nakryiko wrote: > > On Mon, Jul 15, 2024 at 10:10 AM Andrii Nakryiko > wrote: > > > > On Mon, Jul 15, 2024 at 7:45 AM Peter Zijlstra wrote: > > > > > > On Thu, Jul 11, 2024 at 09:57:44PM -0700, Andrii Nakryiko wrote: > > > > > > > But then I also ran it on

Re: [PATCH v2 00/11] perf/uprobe: Optimize uprobes

2024-07-15 Thread Andrii Nakryiko
On Mon, Jul 15, 2024 at 10:10 AM Andrii Nakryiko wrote: > > On Mon, Jul 15, 2024 at 7:45 AM Peter Zijlstra wrote: > > > > On Thu, Jul 11, 2024 at 09:57:44PM -0700, Andrii Nakryiko wrote: > > > > > But then I also ran it on Linux built from perf/uprobes branch (these > > > patches), and after a fe

Re: [PATCH v2 00/11] perf/uprobe: Optimize uprobes

2024-07-15 Thread Andrii Nakryiko
On Mon, Jul 15, 2024 at 7:45 AM Peter Zijlstra wrote: > > On Thu, Jul 11, 2024 at 09:57:44PM -0700, Andrii Nakryiko wrote: > > > But then I also ran it on Linux built from perf/uprobes branch (these > > patches), and after a few seconds I see that there is no more > > attachment/detachment happeni

Re: [PATCH v2 00/11] perf/uprobe: Optimize uprobes

2024-07-15 Thread Peter Zijlstra
On Thu, Jul 11, 2024 at 09:57:44PM -0700, Andrii Nakryiko wrote: > But then I also ran it on Linux built from perf/uprobes branch (these > patches), and after a few seconds I see that there is no more > attachment/detachment happening. Eventually I got splats, which you > can see in [1]. I used `s

Re: [PATCH v2 00/11] perf/uprobe: Optimize uprobes

2024-07-12 Thread Andrii Nakryiko
On Fri, Jul 12, 2024 at 6:10 AM Peter Zijlstra wrote: > > On Thu, Jul 11, 2024 at 09:57:44PM -0700, Andrii Nakryiko wrote: > > > Anyways, if you'd like to use it, it's at [0]. All you should need to > > build and run it is: > > > > $ cd examples/c > > $ make -j$(nproc) uprobe-stress > > $ su

Re: [PATCH v2 00/11] perf/uprobe: Optimize uprobes

2024-07-12 Thread Peter Zijlstra
On Thu, Jul 11, 2024 at 09:57:44PM -0700, Andrii Nakryiko wrote: > Anyways, if you'd like to use it, it's at [0]. All you should need to > build and run it is: > > $ cd examples/c > $ make -j$(nproc) uprobe-stress > $ sudo ./uprobe-stress -tN -aM -mP -fR > [0] > https://github.com/libbp

Re: [PATCH v2 00/11] perf/uprobe: Optimize uprobes

2024-07-12 Thread Peter Zijlstra
On Thu, Jul 11, 2024 at 09:57:44PM -0700, Andrii Nakryiko wrote: > You should only need not-too-old Clang to build everything (Clang 12+ > should work, I believe). But do let me know if you run into troubles. A quick look at the thing shows me it's full of BPF gunk :/ Which means, I probably als

Re: [PATCH v2 00/11] perf/uprobe: Optimize uprobes

2024-07-11 Thread Andrii Nakryiko
On Thu, Jul 11, 2024 at 4:07 AM Peter Zijlstra wrote: > > Hi! > > These patches implement the (S)RCU based proposal to optimize uprobes. > > On my c^Htrusty old IVB-EP -- where each (of the 40) CPU calls 'func' in a > tight loop: > > perf probe -x ./uprobes test=func > perf stat -ae probe_upro