lkml.org 
[lkml]   [2010]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] perf: Walk through the relevant events only
On Fri, Mar 05, 2010 at 06:39:12PM +0100, Peter Zijlstra wrote:
> On Fri, 2010-03-05 at 18:33 +0100, Frederic Weisbecker wrote:
> > On Fri, Mar 05, 2010 at 06:20:29PM +0100, Peter Zijlstra wrote:
> > > On Fri, 2010-03-05 at 18:03 +0100, Frederic Weisbecker wrote:
> > > >
> > > > Now isn't the problem more in the fact that most of the swevents
> > > > should be tracepoints?
> > >
> > > No, different interface, and I don't want to require TRACE=y, I already
> > > utterly hate that x86 requires PERF=y.
> > >
> >
> > This could be reduced to the strict minimum, say CONFIG_TRACEPOINT
> > and some code around just to support the event ids.
>
> Can't, software events already are an ABI so we'll have to support that
> forever, but sure you can make something that reduces to the current
> software event callback on TRACE=n and maps to the right software event
> id when TRACE=y.


That looks feasible. I may try something like that.


>
> > Software events could be made optionals too.
>
> Sure, but they're nowhere near as much code as tracepoints.


Yeah but they have the overhead of an off case to handle, something
that can be turned off if we have only perf for breakpoints.


>
> > > I already
> > > utterly hate that x86 requires PERF=y.
> >
> >
> > Me too, and it's my bad, so me double too. Sometimes I think
> > we should make BREAKPOINTs optional, default y. I just don't know
> > if something like this that has always been builtin can be made
> > optional.
>
> Simply for build testing that would be useful, we could make it an
> embedded switch.


Agreed.

Ok, I'll work toward an hlist version for the initial topic.
Thanks.



\
 
 \ /
  Last update: 2010-03-05 18:49    [W:0.036 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site