diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-07 13:13:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-07 13:13:52 -0500 |
commit | 3c00303206c3a1ccd86579efdc90bc35f140962e (patch) | |
tree | 66170c84b5ddaeb102aea3530517a26657b6ea29 /tools | |
parent | 83dbb15e9cd78a3619e3db36777e2f81d09b2914 (diff) | |
parent | efb90582c575084723cc14302c1300cb26c7e01f (diff) |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux:
cpuidle: Single/Global registration of idle states
cpuidle: Split cpuidle_state structure and move per-cpu statistics fields
cpuidle: Remove CPUIDLE_FLAG_IGNORE and dev->prepare()
cpuidle: Move dev->last_residency update to driver enter routine; remove dev->last_state
ACPI: Fix CONFIG_ACPI_DOCK=n compiler warning
ACPI: Export FADT pm_profile integer value to userspace
thermal: Prevent polling from happening during system suspend
ACPI: Drop ACPI_NO_HARDWARE_INIT
ACPI atomicio: Convert width in bits to bytes in __acpi_ioremap_fast()
PNPACPI: Simplify disabled resource registration
ACPI: Fix possible recursive locking in hwregs.c
ACPI: use kstrdup()
mrst pmu: update comment
tools/power turbostat: less verbose debugging
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 8b2d37b59c9e..3c6f7808efae 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c | |||
@@ -162,19 +162,21 @@ void print_header(void) | |||
162 | 162 | ||
163 | void dump_cnt(struct counters *cnt) | 163 | void dump_cnt(struct counters *cnt) |
164 | { | 164 | { |
165 | fprintf(stderr, "package: %d ", cnt->pkg); | 165 | if (!cnt) |
166 | fprintf(stderr, "core:: %d ", cnt->core); | 166 | return; |
167 | fprintf(stderr, "CPU: %d ", cnt->cpu); | 167 | if (cnt->pkg) fprintf(stderr, "package: %d ", cnt->pkg); |
168 | fprintf(stderr, "TSC: %016llX\n", cnt->tsc); | 168 | if (cnt->core) fprintf(stderr, "core:: %d ", cnt->core); |
169 | fprintf(stderr, "c3: %016llX\n", cnt->c3); | 169 | if (cnt->cpu) fprintf(stderr, "CPU: %d ", cnt->cpu); |
170 | fprintf(stderr, "c6: %016llX\n", cnt->c6); | 170 | if (cnt->tsc) fprintf(stderr, "TSC: %016llX\n", cnt->tsc); |
171 | fprintf(stderr, "c7: %016llX\n", cnt->c7); | 171 | if (cnt->c3) fprintf(stderr, "c3: %016llX\n", cnt->c3); |
172 | fprintf(stderr, "aperf: %016llX\n", cnt->aperf); | 172 | if (cnt->c6) fprintf(stderr, "c6: %016llX\n", cnt->c6); |
173 | fprintf(stderr, "pc2: %016llX\n", cnt->pc2); | 173 | if (cnt->c7) fprintf(stderr, "c7: %016llX\n", cnt->c7); |
174 | fprintf(stderr, "pc3: %016llX\n", cnt->pc3); | 174 | if (cnt->aperf) fprintf(stderr, "aperf: %016llX\n", cnt->aperf); |
175 | fprintf(stderr, "pc6: %016llX\n", cnt->pc6); | 175 | if (cnt->pc2) fprintf(stderr, "pc2: %016llX\n", cnt->pc2); |
176 | fprintf(stderr, "pc7: %016llX\n", cnt->pc7); | 176 | if (cnt->pc3) fprintf(stderr, "pc3: %016llX\n", cnt->pc3); |
177 | fprintf(stderr, "msr0x%x: %016llX\n", extra_msr_offset, cnt->extra_msr); | 177 | if (cnt->pc6) fprintf(stderr, "pc6: %016llX\n", cnt->pc6); |
178 | if (cnt->pc7) fprintf(stderr, "pc7: %016llX\n", cnt->pc7); | ||
179 | if (cnt->extra_msr) fprintf(stderr, "msr0x%x: %016llX\n", extra_msr_offset, cnt->extra_msr); | ||
178 | } | 180 | } |
179 | 181 | ||
180 | void dump_list(struct counters *cnt) | 182 | void dump_list(struct counters *cnt) |