From: Mike Frysinger <vapier@gentoo.org>
To: linux-kernel@vger.kernel.org
Cc: mingo@redhat.com, rgetz@blackfin.uclinux.org, akpm@linux-foundation.org
Subject: [PATCH 2/4] kallsyms: use new arch_is_kernel_text()
Date: Wed, 17 Jun 2009 12:22:22 -0400 [thread overview]
Message-ID: <1245255744-21039-2-git-send-email-vapier@gentoo.org> (raw)
In-Reply-To: <1245255744-21039-1-git-send-email-vapier@gentoo.org>
This allows kallsyms to locate symbols that are in arch-specific text
sections (such as text in Blackfin on-chip SRAM regions).
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
kernel/kallsyms.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c
index 3a29dbe..8b6b8b6 100644
--- a/kernel/kallsyms.c
+++ b/kernel/kallsyms.c
@@ -59,7 +59,8 @@ static inline int is_kernel_inittext(unsigned long addr)
static inline int is_kernel_text(unsigned long addr)
{
- if (addr >= (unsigned long)_stext && addr <= (unsigned long)_etext)
+ if ((addr >= (unsigned long)_stext && addr <= (unsigned long)_etext) ||
+ arch_is_kernel_text(addr))
return 1;
return in_gate_area_no_task(addr);
}
--
1.6.3.1
next prev parent reply other threads:[~2009-06-17 16:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 16:22 [PATCH 1/4] asm/sections: add text/data checking functions for arches to override Mike Frysinger
2009-06-17 16:22 ` Mike Frysinger [this message]
2009-06-17 16:22 ` [PATCH 3/4] lockdep: use new arch_is_kernel_data() Mike Frysinger
2009-06-17 16:22 ` [PATCH 4/4] Blackfin: override text/data checking functions Mike Frysinger
2009-06-23 22:40 ` [PATCH 1/4] asm/sections: add text/data checking functions for arches to override Andrew Morton
2009-06-24 1:48 ` Mike Frysinger
2009-06-24 2:04 ` Andrew Morton
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=1245255744-21039-2-git-send-email-vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rgetz@blackfin.uclinux.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®