Re: HW breakpoints perf_events request

From: Joshua Pincus
Date: Wed Jan 13 2010 - 21:27:27 EST


Hi,

On Wed, Jan 13, 2010 at 6:15 PM, Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
> Joshua Pincus <joshua.pincus@xxxxxxxxx> writes:
>
>> I have a request for an additional feature to be included
>> in the recent hardware breakpoints work soon to be delivered
>> in kernel 2.6.33.
>
> Sounds to me like the existing ptrace based interface
> can practically all you want
>
> (except that the "parent signal" would be wait and for
> fork/exec you have to explicitely attach)

We would like to avoid using ptrace at all costs.
It requires us to have a parent thread running
which monitors all the others. It's not clear that
the wait() call by the parent doesn't mask a barrage
of signals from various threads and the performance
penalty is huge in multi-threaded apps.

If we could get this functionality working w/o ptrace,
we'd be very, very happy and grateful.

>
> -Andi
>

Thanks,
JP
--
On Wed, Jan 13, 2010 at 6:15 PM, Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
> Joshua Pincus <joshua.pincus@xxxxxxxxx> writes:
>
>> I have a request for an additional feature to be included
>> in the recent hardware breakpoints work soon to be delivered
>> in kernel 2.6.33.
>
> Sounds to me like the existing ptrace based interface
> can practically all you want
>
> (except that the "parent signal" would be wait and for
> fork/exec you have to explicitely attach)
>
> -Andi
>
> --
> ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/