lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1309171403.6701.77.camel@twins>
Date:	Mon, 27 Jun 2011 12:43:23 +0200
From:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
To:	Vince Weaver <vweaver1@...s.utk.edu>
Cc:	linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
	Stephane Eranian <eranian@...il.com>,
	Frederic Weisbecker <fweisbec@...il.com>
Subject: Re: perf: is PERF_COUNT_SW_CONTEXT_SWITCHES a kernel or user event?

On Fri, 2011-06-24 at 17:03 -0400, Vince Weaver wrote:
> 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).

hurm, difficult case, like the changelog explains the previous behaviour
wasn't ideal either. Seems like we want somewhat of a middle ground
there, but I'm not quite sure how to make that happen.

Let me ponder things for a bit.
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ