Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

turbostat: Increase output buffer size to accommodate C8-C10

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.

[ 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. ]

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Cc: Len Brown <len.brown@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Josh Triplett and committed by
Linus Torvalds
b844db31 26e04462

+1 -1
+1 -1
tools/power/x86/turbostat/turbostat.c
··· 2191 2191 2192 2192 void allocate_output_buffer() 2193 2193 { 2194 - output_buffer = calloc(1, (1 + topo.num_cpus) * 128); 2194 + output_buffer = calloc(1, (1 + topo.num_cpus) * 256); 2195 2195 outp = output_buffer; 2196 2196 if (outp == NULL) { 2197 2197 perror("calloc");