* [PATCH] turbostat: Increase output buffer size to accommodate C8-C10
@ 2013-06-13 0:26 Josh Triplett
0 siblings, 0 replies; only message in thread
From: Josh Triplett @ 2013-06-13 0:26 UTC (permalink / raw)
To: Len Brown; +Cc: Andrew Morton, Linus Torvalds, linux-kernel
On platforms with C8-C10 support, the additional C-states cause
turbostat to overrun its output buffer of 128 bytes per CPU. Increase
this to 256 bytes per CPU.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
---
As a bugfix, this should go into 3.10; however, since the C8-C10 support
didn't go in until after 3.9, this need not go into any stable kernel.
tools/power/x86/turbostat/turbostat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 9e9d348..fe70207 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -2191,7 +2191,7 @@ int initialize_counters(int cpu_id)
void allocate_output_buffer()
{
- output_buffer = calloc(1, (1 + topo.num_cpus) * 128);
+ output_buffer = calloc(1, (1 + topo.num_cpus) * 256);
outp = output_buffer;
if (outp == NULL) {
perror("calloc");
--
1.8.3.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-13 0:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-13 0:26 [PATCH] turbostat: Increase output buffer size to accommodate C8-C10 Josh Triplett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®