summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 789f46d)
raw | patch | inline | side by side (parent: 789f46d)
author | Vincent Brillault <git@lerya.net> | |
Wed, 11 Feb 2015 21:06:45 +0000 (22:06 +0100) | ||
committer | Vincent Brillault <git@lerya.net> | |
Sat, 28 Feb 2015 06:35:42 +0000 (07:35 +0100) |
This new gauge contains TSC / interval_float.
If TSC and interval_float are behaving correctly, this is supposed to be
constant. Otherwise, other measurements can be wrong
If TSC and interval_float are behaving correctly, this is supposed to be
constant. Otherwise, other measurements can be wrong
src/turbostat.c | patch | blob | history |
diff --git a/src/turbostat.c b/src/turbostat.c
index fef1b1e35e6e54e3dba7fc6443f14df5b57f1e80..6cd39a1808522d9791834d1a79c2043b3ca2fef5 100644 (file)
--- a/src/turbostat.c
+++ b/src/turbostat.c
if ((!aperf_mperf_unstable) || (!(t->aperf > t->tsc || t->mperf > t->tsc)))
turbostat_submit("Buzy", "frequency", name, 1.0 * t->tsc / 1000000 * t->aperf / t->mperf / interval_float);
+ /* Sanity check (should stay stable) */
+ turbostat_submit("TSC", "gauge", name, 1.0 * t->tsc / 1000000 / interval_float);
+
/* SMI */
turbostat_submit(NULL, "current", name, t->smi_count);