Re: [PATCH] x86, msr: Allow read access to /dev/cpu/X/msr

From: Ingo Molnar
Date: Fri Jul 03 2015 - 03:42:31 EST



* Brown, Len <len.brown@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/