* Re: 2.5.44: How to decode call trace [not found] ` <p73isztstim.fsf@oldwotan.suse.de> @ 2002-10-23 10:33 ` Olaf Dietsche [not found] ` <878z0p1m2y.fsf-7Fr62mCC+AxPE4CVVyAePw@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Olaf Dietsche @ 2002-10-23 10:33 UTC (permalink / raw) To: Andi Kleen Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Andi Kleen <ak-l3A5Bk7waGM@public.gmane.org> writes: > Olaf Dietsche <olaf.dietsche#list.linux-kernel-zqRNUXuvxA0b1SvskN2V4Q@public.gmane.org> writes: >> and this is the code: >> static int __fscap_lookup(struct vfsmount *mnt, struct nameidata *nd) >> { >> static char name[] = ".capabilities"; >> nd->mnt = mntget(mnt); >> nd->dentry = dget(mnt->mnt_sb->s_root); >> nd->flags = 0; >> return path_walk(name, nd); >> } >> >> What does .text.lock.namei and name.810 mean? > > .text.lock.namei means that it hung in the slow path of a spinlock that > is referenced from namei.c I guess this is what __down_failed means. > name.810 is a static data variable, probably the static char name[] > shown above. Remember the kernel backtrace is not exact and can print > random stack junk that looks like return addresses too. You always have > to sanity check each entry. Ok, I'll keep that in mind. >> Is there a way to get the line number out of these hex values? > > addr2line -e vmlinux ... does this when you compile the kernel with -g Great! This is what I was searching for. When I build with "make -k EXTRA_CFLAGS=-g EXTRA_LDFLAGS=-g bzImage", I get a ton of error messages from drivers/acpi/include/actypes.h and other acpi related stuff, starting with: #error ACPI_MACHINE_WIDTH not defined. Maybe this is not the usual way to build with -g, but I don't get these errors with "make -k bzImage". Maybe someone is interested in this. Anyway, I come around this by first building with "EXTRA_CFLAGS=-g EXTRA_LDFLAGS=-g", ignoring the error messages and then a second try with only EXTRA_LDFLAGS=-g. Regards, Olaf. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <878z0p1m2y.fsf-7Fr62mCC+AxPE4CVVyAePw@public.gmane.org>]
* Re: [ACPI] Re: 2.5.44: How to decode call trace [not found] ` <878z0p1m2y.fsf-7Fr62mCC+AxPE4CVVyAePw@public.gmane.org> @ 2002-10-23 11:48 ` Matthew Wilcox [not found] ` <20021023124846.L27461-+pPCBgu9SkPzIGdyhVEDUDl5KyyQGfY2kSSpQ9I8OhVaa/9Udqfwiw@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Matthew Wilcox @ 2002-10-23 11:48 UTC (permalink / raw) To: Olaf Dietsche Cc: Andi Kleen, linux-kernel-u79uwXL29TY76Z2rM5mHXA, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Wed, Oct 23, 2002 at 12:33:25PM +0200, Olaf Dietsche wrote: > When I build with "make -k EXTRA_CFLAGS=-g EXTRA_LDFLAGS=-g bzImage", > I get a ton of error messages from drivers/acpi/include/actypes.h and > other acpi related stuff, starting with: #error ACPI_MACHINE_WIDTH not > defined. Maybe this is not the usual way to build with -g, but I don't > get these errors with "make -k bzImage". Maybe someone is interested > in this. Not really. Users shouldn't be overriding EXTRA_CFLAGS, it's for the benefit of various parts of the kernel. Some other parts of the kernel you break by doing this: ./arch/i386/mach-generic/Makefile:EXTRA_CFLAGS += -I../kernel ./drivers/ide/pci/Makefile:EXTRA_CFLAGS := -Idrivers/ide ./drivers/message/fusion/Makefile:EXTRA_CFLAGS += ${MPT_CFLAGS} ./drivers/usb/storage/Makefile:EXTRA_CFLAGS := -Idrivers/scsi ./fs/smbfs/Makefile:EXTRA_CFLAGS += -DSMBFS_PARANOIA ./fs/xfs/Makefile:EXTRA_CFLAGS += -Ifs/xfs -funsigned-char ./sound/oss/emu10k1/Makefile: EXTRA_CFLAGS += -DEMU10K1_DEBUG The normal way to do what you want is to edit the Makefile and add -g directly to CFLAGS. -- Revolutions do not require corporate support. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <20021023124846.L27461-+pPCBgu9SkPzIGdyhVEDUDl5KyyQGfY2kSSpQ9I8OhVaa/9Udqfwiw@public.gmane.org>]
* Re: 2.5.44: How to decode call trace [not found] ` <20021023124846.L27461-+pPCBgu9SkPzIGdyhVEDUDl5KyyQGfY2kSSpQ9I8OhVaa/9Udqfwiw@public.gmane.org> @ 2002-10-23 12:26 ` Olaf Dietsche 0 siblings, 0 replies; 3+ messages in thread From: Olaf Dietsche @ 2002-10-23 12:26 UTC (permalink / raw) To: Matthew Wilcox Cc: Andi Kleen, linux-kernel-u79uwXL29TY76Z2rM5mHXA, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Matthew Wilcox <willy-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org> writes: > The normal way to do what you want is to edit the Makefile and add -g > directly to CFLAGS. Ok, thanks. Regards, Olaf. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-23 12:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87elai82xb.fsf@goat.bogus.local.suse.lists.linux.kernel>
[not found] ` <p73isztstim.fsf@oldwotan.suse.de>
2002-10-23 10:33 ` 2.5.44: How to decode call trace Olaf Dietsche
[not found] ` <878z0p1m2y.fsf-7Fr62mCC+AxPE4CVVyAePw@public.gmane.org>
2002-10-23 11:48 ` [ACPI] " Matthew Wilcox
[not found] ` <20021023124846.L27461-+pPCBgu9SkPzIGdyhVEDUDl5KyyQGfY2kSSpQ9I8OhVaa/9Udqfwiw@public.gmane.org>
2002-10-23 12:26 ` Olaf Dietsche
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox