From: Rusty Russell <rusty@rustcorp.com.au>
To: John Levon <levon@movementarian.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: size in /proc/modules
Date: Tue, 21 Jan 2003 17:44:21 +1100 [thread overview]
Message-ID: <20030121070114.A6A3D2C282@lists.samba.org> (raw)
In-Reply-To: Your message of "Mon, 20 Jan 2003 14:27:03 -0000." <20030120142703.GA58326@compsoc.man.ac.uk>
In message <20030120142703.GA58326@compsoc.man.ac.uk> you write:
>
> /proc/modules size field includes init_size in 2.5. Why ?
>
> The removal of sensible values in /proc/ksyms means that oprofile can no
> longer attribute module samples reliably. The only information we have
> is module_core address, and size == core_size+init_size. Since init code
> is removed in sys_init_module, this will overestimate, and can lead to
> overlapping with the start of another module, afaics.
>
> In 2.4, we had size(.text), which could underestimate (think
> .text.exit), but that is not a big problem.
>
> Rusty, does this fall under another one of your "corner cases" ? (what I
> would call "flaky code" ...)
>
> Or I have I just missed something obvious ?
Yes, line 1328 of kernel/module.c, by the sound of it 8)
I was thinking of you when I added this, actually.
Hope that helps!
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
prev parent reply other threads:[~2003-01-21 6:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-20 14:27 John Levon
2003-01-21 6:44 ` Rusty Russell [this message]
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=20030121070114.A6A3D2C282@lists.samba.org \
--to=rusty@rustcorp.com.au \
--cc=levon@movementarian.org \
--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
all inboxes | Powered by JetHome®