public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Oprofilefs cant handle > 99 cpus
@ 2004-04-18 11:06 Anton Blanchard
  2004-04-18 16:37 ` Philippe Elie
  2004-04-19 10:06 ` Jan-Benedict Glaw
  0 siblings, 2 replies; 3+ messages in thread
From: Anton Blanchard @ 2004-04-18 11:06 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, oprofile-list


Hi,

Oprofilefs cant handle > 99 cpus. This should fix it.

Anton

===== oprofile_stats.c 1.6 vs edited =====
--- 1.6/drivers/oprofile/oprofile_stats.c	Mon Jan 19 17:33:51 2004
+++ edited/oprofile_stats.c	Sun Apr 18 19:46:35 2004
@@ -55,7 +55,7 @@
 			continue;
 
 		cpu_buf = &cpu_buffer[i]; 
-		snprintf(buf, 6, "cpu%d", i);
+		snprintf(buf, 10, "cpu%d", i);
 		cpudir = oprofilefs_mkdir(sb, dir, buf);
  
 		/* Strictly speaking access to these ulongs is racy,

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-19 10:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-18 11:06 [PATCH] Oprofilefs cant handle > 99 cpus Anton Blanchard
2004-04-18 16:37 ` Philippe Elie
2004-04-19 10:06 ` Jan-Benedict Glaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox