Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Profiling support in glibc?
@ 2001-06-18 19:07 Brian Murphy
  2001-06-18 20:25 ` Ralf Baechle
  2001-06-18 21:05 ` Greg Satz
  0 siblings, 2 replies; 7+ messages in thread
From: Brian Murphy @ 2001-06-18 19:07 UTC (permalink / raw)
  To: linux-mips@oss.sgi.com


What is the status of profiling in glibc? Our (egcs-1.1.2 based)
compiler fails with a missing symbol
_start (glibc 2.0.6) but even if one fixes this up there are more
fundamental problems.

Is there a later glibc for which profiling works?

/Brian

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

* Re: Profiling support in glibc?
  2001-06-18 19:07 Profiling support in glibc? Brian Murphy
@ 2001-06-18 20:25 ` Ralf Baechle
  2001-06-18 20:52   ` Greg Satz
  2001-06-18 21:05 ` Greg Satz
  1 sibling, 1 reply; 7+ messages in thread
From: Ralf Baechle @ 2001-06-18 20:25 UTC (permalink / raw)
  To: Brian Murphy; +Cc: linux-mips@oss.sgi.com

On Mon, Jun 18, 2001 at 09:07:15PM +0200, Brian Murphy wrote:

> What is the status of profiling in glibc? Our (egcs-1.1.2 based)
> compiler fails with a missing symbol
> _start (glibc 2.0.6) but even if one fixes this up there are more
> fundamental problems.
> 
> Is there a later glibc for which profiling works?

I've never tried profiling but remember from looking at the source of
glibc 2.0.6 that there were rather obvious bugs.  Also you shouldn't
assume that anybody of the core developers has interest in wasting any
work into 2.0.6 since 2.2 is so much better so you may want to upgrade
anyway.

The other issue is of course gprof ...

  Ralf

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

* Re: Profiling support in glibc?
  2001-06-18 20:25 ` Ralf Baechle
@ 2001-06-18 20:52   ` Greg Satz
  0 siblings, 0 replies; 7+ messages in thread
From: Greg Satz @ 2001-06-18 20:52 UTC (permalink / raw)
  To: Ralf Baechle, Brian Murphy; +Cc: linux-mips@oss.sgi.com

Oddly enough I didn't have to make any changes to gprof. I used the version
in binutils-2.11.90.0.1.

Thanks,
Greg

on 6/18/01 2:25 PM, Ralf Baechle at ralf@oss.sgi.com wrote:

> The other issue is of course gprof ...

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

* Re: Profiling support in glibc?
  2001-06-18 19:07 Profiling support in glibc? Brian Murphy
  2001-06-18 20:25 ` Ralf Baechle
@ 2001-06-18 21:05 ` Greg Satz
  2001-06-18 21:11   ` H . J . Lu
                     ` (2 more replies)
  1 sibling, 3 replies; 7+ messages in thread
From: Greg Satz @ 2001-06-18 21:05 UTC (permalink / raw)
  To: Brian Murphy, linux-mips@oss.sgi.com

I was able to get profiling working using glibc-2.2.2 and gcc-2.95.3. Both
packages needed changes. The compiler had a stack misalignment correction
for glibc. Glibc didn't save all the registers nor treat sp/fp correctly.
Currently files compiled with -pg need to be linked -static. Specs need to
be updated to do this automatically.

I will send diffs if there is any interest.

Thanks,
Greg

on 6/18/01 1:07 PM, Brian Murphy at brian@murphy.dk wrote:

> 
> What is the status of profiling in glibc? Our (egcs-1.1.2 based)
> compiler fails with a missing symbol
> _start (glibc 2.0.6) but even if one fixes this up there are more
> fundamental problems.
> 
> Is there a later glibc for which profiling works?
> 
> /Brian
> 

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

* Re: Profiling support in glibc?
  2001-06-18 21:05 ` Greg Satz
@ 2001-06-18 21:11   ` H . J . Lu
  2001-06-19  8:37   ` Andreas Jaeger
  2001-06-19  9:34   ` Brian Murphy
  2 siblings, 0 replies; 7+ messages in thread
From: H . J . Lu @ 2001-06-18 21:11 UTC (permalink / raw)
  To: Greg Satz; +Cc: Brian Murphy, linux-mips@oss.sgi.com

On Mon, Jun 18, 2001 at 03:05:18PM -0600, Greg Satz wrote:
> I was able to get profiling working using glibc-2.2.2 and gcc-2.95.3. Both
> packages needed changes. The compiler had a stack misalignment correction
> for glibc. Glibc didn't save all the registers nor treat sp/fp correctly.
> Currently files compiled with -pg need to be linked -static. Specs need to
> be updated to do this automatically.
> 

The next release of my mips toolchain should be as good as the x86
version in RedHat 7.1. If you can send me patches against binutils,
glibc and gcc under

http://ftp.kernel.org/pub/linux/devel/binutils/mips/

I will take a look to see if I can include them in my next release.


H.J.

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

* Re: Profiling support in glibc?
  2001-06-18 21:05 ` Greg Satz
  2001-06-18 21:11   ` H . J . Lu
@ 2001-06-19  8:37   ` Andreas Jaeger
  2001-06-19  9:34   ` Brian Murphy
  2 siblings, 0 replies; 7+ messages in thread
From: Andreas Jaeger @ 2001-06-19  8:37 UTC (permalink / raw)
  To: Greg Satz; +Cc: Brian Murphy, linux-mips@oss.sgi.com

Greg Satz <satz@ayrnetworks.com> writes:

> I was able to get profiling working using glibc-2.2.2 and gcc-2.95.3. Both
> packages needed changes. The compiler had a stack misalignment correction
> for glibc. Glibc didn't save all the registers nor treat sp/fp correctly.
> Currently files compiled with -pg need to be linked -static. Specs need to
> be updated to do this automatically.
> 
> I will send diffs if there is any interest.

Please send me diffs for glibc,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

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

* Re: Profiling support in glibc?
  2001-06-18 21:05 ` Greg Satz
  2001-06-18 21:11   ` H . J . Lu
  2001-06-19  8:37   ` Andreas Jaeger
@ 2001-06-19  9:34   ` Brian Murphy
  2 siblings, 0 replies; 7+ messages in thread
From: Brian Murphy @ 2001-06-19  9:34 UTC (permalink / raw)
  Cc: linux-mips@oss.sgi.com


> I will send diffs if there is any interest.
> 
>

Yes please.

/Brian

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

end of thread, other threads:[~2001-06-19  9:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-18 19:07 Profiling support in glibc? Brian Murphy
2001-06-18 20:25 ` Ralf Baechle
2001-06-18 20:52   ` Greg Satz
2001-06-18 21:05 ` Greg Satz
2001-06-18 21:11   ` H . J . Lu
2001-06-19  8:37   ` Andreas Jaeger
2001-06-19  9:34   ` Brian Murphy

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