All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] x86,kgdb: Always initialize the hw breakpoint attribute
@ 2010-03-30 19:05 Jason Wessel
  2010-03-30 19:15 ` Frederic Weisbecker
  2010-04-02 19:06 ` [tip:perf/core] " tip-bot for Jason Wessel
  0 siblings, 2 replies; 3+ messages in thread
From: Jason Wessel @ 2010-03-30 19:05 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: linux-kernel, Jason Wessel, Ingo Molnar, stable

It is required to call hw_breakpoint_init() on an attr before using it
in any other calls.  This fixes the problem where kgdb will sometimes
fail to initialize on x86_64.

CC: Ingo Molnar <mingo@elte.hu>
CC: stable@kernel.org
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
---
 arch/x86/kernel/kgdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
index bfba601..b2258ca 100644
--- a/arch/x86/kernel/kgdb.c
+++ b/arch/x86/kernel/kgdb.c
@@ -618,8 +618,8 @@ int kgdb_arch_init(void)
 	 * portion of kgdb because this operation requires mutexs to
 	 * complete.
 	 */
+	hw_breakpoint_init(&attr);
 	attr.bp_addr = (unsigned long)kgdb_arch_init;
-	attr.type = PERF_TYPE_BREAKPOINT;
 	attr.bp_len = HW_BREAKPOINT_LEN_1;
 	attr.bp_type = HW_BREAKPOINT_W;
 	attr.disabled = 1;
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] x86,kgdb: Always initialize the hw breakpoint attribute
  2010-03-30 19:05 [PATCH 1/1] x86,kgdb: Always initialize the hw breakpoint attribute Jason Wessel
@ 2010-03-30 19:15 ` Frederic Weisbecker
  2010-04-02 19:06 ` [tip:perf/core] " tip-bot for Jason Wessel
  1 sibling, 0 replies; 3+ messages in thread
From: Frederic Weisbecker @ 2010-03-30 19:15 UTC (permalink / raw)
  To: Jason Wessel; +Cc: linux-kernel, Ingo Molnar, stable

On Tue, Mar 30, 2010 at 02:05:07PM -0500, Jason Wessel wrote:
> It is required to call hw_breakpoint_init() on an attr before using it
> in any other calls.  This fixes the problem where kgdb will sometimes
> fail to initialize on x86_64.
> 
> CC: Ingo Molnar <mingo@elte.hu>
> CC: stable@kernel.org
> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
> Acked-by: Frederic Weisbecker <fweisbec@gmail.com>


Queued for perf/urgent, thanks!



> ---
>  arch/x86/kernel/kgdb.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
> index bfba601..b2258ca 100644
> --- a/arch/x86/kernel/kgdb.c
> +++ b/arch/x86/kernel/kgdb.c
> @@ -618,8 +618,8 @@ int kgdb_arch_init(void)
>  	 * portion of kgdb because this operation requires mutexs to
>  	 * complete.
>  	 */
> +	hw_breakpoint_init(&attr);
>  	attr.bp_addr = (unsigned long)kgdb_arch_init;
> -	attr.type = PERF_TYPE_BREAKPOINT;
>  	attr.bp_len = HW_BREAKPOINT_LEN_1;
>  	attr.bp_type = HW_BREAKPOINT_W;
>  	attr.disabled = 1;
> -- 
> 1.5.4.3
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:perf/core] x86,kgdb: Always initialize the hw breakpoint attribute
  2010-03-30 19:05 [PATCH 1/1] x86,kgdb: Always initialize the hw breakpoint attribute Jason Wessel
  2010-03-30 19:15 ` Frederic Weisbecker
@ 2010-04-02 19:06 ` tip-bot for Jason Wessel
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Jason Wessel @ 2010-04-02 19:06 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, fweisbec, jason.wessel, stable, tglx, mingo

Commit-ID:  ab310b5edb8b601bcb02491ed6f7676da4fd1757
Gitweb:     http://git.kernel.org/tip/ab310b5edb8b601bcb02491ed6f7676da4fd1757
Author:     Jason Wessel <jason.wessel@windriver.com>
AuthorDate: Tue, 30 Mar 2010 14:05:07 -0500
Committer:  Frederic Weisbecker <fweisbec@gmail.com>
CommitDate: Thu, 1 Apr 2010 08:26:32 +0200

x86,kgdb: Always initialize the hw breakpoint attribute

It is required to call hw_breakpoint_init() on an attr before using it
in any other calls.  This fixes the problem where kgdb will sometimes
fail to initialize on x86_64.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: 2.6.33 <stable@kernel.org>
LKML-Reference: <1269975907-27602-1-git-send-email-jason.wessel@windriver.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
---
 arch/x86/kernel/kgdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
index bfba601..b2258ca 100644
--- a/arch/x86/kernel/kgdb.c
+++ b/arch/x86/kernel/kgdb.c
@@ -618,8 +618,8 @@ int kgdb_arch_init(void)
 	 * portion of kgdb because this operation requires mutexs to
 	 * complete.
 	 */
+	hw_breakpoint_init(&attr);
 	attr.bp_addr = (unsigned long)kgdb_arch_init;
-	attr.type = PERF_TYPE_BREAKPOINT;
 	attr.bp_len = HW_BREAKPOINT_LEN_1;
 	attr.bp_type = HW_BREAKPOINT_W;
 	attr.disabled = 1;

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-02 19:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-30 19:05 [PATCH 1/1] x86,kgdb: Always initialize the hw breakpoint attribute Jason Wessel
2010-03-30 19:15 ` Frederic Weisbecker
2010-04-02 19:06 ` [tip:perf/core] " tip-bot for Jason Wessel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.