public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* perf: is PERF_COUNT_SW_CONTEXT_SWITCHES a kernel or user event?
@ 2011-06-24 21:03 Vince Weaver
  2011-06-27 10:43 ` Peter Zijlstra
  0 siblings, 1 reply; 4+ messages in thread
From: Vince Weaver @ 2011-06-24 21:03 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Zijlstra, Ingo Molnar, Stephane Eranian,
	Frederic Weisbecker

Hello

the commit included in 2.6.34:
  perf: Use hot regs with software sched switch/migrate events
  e49a5bd38159dfb1928fd25b173bc9de4bbadb21

Changes the behavior of the PERF_COUNT_SW_CONTEXT_SWITCHES
counter.

Before 2.6.34 all of the PERF_COUNT_SW_CONTEXT_SWITCHES events were 
counted as happening in userspace (they show up in "perf stat -e cs:u") 
but after the commit they always happen in kernelspace ("perf stat -e 
cs:k").

Was this intended behavior?
I'm writing a validation test for this and want to make sure I get it
right.

This can be confusing if your tool defaults to userspace only counts (PAPI 
does this).

Thanks,

Vince

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-28 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-24 21:03 perf: is PERF_COUNT_SW_CONTEXT_SWITCHES a kernel or user event? Vince Weaver
2011-06-27 10:43 ` Peter Zijlstra
2011-06-27 18:59   ` Frederic Weisbecker
2011-06-28 17:30     ` Vince Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox