Hi Mulyadi, Finally after making some study on the dprintk source, i found that it can be enable by setting the config CONFIG_CPU_FREQ_DEBUG http://codemonkey.org.uk/projects/cpufreq/ But the above link say that i need to boot the kernel with cpufreq.debug=7, am not getting how to do that. for time being i have got it working by commenting the condition which checks for this variable in the kernel code. Thanks for your help. On Thu, Jan 20, 2011 at 11:11 AM, Mulyadi Santosa <mulyadi.santosa@gmail.com
wrote:
Hi Sugnan :)
On Thu, Jan 20, 2011 at 12:35, sugnan prabhu <sugnan.prabhu@gmail.com> wrote:
Sorry, what i meant is, am unable to find other logs which are being
using dprint,(ex: in fs/nfs/proc.c) i just wanted to know should i enable few flags in the kernel in order to enable those debug messages.
We follow "not doing top posting" rule here, so please make it as your habit too :)
OK, about dprint, I absolutely have no idea. IMHO, you could find out what dprint() really is e.g whether it is similar to printk or using other mean such as netlink etc.
Assuming it's using printk() or similar, find out which facility it uses...from there...combined with syslog.conf (or syslog alike such as rsyslog), you should easily parse the output. Enabling flag? maybe, but I think no need to think about the for now.
-- regards,
Mulyadi Santosa Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
-- Thanking You, Sugnan Prabhu S http://sugnanprabhu.blogspot.com/
On Thu, Jan 20, 2011 at 3:04 PM, sugnan prabhu <sugnan.prabhu@gmail.com> wrote:
Hi Mulyadi,
Finally after making some study on the dprintk source, i found that it can be enable by setting the config CONFIG_CPU_FREQ_DEBUG
http://codemonkey.org.uk/projects/cpufreq/
But the above link say that i need to boot the kernel with cpufreq.debug=7, am not getting how to do that.
It is a sysctl variable. sysctl -w debug.cpufreq.verbose=7
for time being i have got it working by commenting the condition which checks for this variable in the kernel code.
Thanks for your help.
On Thu, Jan 20, 2011 at 11:11 AM, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote:
Hi Sugnan :)
On Thu, Jan 20, 2011 at 12:35, sugnan prabhu <sugnan.prabhu@gmail.com> wrote:
Sorry, what i meant is, am unable to find other logs which are being print using dprint,(ex: in fs/nfs/proc.c) i just wanted to know should i enable few flags in the kernel in order to enable those debug messages.
We follow "not doing top posting" rule here, so please make it as your habit too :)
OK, about dprint, I absolutely have no idea. IMHO, you could find out what dprint() really is e.g whether it is similar to printk or using other mean such as netlink etc.
Assuming it's using printk() or similar, find out which facility it uses...from there...combined with syslog.conf (or syslog alike such as rsyslog), you should easily parse the output. Enabling flag? maybe, but I think no need to think about the for now.
-- regards,
Mulyadi Santosa Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
--
Thanking You, Sugnan Prabhu S http://sugnanprabhu.blogspot.com/
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, Denis
On Thu, Jan 20, 2011 at 2:05 PM, Denis Kirjanov <kirjanov@gmail.com> wrote:
On Thu, Jan 20, 2011 at 3:04 PM, sugnan prabhu <sugnan.prabhu@gmail.com> wrote:
Hi Mulyadi,
Finally after making some study on the dprintk source, i found that it can be enable by setting the config CONFIG_CPU_FREQ_DEBUG
http://codemonkey.org.uk/projects/cpufreq/
But the above link say that i need to boot the kernel with cpufreq.debug=7, am not getting how to do that.
It is a sysctl variable. sysctl -w debug.cpufreq.verbose=7
The kernel accepts arguments just like anything else and you pass them in when you boot the kernel. They can often be modified later, but do it the easy way for now, just pass it in as argument to the kernel. If you're using grub, in your menu.lst file you should have an entry like: === title Desktop -- openSUSE 11.3 - 2.6.36.2-3 root (hd0,4) kernel /boot/vmlinuz-2.6.36.2-3-desktop root=/dev/disk/by-label/root resume=/dev/disk/by-id/ata-ST3250310AS_9RY00PYW-part1 splash=silent showopts vga=0x31a initrd /boot/initrd-2.6.36.2-3-desktop === Just add cpufreq.debug=7 at the end of the kernel boot line. Greg
participants (3)
-
Denis Kirjanov -
Greg Freemyer -
sugnan prabhu