public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Kegel <dank@kegel.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Ulrich Drepper <drepper@redhat.com>
Subject: Re: libc/1427: gprof does not profile threads
Date: Fri, 15 Mar 2002 20:20:40 -0800	[thread overview]
Message-ID: <3C92C818.3B7E370A@kegel.com> (raw)

> 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

                 reply	other threads:[~2002-03-16  4:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C92C818.3B7E370A@kegel.com \
    --to=dank@kegel.com \
    --cc=drepper@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox