From: gmate.amit@gmail.com (amit mehta)
To: kernelnewbies@lists.kernelnewbies.org
Subject: kernel debugging nodes missing from /sys/kernel
Date: Mon, 27 Jun 2011 11:00:20 +0530 [thread overview]
Message-ID: <BANLkTiki_e2vOE1CuUq=EvT8dCpF0wxhdQ@mail.gmail.com> (raw)
I've two 64 bit machines,both have Linux kernel running, but on one of
the machines
I'm not seeing any node under /sys/kernel/debug.
I checked some config(CONFIG_*) in the kernel configuration file on
both machines
but they seem to be the same. More information below:
1: SuseX86_64:~ # uname -a
Linux SuseX86_64 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20
+0200 x86_64 x86_64 x86_64 GNU/Linux
SuseX86_64:~ # ls /sys/kernel/debug/
bdi dri dynamic_debug gpio ipoib kprobes mce sched_features
slow_work usb x86
SuseX86_64:~ # grep ^CONFIG_DEBUG /boot/config-2.6.32.12-0.7-default
CONFIG_DEBUG_FS=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_DEBUG_BLOCK_EXT_DEVT=y
CONFIG_DEBUG_FORCE_WEAK_PER_CPU=y
CONFIG_DEBUG_RODATA=y
SuseX86_64:~ # cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1
2: Now on a different machine, here I don't see the kernel/debug nodes
under /sys FS
[root at redhatx86_64]# uname -a
Linux lredhatx86_64 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT
2010 x86_64 x86_64 x86_64 GNU/Linux
[root at redhatx86_64 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.0 (Santiago)
[root at redhatx86_64 ~]# ls -l /sys/kernel/debug/
total 0 < -- ------------ -----------
[root@redhatx86_64 ]# grep ^CONFIG_DEBUG /boot/config-2.6.32-71.el6.x86_64
CONFIG_DEBUG_FS=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_SHIRQ=y
CONFIG_DEBUG_NMI_TIMEOUT=30
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_DEBUG_LIST=y
CONFIG_DEBUG_FORCE_WEAK_PER_CPU=y
CONFIG_DEBUG_STACKOVERFLOW=y
CONFIG_DEBUG_RODATA=y
CONFIG_DEBUG_RODATA_TEST=y
CONFIG_DEBUG_NX_TEST=m
CONFIG_DEBUG_BOOT_PARAMS=y
I'm specifically interested in /sys/kernel/debug/kprobes/enabled
According to kprobes.txt(http://lxr.linux.no/linux+v2.6.39/Documentation/kprobes.txt#L692)
I can enable/disable kprobes infrastructure through this node.
Though on both these two servers, I was successfully insert and test
some modules
using kprobes.
Please let me know what I'm missing on server2( redhatx86_64 )
Regards,
Amit
--
Life is elsewhere. Cross Frontiers. Fly away.
- Salman Rushdie
next reply other threads:[~2011-06-27 5:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-27 5:30 amit mehta [this message]
2011-06-27 5:52 ` kernel debugging nodes missing from /sys/kernel Silesh C V
2011-06-27 6:12 ` amit mehta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTiki_e2vOE1CuUq=EvT8dCpF0wxhdQ@mail.gmail.com' \
--to=gmate.amit@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).