6.0 gprof bug?
Sam
sah at softcardsystems.com
Thu Oct 28 14:28:01 PDT 2004
Hello -
I'm trying to do some kernel profiling and have hit a
snag in gprof, running on -current:
(gdb) run /boot/kernel/kernel /root/kernel.gmon
Starting program: /mnt/usr/6src/src2/usr.bin/gprof/gprof
/boot/kernel/kernel /root/kernel.gmon
Program received signal SIGFPE, Arithmetic exception.
0x080493f0 in openpfile (filename=0xbfbfee5b "/root/kernel.gmon") at gprof.c:311
311 nsamples = sampbytes / histcounter_size;
(gdb) where
#0 0x080493f0 in openpfile (filename=0xbfbfee5b "/root/kernel.gmon") at gprof.c:311
#1 0x080491e1 in getpfile (filename=0xbfbfee5b "/root/kernel.gmon") at gprof.c:247
#2 0x08049125 in main (argc=2, argv=0xbfbfed68) at gprof.c:188
histcounter_type == 1 and at line 304 we:
histcounter_size = abs(histcounter_type) / CHAR_BIT;
Anyone familiar with this code that can toss me a clue?
Sam
More information about the freebsd-current
mailing list