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]
Date:	Thu, 11 Nov 2010 13:46:41 +0100
From:	Peter Zijlstra <peterz@...radead.org>
To:	Zhang Rui <rui.zhang@...el.com>
Cc:	"Lin, Ming M" <ming.m.lin@...el.com>, Ingo Molnar <mingo@...e.hu>,
	Matt Fleming <matt@...sole-pimps.org>,
	Frederic Weisbecker <fweisbec@...il.com>,
	lkml <linux-kernel@...r.kernel.org>,
	Arnaldo Carvalho de Melo <acme@...hat.com>
Subject: Re: [RFC PATCH 2/2] perf stat: Use event group to simulate PMI on
 PMI-less hardware counter

On Thu, 2010-11-11 at 10:00 +0800, Zhang Rui wrote:
> Well, the RAPL package energy perf event may need this piece of code.
> 
>  "MSR_PKG_ENERGY_STATUS is a read-only MSR. It reports the actual energy
> use for the package domain. This MSR is updated every ~1msec. It has a
> wraparound time of around 60 secs when power consumption is high, and
> may be longer otherwise."
> 
> As it's an energy counter, we should show it in "perf stat", right?
> As it doesn't have interrupt, I want to schedule a timer interrupt every
> 30s to update the event counter. 

So use a timer inside the RAPL pmu driver. No need to change the
interface or add generic code.
--
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