2.5.44: How to decode call trace
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Olaf Dietsche
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
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.
Quoted 1 line
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
-Andi
Quoted 3 lines · Andi Kleen
Quoted 1 line
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
Also interesting is http://ds9a.nl/symoops
Signature · 2 lines
http://www.PowerDNS.com Versatile DNS Software & Services http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
Quoted 7 lines · bert hubert
Quoted 3 lines · Andi Kleen
Quoted 1 line
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
Also interesting is http://ds9a.nl/symoops
This is a real shortcut. Thanks.
Regards, Olaf.
Quoted 11 lines · Andi Kleen
Quoted 10 lines · Olaf Dietsche
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); }
Quoted 4 lines
Quoted 1 line
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.
Quoted 4 lines
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.
Quoted 3 lines
Quoted 1 line
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.
Quoted 6 lines · Olaf Dietsche
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.hand other acpi related stuff, starting with: #errorACPI_MACHINE_WIDTHnot 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.
Signature · 1 line
Revolutions do not require corporate support.
Quoted 2 lines · Matthew Wilcox
The normal way to do what you want is to edit the
Makefileand add -g directly to CFLAGS.
Ok, thanks.
Regards, Olaf.