Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: tools/telemetry/telemetry/core/platform/platform_backend.py

Issue 578123002: [telemetry] Read MSRs from a separate privileged process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add pre-Vista check and increase server launch timeout. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/core/platform/platform_backend.py
diff --git a/tools/telemetry/telemetry/core/platform/platform_backend.py b/tools/telemetry/telemetry/core/platform/platform_backend.py
index 0d6ae3465f9513cd73a2e39f2be521e3cba7397d..710b8e596d45cffa86725b5d2f5496ca53cf3600 100644
--- a/tools/telemetry/telemetry/core/platform/platform_backend.py
+++ b/tools/telemetry/telemetry/core/platform/platform_backend.py
@@ -207,3 +207,11 @@ class PlatformBackend(object):
def StopMonitoringPower(self):
raise NotImplementedError()
+
+ def ReadMsr(self, msr_number):
+ """Read a CPU model-specific register (MSR).
+
+ Which MSRs are available depends on the CPU model.
+ On systems with multiple CPUs, this function may run on any CPU.
+ """
+ raise NotImplementedError()

Powered by Google App Engine
This is Rietveld 408576698