lkml.org 
[lkml]   [2002]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: libc/1427: gprof does not profile threads
> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.022 / U:10.436 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site