From: "K.Prasad" <prasad@linux.vnet.ibm.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: linuxppc-dev@ozlabs.org, Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Subject: Re: ppc_set_hwdebug vs ptrace_set_debugreg
Date: Mon, 29 Nov 2010 12:52:33 +0530 [thread overview]
Message-ID: <20101129072233.GA15560@in.ibm.com> (raw)
In-Reply-To: <m2lj4ezhhd.fsf@igel.home>
On Sat, Nov 27, 2010 at 08:36:30PM +0100, Andreas Schwab wrote:
> Why does ptrace_set_debugreg call register_user_hw_breakpoint, but
> ppc_set_hwdebug doesn't? Shouldn't ppc_set_hwdebug set the
> DABR_DATA_(READ|WRITE|TRANSLATION) bits in the dabr?
>
> Andreas.
The hw-breakpoint interfaces were initially planned for the old ptrace
option PTRACE_SET_DEBUGREG,while, the newer ptrace options are mostly
to exploit the advanced debug features of Book3E processors.
Although ppc_set_hwdebug() can set DABR through set_dabr() in
arch/powerpc/kernel/process.c, it is good to have it converted to use
register_user_hw_breakpoint(). This was planned to be done alongside the
conversion of all ptrace options enabled by CONFIG_PPC_ADV_DEBUG_REGS,
which is yet to be done.
Are you looking to use debug registers through perf, or somesuch, that
you need register_user_hw_breakpoint() to be used for these new ptrace
flags?
Thanks,
K.Prasad
next prev parent reply other threads:[~2010-11-29 7:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-27 19:36 ppc_set_hwdebug vs ptrace_set_debugreg Andreas Schwab
2010-11-29 7:22 ` K.Prasad [this message]
2010-11-29 10:15 ` Andreas Schwab
2010-12-01 4:37 ` K.Prasad
2010-12-13 8:26 ` K.Prasad
2010-12-13 19:05 ` Andreas Schwab
2010-12-14 12:54 ` K.Prasad
2010-12-14 18:59 ` Andreas Schwab
2010-12-16 17:07 ` Andreas Schwab
2011-01-02 12:54 ` K.Prasad
2011-01-02 14:58 ` Andreas Schwab
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=20101129072233.GA15560@in.ibm.com \
--to=prasad@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=schwab@linux-m68k.org \
--cc=shaggy@linux.vnet.ibm.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;
as well as URLs for NNTP newsgroup(s).