lkml.org 
[lkml]   [2015]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86, msr: Allow read access to /dev/cpu/X/msr

* Brown, Len <len.brown@intel.com> wrote:

> > This driver only knows how to handle counters, though. I'm not sure
> > whether all of the MSRs that turbostat needs are counters.
>
> turbostat --debug
> dumps a lot of configuration MSRs that are not counters.
>
> "--debug" is not an obscure option, it is the only way that the turbostat is
> used by advanced users, since it shows not just how fast a system is running,
> but explains why.

I see no problems there: the main property for perf is read-only access - so it
will work fine with non-counting MSRs as well.

Really, for system-wide statistics perf is the way to go, it has rich kernel side
and user side support. We already kind of expose MSRs via the RAPL energy PMU
bits. All we need is to extend it to an enumerated list of MSRs.

Thanks,

Ingo


\
 
 \ /
  Last update: 2015-07-03 10:01    [W:0.245 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site