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: <1247091264.9777.311.camel@twins>
Date:	Thu, 09 Jul 2009 00:14:24 +0200
From:	Peter Zijlstra <peterz@...radead.org>
To:	Vince Weaver <vince@...ter.net>
Cc:	Ingo Molnar <mingo@...e.hu>, Paul Mackerras <paulus@...ba.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [patch] perf_counter: Add p6 PMU

On Wed, 2009-07-08 at 23:45 +0200, Peter Zijlstra wrote:
> On Wed, 2009-07-08 at 17:46 -0400, Vince Weaver wrote:
> > On Wed, 8 Jul 2009, Peter Zijlstra wrote:
> > 
> > >   doesn't sound like the right kind of event.. but then, it doesn't
> > >   have anything better either.
> > 
> > Is there a way to specify "invalid event"?  Just setting it to 0 doesn't 
> > work, on the Pentium Pro event 0 returns what looks like essentially
> > random numbers.
> 
> Hmm, bugger. I was assuming writing 0 to the evensel would disable the
> counter. Apparently that only works for eventsel1, which would mean we
> cannot run counter1 without counter0. That means we'd need to do a
> counter swap at times... :/

Ooh, we can instead use a counter that's specified to not count anything
for 'disabling' the counter, like event 0x2E with unit mask 0.


--
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