rpms/kernel/devel linux-2.6-debug-softlockup-modules-list.patch, NONE, 1.1 kernel.spec, 1.716, 1.717

Dave Jones (davej) fedora-extras-commits at redhat.com
Thu Jun 26 21:48:09 UTC 2008


Author: davej

Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32488

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-debug-softlockup-modules-list.patch 
Log Message:
Print out modules list when we hit soft lockup.

linux-2.6-debug-softlockup-modules-list.patch:

--- NEW FILE linux-2.6-debug-softlockup-modules-list.patch ---
>From davej  Thu Jun 26 13:20:23 2008
Return-Path: <SRS0+cba5e387e114a98fb717+1768+infradead.org+arjan at casper.srs.infradead.org>
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on
	gelk.kernelslacker.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,
	UNPARSEABLE_RELAY autolearn=ham version=3.2.4
Received: from pobox.devel.redhat.com [10.11.255.8]
	by gelk.kernelslacker.org with IMAP (fetchmail-6.3.8)
	for <davej at localhost> (single-drop); Thu, 26 Jun 2008 13:20:23 -0400 (EDT)
Received: from pobox.devel.redhat.com ([unix socket])
	 by pobox.devel.redhat.com (Cyrus v2.2.12-Invoca-RPM-2.2.12-8.1.RHEL4) with LMTPA;
	 Thu, 26 Jun 2008 13:19:18 -0400
X-Sieve: CMU Sieve 2.2
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254])
	by pobox.devel.redhat.com (8.13.1/8.13.1) with ESMTP id m5QHJIwd028244
	for <davej at pobox.devel.redhat.com>; Thu, 26 Jun 2008 13:19:18 -0400
Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32])
	by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m5QHJHg4028301
	for <davej at redhat.com>; Thu, 26 Jun 2008 13:19:17 -0400
Received: from casper.infradead.org (casper.infradead.org [85.118.1.10])
	by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id m5QHJ1vw004507
	for <davej at redhat.com>; Thu, 26 Jun 2008 13:19:01 -0400
Received: from c-67-171-131-73.hsd1.or.comcast.net ([67.171.131.73] helo=localhost.localdomain)
	by casper.infradead.org with esmtpsa (Exim 4.69 #1 (Red Hat Linux))
	id 1KBv7M-0004BD-LQ
	for davej at redhat.com; Thu, 26 Jun 2008 17:18:45 +0000
Date: Thu, 26 Jun 2008 10:18:59 -0700
From: Arjan van de Ven <arjan at infradead.org>
To: davej at redhat.com
Subject: Fw: [patch] softlockup: print a module list on being stuck
Message-ID: <20080626101859.4070f7d8 at infradead.org>
Organization: Intel
X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.10; i386-redhat-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-MIME-Error: demime acl condition: uuencoded line length does not match advertised number of bytes
X-SRS-Rewrite: SMTP reverse-path rewritten from <arjan at infradead.org> by casper.infradead.org
	See http://www.infradead.org/rpr.html
X-RedHat-Spam-Score: -1 
X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254
X-Scanned-By: MIMEDefang 2.63 on 172.16.48.32
Status: RO
Content-Length: 1938
Lines: 62



Begin forwarded message:

Date: Wed, 25 Jun 2008 18:36:51 +0200
From: Ingo Molnar <mingo at elte.hu>
To: Linus Torvalds <torvalds at linux-foundation.org>
Cc: linux-kernel at vger.kernel.org, Arjan van de Ven <arjan at infradead.org>
Subject: [patch] softlockup: print a module list on being stuck



Linus,

Arjan has been observing lots of softlockup reports on kerneloops.org 
and would like to have the patch below in v2.6.26 to narrow the real 
source of it down some more, and has asked for this patch to be applied 
sooner than planned.

The patch is queued up for the next merge window at the moment. It's 
well-tested and obvious. The module list is printed here the same way 
it's printed for oopses.

Discard it if you feel in any way nervous about it.

	Ingo

---------------->
commit 688c91755dc3d3c03d8c67c1df13c02be258768e
Author: Arjan van de Ven <arjan at linux.intel.com>
Date:       Mon Jun 16 15:51:08 2008 -0700
CommitDate: Wed Jun 18 15:26:54 2008 +0200

    softlockup: print a module list on being stuck
    
    Most places in the kernel that go BUG: print a module list
    (which is very useful for doing statistics and finding patterns),
    however the softlockup detector does not do this yet.
    
    This patch adds the one line change to fix this gap.
    
    Signed-off-by: Arjan van de Ven <arjan at linux.intel.com>
    Signed-off-by: Ingo Molnar <mingo at elte.hu>


--- linux-2.6.25.noarch/kernel/softlockup.c~	2008-06-26 17:46:12.000000000 -0400
+++ linux-2.6.25.noarch/kernel/softlockup.c	2008-06-26 17:46:44.000000000 -0400
@@ -120,6 +120,7 @@ void softlockup_tick(void)
 	printk(KERN_ERR "BUG: soft lockup - CPU#%d stuck for %lus! [%s:%d]\n",
 			this_cpu, now - touch_timestamp,
 			current->comm, task_pid_nr(current));
+	print_modules();
 	if (regs)
 		show_regs(regs);
 	else


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.716
retrieving revision 1.717
diff -u -r1.716 -r1.717
--- kernel.spec	25 Jun 2008 20:02:57 -0000	1.716
+++ kernel.spec	26 Jun 2008 21:47:23 -0000	1.717
@@ -590,6 +590,7 @@
 Patch280: linux-2.6-debug-spinlock-taint.patch
 Patch340: linux-2.6-debug-vm-would-have-oomkilled.patch
 Patch350: linux-2.6-debug-list_debug_rcu.patch
+Patch360: linux-2.6-debug-softlockup-modules-list.patch
 Patch370: linux-2.6-crash-driver.patch
 Patch380: linux-2.6-defaults-pci_no_msi.patch
 Patch400: linux-2.6-scsi-cpqarray-set-master.patch
@@ -1061,6 +1062,7 @@
 ApplyPatch linux-2.6-debug-spinlock-taint.patch
 ApplyPatch linux-2.6-debug-vm-would-have-oomkilled.patch
 #ApplyPatch linux-2.6-debug-list_debug_rcu.patch
+ApplyPatch linux-2.6-debug-softlockup-modules-list.patch
 
 #
 # /dev/crash driver for the crashdump analysis tool
@@ -1784,6 +1786,9 @@
 %kernel_variant_files -a /%{image_install_path}/xen*-%{KVERREL}.xen -e /etc/ld.so.conf.d/kernelcap-%{KVERREL}.xen.conf %{with_xen} xen
 
 %changelog
+* Thu Jun 26 2008 Dave Jones <davej at redhat.com>
+- Print out modules list when we hit soft lockup.
+
 * Wed Jun 25 2008 John W. Linville <linville at redhat.com>
 - Upstream wireless fixes from 2008-06-25
   (http://marc.info/?l=linux-wireless&m=121440912502527&w=2)




More information about the fedora-extras-commits mailing list