Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David Mosberger-Tang <davidm@azstarnet.com>
Subject: Re: gprof fixes for glibc in RH4.1
Date: Tue, 18 Mar 1997 17:45:48 -0700	[thread overview]
Message-ID: <199703190045.RAA10737@panda.mosberger> (raw)

>>>>> On Mon, 17 Mar 1997 15:23:25 +0100 (CET), Andreas Johansson <ajo@wopr.campus.luth.se> 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

             reply	other threads:[~1997-03-19  0:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-19  0:45 David Mosberger-Tang [this message]
     [not found] <199703162008.NAA00621@panda.mosberger>
1997-03-17 14:23 ` gprof fixes for glibc in RH4.1 Andreas Johansson
  -- strict thread matches above, loose matches on Subject: below --
1997-03-16 20:08 David Mosberger-Tang
read-only archive

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