lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Tue, 1 Apr 2008 15:48:36 -0400
From:	Jason Baron <jbaron@...hat.com>
To:	linux-kernel@...r.kernel.org
Subject: [patch 0/3] dynamic printk

hi,

Add the ability to dynamically enable/disable pr_debug()/dev_dbg() in the
kernel. Yes, these calls could be converted to printk(KERN_DEBUG), but there
are enough to cause overhead. Additionally, the logs become difficult to read.
Here, one can turn on and off these messages per .c source file via:

echo "add file.c" > /sys/kernel/debug/dynamic_printk/files
echo "remove file.c" > /sys/kernel/debug/dynamic_printk/files

There is also a special 'all' value that turns on all the debugging messages.

I hope that these patches are useful for people writing new kernel code, for
system debugging and testing. In enabling the 'all' feature on the kernel I was
running i got a bunch of messages... (i'm not sure what they mean, but they
could point out an error or a kernel optimization that could be made, which I 
didn't necessarily know about otherwise).

thanks,

-Jason

Apr  1 10:33:38 dhcp83-106 kernel: Already setup manip DST for ct ffff81007d800140
Apr  1 10:33:38 dhcp83-106 kernel: Already setup manip SRC for ct ffff81007d800140
Apr  1 10:33:38 dhcp83-106 kernel: Already setup manip DST for ct ffff81007d800a00
Apr  1 10:33:38 dhcp83-106 kernel: Already setup manip SRC for ct ffff81007d800a00
Apr  1 10:33:39 dhcp83-106 kernel: Already setup manip DST for ct ffff81007d800a00
Apr  1 10:33:39 dhcp83-106 kernel: Already setup manip SRC for ct ffff81007d800a00
Apr  1 10:33:39 dhcp83-106 kernel: Already setup manip DST for ct ffff81007d800a00
Apr  1 10:33:39 dhcp83-106 kernel: Already setup manip SRC for ct ffff81007d800a00
Apr  1 10:33:40 dhcp83-106 kernel: Already setup manip DST for ct ffff810071851dc0
Apr  1 10:33:40 dhcp83-106 kernel: Already setup manip SRC for ct ffff810071851dc0
Apr  1 10:33:40 dhcp83-106 kernel: Already setup manip DST for ct ffff81007d800a00
Apr  1 10:33:40 dhcp83-106 kernel: Already setup manip SRC for ct ffff81007d800a00


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ