to investigate https://bugzilla.kernel.org/show_bug.cgi?id=15786 on current
openSUSE:Factory, I got asked to use gdb on the kernel
I have these packages installed:
# rpm -qa kernel-*
kernel-desktop-debugsource-2.6.34-4.1.i586
kernel-desktop-devel-2.6.34-4.1.i586
kernel-source-2.6.34-4.1.noarch
kernel-desktop-devel-debuginfo-2.6.34-4.1.i586
kernel-desktop-debuginfo-2.6.34-4.1.i586
kernel-devel-2.6.34-4.1.noarch
kernel-firmware-20100227-2.2.noarch
kernel-desktop-2.6.34-4.1.i586
I've uncompressed /boot/vmlinux-2.6.34-rc4-4-desktop.gz. Running gdb
shows:
# gdb vmlinux-2.6.34-rc4-4-desktop /proc/kcore
GNU gdb (GDB) SUSE (7.0.1-2.5)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-suse-linux".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /boot/vmlinux-2.6.34-rc4-4-desktop...Reading symbols
from /usr/lib/debug/boot/vmlinux-2.6.34-rc4-4-desktop.debug...done.
done.
warning: core file may not match specified executable file.
Core was generated by `root=/dev/disk/by-id/ata-ST9160411AS_5TG1MMND-part2
resume=/dev/disk/by-id/ata-S'.
#0 0x00000000 in ?? ()
(gdb) p jiffies
$1 = 0
(gdb) p loops_per_jiffy
$2 = 0
Those values do not make sense to me at all.
Also disassembling gives me only zeros:
(gdb) disassemble /r apbt_cpuhp_notify
Dump of assembler code for function apbt_cpuhp_notify:
0xc02240f0