All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: libc/1427: gprof does not profile threads
@ 2002-03-16  4:20 Dan Kegel
  0 siblings, 0 replies; only message in thread
From: Dan Kegel @ 2002-03-16  4:20 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org, Ulrich Drepper

> On Fri Mar 15, 2002 at 04:19:17PM -0800, Ulrich Drepper wrote:
> > On Fri, 2002-03-15 at 13:56, Dan Kegel wrote:
> > > Ulrich, do you at least agree that it would be desirable for
> > > gprof to work properly on multithreaded programs?
> >
> > No.  gprof is uselss in today world.
> 
> Then why not change sysdeps/generic/initfini.c with something like:
> 
> -      if (gmon_start)
> +      if (gmon_start && __pthread_initialize_minimal)
>           gmon_start ();
> 
> So it doesn't even try when threading?

I believe Ulrich's proposed fix would be

> -      if (gmon_start)
> +      if (gmon_start && 0)
>           gmon_start ();

as he did not distinguish between threaded and nonthreaded programs
when he said gprof was useless.

- Dan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-16  4:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-16  4:20 libc/1427: gprof does not profile threads Dan Kegel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.