From: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
To: Pratyush Anand <panand@redhat.com>, linux-kernel@vger.kernel.org
Cc: dave.long@linaro.org, will.deacon@arm.com
Subject: Re: Query: How to blacklist asm symbols for kprobe
Date: Mon, 06 Jul 2015 19:22:17 +0900 [thread overview]
Message-ID: <559A56D9.6070109@hitachi.com> (raw)
In-Reply-To: <20150629091613.GA24236@dhcppc13.redhat.com>
On 2015/06/29 18:16, Pratyush Anand wrote:
> Hi,
>
> There might be some symbols defined in asm file, which need to be
> prevented for kprobe-ing.
>
> For example, el0_sync, el1_sync, el0_dbg, el1_dbg etc (in
> arch/arm64/kernel/entry.S) should be added to the kprobe blacklist
> table. How can we do that?
>
You can port and use _ASM_NOKPROBE(symbol) macro in .S file.
In arch/x86/include/asm/asm.h, it is defined as below.
# define _ASM_NOKPROBE(entry) \
.pushsection "_kprobe_blacklist","aw" ; \
_ASM_ALIGN ; \
_ASM_PTR (entry); \
.popsection
Thank you,
--
Masami HIRAMATSU
Linux Technology Research Center, System Productivity Research Dept.
Center for Technology Innovation - Systems Engineering
Hitachi, Ltd., Research & Development Group
E-mail: masami.hiramatsu.pt@hitachi.com
prev parent reply other threads:[~2015-07-06 10:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-29 9:16 Pratyush Anand
2015-07-03 10:07 ` Pratyush Anand
2015-07-06 10:22 ` Masami Hiramatsu [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=559A56D9.6070109@hitachi.com \
--to=masami.hiramatsu.pt@hitachi.com \
--cc=dave.long@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=panand@redhat.com \
--cc=will.deacon@arm.com \
/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
Powered by JetHome