Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757439AbYBSRBH (ORCPT ); Tue, 19 Feb 2008 12:01:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753705AbYBSRA4 (ORCPT ); Tue, 19 Feb 2008 12:00:56 -0500 Received: from e28smtp07.in.ibm.com ([59.145.155.7]:59582 "EHLO e28esmtp07.in.ibm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753681AbYBSRAy (ORCPT ); Tue, 19 Feb 2008 12:00:54 -0500 Date: Tue, 19 Feb 2008 22:30:43 +0530 From: Dhaval Giani To: Ingo Molnar Cc: vgoyal@redhat.com, rostedt@goodmis.org, Peter Zijlstra , lkml Subject: Re: ftrace and kexec Message-ID: <20080219170043.GC4754@linux.vnet.ibm.com> Reply-To: Dhaval Giani References: <20080219132746.GC13780@linux.vnet.ibm.com> <20080219142239.GE9965@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080219142239.GE9965@elte.hu> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4146 Lines: 86 On Tue, Feb 19, 2008 at 03:22:39PM +0100, Ingo Molnar wrote: > > * Dhaval Giani wrote: > > > Hi, > > > > I've been running ftrace on the sched-devel tree. I just built a > > kernel and tried rebooting using kexec and I get this, > > hm, it's not a good idea to keep using the data structures of the tracer > while we kexec. Does the patch below resolve the problem? > It boots, but I get this now [ 0.296073] ------------[ cut here ]------------ [ 0.300018] WARNING: at kernel/lockdep.c:2689 check_flags+0xf6/0x10b() [ 0.300018] Modules linked in: [ 0.300018] Pid: 1, comm: swapper Not tainted 2.6.25-rc2-sched-devel #8 [ 0.300018] [] warn_on_slowpath+0x46/0x60 [ 0.300018] [] ? very_verbose+0x8/0xc [ 0.300018] [] ? check_chain_key+0xe/0x1a3 [ 0.300018] [] ? very_verbose+0x8/0xc [ 0.300018] [] ? very_verbose+0x8/0xc [ 0.300018] [] ? check_chain_key+0xe/0x1a3 [ 0.300018] [] ? mcount_call+0x5/0x9 [ 0.300018] [] ? check_chain_key+0xe/0x1a3 [ 0.300019] [] ? __lock_acquire+0x614/0x668 [ 0.300019] [] ? check_chain_key+0xe/0x1a3 [ 0.300019] [] ? ftrace_record_ip+0x124/0x130 [ 0.300019] [] ? mcount_call+0x5/0x9 [ 0.300019] [] ? debug_locks_off+0x8/0x40 [ 0.300019] [] ? mcount_call+0x5/0x9 [ 0.300019] [] check_flags+0xf6/0x10b [ 0.300019] [] lock_acquire+0x34/0x80 [ 0.300019] [] _spin_lock_irqsave+0x27/0x37 [ 0.300019] [] ? ftrace_record_ip+0xac/0x130 [ 0.300019] [] ? do_softirq+0x2f/0x47 [ 0.300019] [] ftrace_record_ip+0xac/0x130 [ 0.300019] [] ? trace_softirqs_off+0x8/0xaa [ 0.300019] [] ? do_softirq+0x2f/0x47 [ 0.300019] [] mcount_call+0x5/0x9 [ 0.300019] [] ? do_softirq+0x2f/0x47 [ 0.300019] [] ? trace_softirqs_off+0x8/0xaa [ 0.300019] [] __local_bh_disable+0x7d/0x83 [ 0.300019] [] __do_softirq+0x1e/0x97 [ 0.300019] [] do_softirq+0x2f/0x47 [ 0.300019] [] irq_exit+0x3c/0x3e [ 0.300019] [] smp_apic_timer_interrupt+0x32/0x3b [ 0.300019] [] apic_timer_interrupt+0x2d/0x34 [ 0.300019] [] ? release_console_sem+0xc0/0xda [ 0.300019] [] ? sys_unshare+0x9c/0x2a8 [ 0.300019] [] ? vprintk+0x24b/0x256 [ 0.300019] [] ? trace_hardirqs_on+0xb/0xd [ 0.300019] [] ? ftrace_record_ip+0x124/0x130 [ 0.300019] [] ? printk+0x8/0x16 [ 0.300019] [] printk+0x14/0x16 [ 0.300019] [] sock_register+0x61/0x6a [ 0.300019] [] netlink_proto_init+0xf4/0x11a [ 0.300019] [] ? kernel_init+0x0/0x6c [ 0.300019] [] do_initcalls+0x7a/0x192 [ 0.300019] [] ? create_proc_entry+0x6c/0x80 [ 0.300019] [] ? mcount_call+0x5/0x9 [ 0.300019] [] ? register_irq_proc+0xe/0x8b [ 0.300019] [] ? load_elf_binary+0x818/0x9e0 [ 0.300019] [] ? kernel_init+0x0/0x6c [ 0.300019] [] do_basic_setup+0x21/0x23 [ 0.300019] [] kernel_init+0x31/0x6c [ 0.300019] [] kernel_thread_helper+0x7/0x10 [ 0.300019] ======================= [ 0.300019] ---[ end trace ca143223eefdc828 ]--- [ 0.300019] irq event stamp: 1894 [ 0.300019] hardirqs last enabled at (1893): [] trace_hardirqs_on+0xb/0xd [ 0.300019] hardirqs last disabled at (1894): [] trace_hardirqs_off+0xb/0xd [ 0.300019] softirqs last enabled at (1184): [] __do_softirq+0x92/0x97 [ 0.300019] softirqs last disabled at (1175): [] do_softirq+0x2f/0x47 -- regards, Dhaval -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/