All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: util-linux@math.uio.no
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: kernel profiler in 2.5.
Date: Mon, 29 Jul 2002 01:14:05 -0700	[thread overview]
Message-ID: <3D44F94D.E6F949AE@zip.com.au> (raw)


The kernel profiler broke quite some time ago.  It's actually
a problem with readprofile(8).   It doesn't like the weak
symbols in System.map:

c011fb04 T notifier_call_chain
c011fb44 T register_reboot_notifier
c011fb5c T unregister_reboot_notifier
c011fb74 T sys_ni_syscall
c011fb74 W sys_acct
c011fb74 W sys_quotactl
c011fb80 t proc_sel
c011fc28 T sys_setpriority

Here's a quick fix.  There are probably smarter ways...

--- sys-utils/readprofile.c.orig	Mon Jul 29 00:58:46 2002
+++ sys-utils/readprofile.c	Mon Jul 29 00:59:27 2002
@@ -267,7 +267,8 @@
 		/* ignore any LEADING (before a '[tT]' symbol is found)
 		   Absolute symbols */
 		if (*mode == 'A' && total == 0) continue;
-		if (*mode!='T' && *mode!='t') break;/* only text is profiled */
+		if (*mode!='T' && *mode!='t' && *mode!='w' && *mode != 'W')
+			break;/* only text is profiled */
 
 		if (indx >= len / sizeof(*buf)) {
 			fprintf(stderr, _("%s: profile address out of range. "


And now HZ has been set to 1000, the resolution is awfully
good.  The `-M' multiplier thing we added is overkill now.


-

                 reply	other threads:[~2002-07-29  8:02 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=3D44F94D.E6F949AE@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=util-linux@math.uio.no \
    /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 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.