Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Patch 0/2 v2] Improvements for hw_breakpoint_handler()

0 views
Skip to first unread message

K.Prasad

unread,
Jan 28, 2010, 6:20:02 AM1/28/10
to
Hi Frederic,
Can you please pull the second version of the patch which perform
the following.

Patch 1/2: Clears the arch-reserved bits from debug status register. This
helps easy bitwise operations - such as the check for non-trap bits in
hw_breakpoint_handler. A check for the same using
"if (dr6 & (~DR_TRAP_BITS))" throws incorrect results due to the
presence of preset reserved bits.

Patch 2/2: Return NOTIFY_DONE from hw_breakpoint_handler() for interested
user-space breakpoints (and not unconditionally) since this could lead to
further processing in do_debug() with undesirable consequences.

Changelog ver II
----------------
Version I: LKML ref: 2009122618...@in.ibm.com

- Return NOTIFY_DONE for further processing (i.e. signal delivery) only for
interested user-space breakpoints i.e. with current->thread.debugreg6 bits
set.

Thanks,
K.Prasad

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Frederic Weisbecker

unread,
Jan 28, 2010, 7:20:02 AM1/28/10
to
On Thu, Jan 28, 2010 at 04:43:47PM +0530, K.Prasad wrote:
> Hi Frederic,
> Can you please pull the second version of the patch which perform
> the following.

Ok, looks good. I'm queueing these.

Thanks Prasad!

0 new messages