How to get the whole information dumped from kernel
Quoted 2 lines · Linus Torvalds
- for one-off things where you don't want to go to
the bother, but
Quoted 3 lines
just want to find one problem, you can do:
[snipped]
- disableCONFIG_CALLSYM, which makes the oops
much harder to
Quoted 1 line
read, but also more compact. Then look up the
addresses by hand
Quoted 2 lines
with "gdb vmlinux" or use the ksymoops program.
Thank you.
In /usr/src/linux/.config, we can see that "CONFIG_KALLSYMS=y" is included in the General setup section like the following:
#
# General setup
#CONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_POSIX_MQUEUE=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_SYSCTL=yCONFIG_AUDIT=yCONFIG_AUDITSYSCALL=yCONFIG_LOG_BUF_SHIFT=17CONFIG_HOTPLUG=y
# CONFIG_IKCONFIG is not set
# CONFIG_EMBEDDED is not setCONFIG_KALLSYMS=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IOSCHED_DEADLINE=yCONFIG_IOSCHED_CFQ=yCONFIG_CC_OPTIMIZE_FOR_SIZE=y
But, when we run 'make menuconfig', we can only see that the General setup section only contains the following items:
[*] Support for paging of anonymous memory (swap)
[*] System V IPC
[*] POSIX Message Queues
[*] BSD Process Accounting
[*] Sysctl support
[*] Auditing support
[*] Enable system-call auditing support
(17) Kernel log buffer size (16 => 64KB, 17 =>
128KB)
[*] Support for hot-pluggable devices
[ ] Kernel .config support
[ ] Configure standard kernel features (for small
systems) --->
[*] Optimize for size
Then, It seems that there is no place to disable CONFIG_KALLSYMS (i.e. turn 'CONFIG_KALLSYMS=y' to 'CONFIG_KALLSYMS is not set'), How can I turn off the 'CONFIG_KALLSYMS' item?? Is CONFIG_KALLSYMS=y set automatically by system?
Thanks,
=====
--
Best Regards,
Park Lee <[email protected]>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 56 lines · Park Lee
Quoted 1 line · Linus Torvalds
- for one-off things where you don't want to go to
the bother, but
Quoted 3 lines
just want to find one problem, you can do:
[snipped]
- disableCONFIG_CALLSYM, which makes the oopsmuch harder to
Quoted 1 line
read, but also more compact. Then look up the
addresses by hand
Quoted 1 line
with "gdb vmlinux" or use the ksymoops program.
In
/usr/src/linux/.config, we can see that "CONFIG_KALLSYMS=y" is included in the General setup section like the following:#
# General setup
#CONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_POSIX_MQUEUE=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_SYSCTL=yCONFIG_AUDIT=yCONFIG_AUDITSYSCALL=yCONFIG_LOG_BUF_SHIFT=17CONFIG_HOTPLUG=y
#CONFIG_IKCONFIGis not set
#CONFIG_EMBEDDEDis not setCONFIG_KALLSYMS=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IOSCHED_DEADLINE=yCONFIG_IOSCHED_CFQ=yCONFIG_CC_OPTIMIZE_FOR_SIZE=yBut, when we run 'make menuconfig', we can only see that the General setup section only contains the following items:
[*] Support for paging of anonymous memory (swap)
[*] System V IPC
[*] POSIX Message Queues
[*] BSD Process Accounting[*] Sysctl support
[*] Auditing support
[*] Enable system-call auditing support
Quoted 8 lines
(17) Kernel log buffer size (16 => 64KB, 17 =>
128KB)
[*] Support for hot-pluggable devices[ ] Kernel .config support
[ ] Configure standard kernel features (for small
systems) --->
Right here, press Y and the press Enter and more options (including KALLSYMS) will appear for you to make.
Quoted 7 lines
[*] Optimize for size
Then, It seems that there is no place to disable
CONFIG_KALLSYMS(i.e. turn 'CONFIG_KALLSYMS=y' to 'CONFIG_KALLSYMSis not set'), How can I turn off the 'CONFIG_KALLSYMS' item?? IsCONFIG_KALLSYMS=yset automatically by system?
Signature · 1 line
~Randy
Quoted 8 lines · Randy.Dunlap
Quoted 3 lines · Park Lee
[snipped]
[ ] Configure standard kernel features (for small
systems) --->Right here, press Y and the press Enter and more options (including KALLSYMS) will appear for you to make.
Just now, I had a try. BUT there is no more options (including KALLSYMS) appear as what you said at all! What's the matter? ( I'm using Fedora Core 2, the Linux kernel version is 2.6.5).
Thank you.
=====
Best Regards,
Park Lee
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 8 lines · Park Lee
Quoted 6 lines · Randy.Dunlap
Quoted 3 lines · Park Lee
[snipped]
[ ] Configure standard kernel features (for small
systems) --->
Quoted 7 lines
Quoted 1 line
Right here, press Y and the press Enter and more options (including KALLSYMS) will appear for you to make.
Just now, I had a try. BUT there is no more options (including KALLSYMS) appear as what you said at all! What's the matter? ( I'm using Fedora Core 2, the Linux kernel version is 2.6.5).
Hi,
I can't say about FC2 in particular, but in looking at 2.6.5 from kernel.org, it looks like this:
[*] Remove kernel features (for embedded systems) --->
{enable above and press Enter, then see this:}
[*] Load all symbols for debugging/kksymoops (NEW)
{enable above and save it}
Hope that helps, if not, please try (send) again.
Signature · 1 line
~Randy