Re: [perfmon2] perf_counters issue with self-sampling threads

2009-07-29 Thread Peter Zijlstra
On Mon, 2009-07-27 at 18:51 +0200, stephane eranian wrote: > I believe there is a problem with the current perf_counters (PCL) > code for self-sampling threads. The problem is related to sample > notifications via signal. > > PCL (just like perfmon) is using SIGIO, an asynchronous signal, > to not

Re: [perfmon2] perf_counters issue with self-sampling threads

2009-07-29 Thread stephane eranian
Peter, On Wed, Jul 29, 2009 at 2:19 PM, Peter Zijlstra wrote: > On Mon, 2009-07-27 at 18:51 +0200, stephane eranian wrote: >> I believe there is a problem with the current perf_counters (PCL) >> code for self-sampling threads. The problem is related to sample >> notifications via signal. >> >> PCL

Re: [perfmon2] perf_counters issue with self-sampling threads

2009-07-29 Thread Peter Zijlstra
On Wed, 2009-07-29 at 14:37 +0200, stephane eranian wrote: > > > > > Now I was considering teaching send_sigio_to_task() to use > > specific_send_sig_info() when fown->pid != fown->group_leader->pid or > > something, but I'm not sure that won't break anything. > > > Yes, that's the problem with to