From: Philippe E. <ph...@wa...> - 2004-04-18 14:32:08
|
On Sun, 18 Apr 2004 at 21:06 +0000, Anton Blanchard wrote: > > Hi, > > Oprofilefs cant handle > 99 cpus. This should fix it. right. > ===== 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, Andrew, can you apply this patch ? regards, Phil |