From: Steven Rostedt <rostedt@goodmis.org>
To: "K.Prasad" <prasad@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>,
Frederic Weisbecker <fweisbec@gmail.com>,
LKML <linux-kernel@vger.kernel.org>,
Alan Stern <stern@rowland.harvard.edu>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [RFC Patch 2/4] Allow breakpoints to be enabled/disabled without yielding the breakpoint request through new APIs - <enable><disable>_hw_breakpoint()
Date: Wed, 28 Oct 2009 16:31:49 -0400 [thread overview]
Message-ID: <1256761909.26028.1794.camel@gandalf.stny.rr.com> (raw)
In-Reply-To: <20091026211915.GC15529@in.ibm.com>
On Tue, 2009-10-27 at 02:49 +0530, K.Prasad wrote:
> Index: linux-2.6-tip.perf_hbkpt/include/asm-generic/hw_breakpoint.h
> ===================================================================
> --- linux-2.6-tip.perf_hbkpt.orig/include/asm-generic/hw_breakpoint.h
> +++ linux-2.6-tip.perf_hbkpt/include/asm-generic/hw_breakpoint.h
> @@ -102,11 +102,22 @@
> * ----------------------------------------------------------------------
> */
> struct hw_breakpoint {
> + /*
> + * Denotes if a breakpoint is currently enabled in physical debug
> + * registers. Not to be set directly by the end-user. Must be
> + * operated through <enable><disable>_hw_breakpoint() APIs only.
> + */
> + atomic_t enabled;
Just a nit, but by looking at this structure as a whole, it's not easy
to see that the above comment is talking just about the "enabled" part
of the structure or the entire structure itself.
Probably want to add ...
/*
* The enabled item denotes if ...
-- Steve
> void (*triggered)(struct hw_breakpoint *, struct pt_regs *);
> const cpumask_t *cpumask;
> struct arch_hw_breakpoint info;
> };
>
> +enum bp_status {
> + BP_DISABLED = 0,
> + BP_ENABLED = 1
> +};
> +
next prev parent reply other threads:[~2009-10-28 20:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20091026211225.214925175@xyz>
2009-10-26 21:17 ` [RFC Patch 1/4] Allow kernel-space hw-breakpoints to be restricted only for a subset of CPUs using a cpumask field in struct hw_breakpoint K.Prasad
2009-10-26 21:19 ` [RFC Patch 2/4] Allow breakpoints to be enabled/disabled without yielding the breakpoint request through new APIs - <enable><disable>_hw_breakpoint() K.Prasad
2009-10-28 20:31 ` Steven Rostedt [this message]
2009-10-29 21:34 ` K.Prasad
2009-10-26 21:19 ` [RFC Patch 3/4] Bugfix HW-BKPT: Fix traceback seen when resuming after suspend-to-ram K.Prasad
2009-10-26 21:20 ` [RFC Patch 4/4] Enable perf-events to use hw-breakpoints K.Prasad
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=1256761909.26028.1794.camel@gandalf.stny.rr.com \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=prasad@linux.vnet.ibm.com \
--cc=stern@rowland.harvard.edu \
/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®