From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199703190045.RAA10737@panda.mosberger> Date: Tue, 18 Mar 1997 17:45:48 -0700 From: David Mosberger-Tang Subject: Re: gprof fixes for glibc in RH4.1 >>>>> On Mon, 17 Mar 1997 15:23:25 +0100 (CET), Andreas Johansson said: Andreas> Thank you for your effort to make profiling work on the old Andreas> glibc. However, I can't get profiling to work. With your Andreas> fixes the binary won't segfault anymore when started, Andreas> instead it goes into some eternal loop mode. This doesn't ring a bell. Andreas> This happends Andreas> before the binary gets to main() (break main; run in gdb Andreas> doesn't get to the breakpoint. Also gdb segfaults if I try Andreas> to interrupt the process :( ). I belive I have pretty much Andreas> tried the standard 4.1 rpms when doing this. I normally use Andreas> a newer binutils. Did you compile with "-static -g"? Andreas> Here is what doesn't work for me: Hmmh, I tried your program (and much more complex stuff as well) and it works fine for me: --- $ ./hello $ gprof hello Flat profile: Each sample counts as 0.000976563 seconds. no time accumulated % cumulative self self total time seconds seconds calls Ts/call Ts/call name 0.00 0.00 0.00 14 0.00 0.00 _IO_file_overflow 0.00 0.00 0.00 14 0.00 0.00 __overflow 0.00 0.00 0.00 3 0.00 0.00 _IO_do_write 0.00 0.00 0.00 2 0.00 0.00 __libc_init 0.00 0.00 0.00 2 0.00 0.00 __new_exitfn 0.00 0.00 0.00 2 0.00 0.00 atexit 0.00 0.00 0.00 1 0.00 0.00 _IO_default_xsputn 0.00 0.00 0.00 1 0.00 0.00 _IO_doallocbuf 0.00 0.00 0.00 1 0.00 0.00 _IO_file_doallocate 0.00 0.00 0.00 1 0.00 0.00 _IO_file_stat 0.00 0.00 0.00 1 0.00 0.00 _IO_file_write 0.00 0.00 0.00 1 0.00 0.00 _IO_file_xsputn 0.00 0.00 0.00 1 0.00 0.00 _IO_setb 0.00 0.00 0.00 1 0.00 0.00 __fxstat [etc...] --- My installation is pretty much pristine 4.1 with the posted changes. --david -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com