Re: [BUG(?)] perf_events: combining multiple tracepoint events into a group produces no counts on member events

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Corey Ashford
Date: Thursday, December 2, 2010 - 1:58 am

On 11/30/2010 05:00 PM, Corey Ashford wrote:

False alarm.  I found a bug in my forwarded-ported version of the event 
grouping patch for perf stat.  I was setting the attr->disabled bit for 
all of the events instead of just the group leader, when forking off the 
command.

Software events, tracepoints, and hardware events all work when grouped 
now.  Sorry, I should have been more thorough in testing this on other 
types of events.  I had thought I had it working with hardware events, 
and it was, but only if I attached to an existing process, not when 
forking off a new command.  Anyway, if I had tested with hardware events 
in the same way I had tested tracepoints I would have seen the problem.

So the patch mentioned above, https://lkml.org/lkml/2010/11/24/584, has 
a bug, but since it didn't get committed, I suppose it's not a problem. 
  If anyone is still interested, I can post a v4 of that patch.

Sorry for the bother!

- Corey
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [BUG(?)] perf_events: combining multiple tracepoint ev ..., Frederic Weisbecker, (Wed Dec 1, 11:02 am)
Re: [BUG(?)] perf_events: combining multiple tracepoint ev ..., Frederic Weisbecker, (Wed Dec 1, 11:29 am)
Re: [BUG(?)] perf_events: combining multiple tracepoint ev ..., Corey Ashford, (Thu Dec 2, 1:58 am)
Re: [BUG(?)] perf_events: combining multiple tracepoint ev ..., Frederic Weisbecker, (Thu Dec 2, 10:56 am)