Re: [RFC PATCH 2/2] perf stat: Use event group to simulate PMI on PMI-less hardware counter

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Zhang Rui
Date: Wednesday, November 10, 2010 - 7:00 pm

On Wed, 2010-11-10 at 22:53 +0800, Peter Zijlstra 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.

thanks,
rui


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

Messages in current thread:
Re: [RFC PATCH 2/2] perf stat: Use event group to simulate ..., Zhang Rui, (Wed Nov 10, 7:00 pm)