Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750703AbWAPNle (ORCPT ); Mon, 16 Jan 2006 08:41:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750757AbWAPNld (ORCPT ); Mon, 16 Jan 2006 08:41:33 -0500 Received: from ns.miraclelinux.com ([219.118.163.66]:24120 "EHLO mail01.miraclelinux.com") by vger.kernel.org with ESMTP id S1750703AbWAPNld (ORCPT ); Mon, 16 Jan 2006 08:41:33 -0500 Date: Mon, 16 Jan 2006 22:41:36 +0900 To: Andi Kleen Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] changes about Call Trace: Message-ID: <20060116134136.GB6707@miraclelinux.com> References: <20060116121611.GA539@miraclelinux.com> <200601161322.12209.ak@suse.de> <20060116134109.GA6707@miraclelinux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060116134109.GA6707@miraclelinux.com> User-Agent: Mutt/1.5.9i From: mita@miraclelinux.com (Akinobu Mita) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1624 Lines: 55 Use print_symbol() to dump call trace. Signed-off-by: Akinobu Mita --- 2.6-git/arch/x86_64/kernel/traps.c.orig 2006-01-16 22:05:38.000000000 +0900 +++ 2.6-git/arch/x86_64/kernel/traps.c 2006-01-16 22:07:36.000000000 +0900 @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -92,30 +93,14 @@ static inline void conditional_sti(struc static int kstack_depth_to_print = 10; -#ifdef CONFIG_KALLSYMS -#include -int printk_address(unsigned long address) -{ - unsigned long offset = 0, symsize; - const char *symname; - char *modname; - char *delim = ":"; - char namebuf[128]; - - symname = kallsyms_lookup(address, &symsize, &offset, &modname, namebuf); - if (!symname) - return printk("[<%016lx>]", address); - if (!modname) - modname = delim = ""; - return printk("<%016lx>{%s%s%s%s%+ld}", - address,delim,modname,delim,symname,offset); -} -#else int printk_address(unsigned long address) { - return printk("[<%016lx>]", address); -} -#endif + int len; + + len = printk("<%016lx>", address); + len += print_symbol(" %s", address); + return len; +} static unsigned long *in_exception_stack(unsigned cpu, unsigned long stack, unsigned *usedp, const char **idp) - 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/