[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bc915a051001141002h3ed92e75o95318fa2f8a20d21@mail.gmail.com>
Date: Thu, 14 Jan 2010 10:02:44 -0800
From: Joshua Pincus <joshua.pincus@...il.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Frederic Weisbecker <fweisbec@...il.com>,
"K.Prasad" <prasad@...ux.vnet.ibm.com>, paulus@...ba.org,
acme@...hat.com, linux-kernel@...r.kernel.org
Subject: Re: HW breakpoints perf_events request
Hi Peter,
On Thu, Jan 14, 2010 at 12:44 AM, Peter Zijlstra
> We have fnctl() managing signal support, but that will only interrupt
> the observing thread, not the threads being observed (unless they are
> one and the same -- but using inheritance precludes that from being
> true).
>
> I'm not sure I'm willing to go in this direction with perf, the idea is
> to have a minimum impact on the observed threads, explicitly sending
> them signals and disturbing their execution goes against this.
I understand your qualms.
I'm not asking for this feature to be implemented as the
default. I'm asking that it be an option for someone like me to use.
We have a very strong
and compelling reason for doing what I've requested
vis a vis observed threads. I am sure we can come up
with other compelling reasons for doing this, not the least
of which is that this functionality has been provided
in Microsoft Windows for a decade or more and has
proven immensely useful.
For instance, one could use this as a realtime watchdog
without requiring extra observing threads to do the
signal processing work. Or having observed threads
use the signal handler to tally up events.
Without the ability for observed threads to be interrupted
in this way when they hit breakpoints, the new
perf_event work is not going to be useful to us in its
current form.
Thanks,
JP
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists