From: Keith Owens <kaos@ocs.com.au>
To: linux-kernel@vger.kernel.org
Subject: Re: New module loader makes kernel debugging much harder
Date: Sun, 24 Nov 2002 12:18:46 +1100 [thread overview]
Message-ID: <25797.1038100726@ocs3.intra.ocs.com.au> (raw)
In-Reply-To: Your message of "Sun, 24 Nov 2002 01:06:17 -0000." <20021124010617.GA58002@compsoc.man.ac.uk>
On Sun, 24 Nov 2002 01:06:17 +0000,
John Levon <levon@movementarian.org> wrote:
>On Sun, Nov 24, 2002 at 11:49:32AM +1100, Keith Owens wrote:
>> Although all module code currently goes in a single text area, there is
>> no guarantee that will always be the case. In the past we have had
>> multiple text areas in modules (out of line lock code used its own
>> section for a long time) and future changes could require multiple text
>> sections. To do profiling correctly, you need to know where all the
>> text sections are, i.e. the module loader has to publish symbols and
>> section data. Loosing that data is a big step backwards.
>
>Actually all *I* need is the address of one of the sections, as long as
>they're simply mapped in we can work backwards given the sample file
^^^^^^^^^^^^^
>and the offset of that section. So this already worked for when the
>locking code was a separate section. But yeah, it would be helpful for
>other uses to have more info available.
How do you know if the sections are "simply mapped"? The module loader
could assign different sections to different mappings, there is no
guarantee that they are contiguous. They were contiguous using the 2.4
module loader but only because the syscall only allowed for a single
area. The new loader can assign sections anywhere it likes.
One possibility the new loader opens up is the ability to replicate the
pure module data (rodata and text) for each node of a NUMA box. There
is already an option to replicate the kernel text on each node to cut
down inter-node traffic. Replicating the pure module data would be
nice as well. I guarantee that will result in something that is not
"simply mapped".
next prev parent reply other threads:[~2002-11-24 1:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-23 2:20 New module loader makes kernel debugging much harder Keith Owens
2002-11-23 2:35 ` John Levon
2002-11-23 2:43 ` Keith Owens
2002-11-23 16:23 ` John Levon
2002-11-24 0:49 ` Keith Owens
2002-11-24 1:06 ` John Levon
2002-11-24 1:18 ` Keith Owens [this message]
2002-11-24 1:34 ` John Levon
2002-11-25 1:26 ` Rusty Russell
2002-11-23 4:22 ` Jamie Lokier
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=25797.1038100726@ocs3.intra.ocs.com.au \
--to=kaos@ocs.com.au \
--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 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.