All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add the word 'Warning' in check_nmi_watchdog() output
@ 2007-11-21 17:14 Don Zickus
  2007-11-21 18:34 ` Arjan van de Ven
  0 siblings, 1 reply; 4+ messages in thread
From: Don Zickus @ 2007-11-21 17:14 UTC (permalink / raw)
  To: linux-kernel; +Cc: tglx, mingo, Don Zickus

Our automated test suite looks for keywords like error, fail, warning in the
boot log.  In the case when the nmi watchdog is determined to be stuck in
check_nmi_watchdog(), none of those keywords are displayed.

This patch adds a keyword, 'Warning, so it makes it easier to notice when the nmi
watchdog isn't working correctly.

No technical changes have been made.  Compiler tested.

Signed-off-by: Don Zickus <dzickus@redhat.com>
---
 arch/x86/kernel/nmi_32.c |    2 +-
 arch/x86/kernel/nmi_64.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/nmi_32.c b/arch/x86/kernel/nmi_32.c
index 600fd40..47448ac 100644
--- a/arch/x86/kernel/nmi_32.c
+++ b/arch/x86/kernel/nmi_32.c
@@ -105,7 +105,7 @@ static int __init check_nmi_watchdog(void)
 		if (!per_cpu(wd_enabled, cpu))
 			continue;
 		if (nmi_count(cpu) - prev_nmi_count[cpu] <= 5) {
-			printk("CPU#%d: NMI appears to be stuck (%d->%d)!\n",
+			printk("CPU#%d: Warning NMI appears to be stuck (%d->%d)!\n",
 				cpu,
 				prev_nmi_count[cpu],
 				nmi_count(cpu));
diff --git a/arch/x86/kernel/nmi_64.c b/arch/x86/kernel/nmi_64.c
index a576fd7..a460d4a 100644
--- a/arch/x86/kernel/nmi_64.c
+++ b/arch/x86/kernel/nmi_64.c
@@ -109,7 +109,7 @@ int __init check_nmi_watchdog (void)
 		if (!per_cpu(wd_enabled, cpu))
 			continue;
 		if (cpu_pda(cpu)->__nmi_count - counts[cpu] <= 5) {
-			printk("CPU#%d: NMI appears to be stuck (%d->%d)!\n",
+			printk("CPU#%d: Warning NMI appears to be stuck (%d->%d)!\n",
 			       cpu,
 			       counts[cpu],
 			       cpu_pda(cpu)->__nmi_count);
-- 
1.5.3.5.562.g2544e


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

* Re: [PATCH] Add the word 'Warning' in check_nmi_watchdog() output
  2007-11-21 17:14 [PATCH] Add the word 'Warning' in check_nmi_watchdog() output Don Zickus
@ 2007-11-21 18:34 ` Arjan van de Ven
  2007-11-21 18:44   ` Don Zickus
  0 siblings, 1 reply; 4+ messages in thread
From: Arjan van de Ven @ 2007-11-21 18:34 UTC (permalink / raw)
  To: Don Zickus; +Cc: linux-kernel, tglx, mingo, Don Zickus

On Wed, 21 Nov 2007 12:14:20 -0500
Don Zickus <dzickus@redhat.com> wrote:

> Our automated test suite looks for keywords like error, fail, warning
> in the boot log.  In the case when the nmi watchdog is determined to
> be stuck in check_nmi_watchdog(), none of those keywords are
> displayed.


please make it at least consistent with the other kernel level bad
things, and use "WARNING:"....

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

* Re: [PATCH] Add the word 'Warning' in check_nmi_watchdog() output
  2007-11-21 18:34 ` Arjan van de Ven
@ 2007-11-21 18:44   ` Don Zickus
  2007-11-21 20:41     ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Don Zickus @ 2007-11-21 18:44 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-kernel, tglx, mingo

On Wed, Nov 21, 2007 at 10:34:59AM -0800, Arjan van de Ven wrote:
> On Wed, 21 Nov 2007 12:14:20 -0500
> Don Zickus <dzickus@redhat.com> wrote:
> 
> > Our automated test suite looks for keywords like error, fail, warning
> > in the boot log.  In the case when the nmi watchdog is determined to
> > be stuck in check_nmi_watchdog(), none of those keywords are
> > displayed.
> 
> 
> please make it at least consistent with the other kernel level bad
> things, and use "WARNING:"....

Good point.  I'll repost.

Cheers,
Don


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

* Re: [PATCH] Add the word 'Warning' in check_nmi_watchdog() output
  2007-11-21 18:44   ` Don Zickus
@ 2007-11-21 20:41     ` Thomas Gleixner
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Gleixner @ 2007-11-21 20:41 UTC (permalink / raw)
  To: Don Zickus; +Cc: Arjan van de Ven, linux-kernel, mingo

On Wed, 21 Nov 2007, Don Zickus wrote:

> On Wed, Nov 21, 2007 at 10:34:59AM -0800, Arjan van de Ven wrote:
> > On Wed, 21 Nov 2007 12:14:20 -0500
> > Don Zickus <dzickus@redhat.com> wrote:
> > 
> > > Our automated test suite looks for keywords like error, fail, warning
> > > in the boot log.  In the case when the nmi watchdog is determined to
> > > be stuck in check_nmi_watchdog(), none of those keywords are
> > > displayed.
> > 
> > 
> > please make it at least consistent with the other kernel level bad
> > things, and use "WARNING:"....
> 
> Good point.  I'll repost.

Before you repost, please add an appropriate KERN_WARN prefix to the
printk and run your patch through scripts/checkpatch.pl.

	tglx

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

end of thread, other threads:[~2007-11-21 20:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-21 17:14 [PATCH] Add the word 'Warning' in check_nmi_watchdog() output Don Zickus
2007-11-21 18:34 ` Arjan van de Ven
2007-11-21 18:44   ` Don Zickus
2007-11-21 20:41     ` Thomas Gleixner

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.