]> err.no Git - linux-2.6/commit
[PATCH] printk time parameter
authorJan Engelhardt <jengelh@linux01.gwdg.de>
Sun, 25 Jun 2006 12:48:15 +0000 (05:48 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:13 +0000 (10:01 -0700)
commit3b9c04106b70e46803c69d13d5da32f6129fa76d
treeb0405d1823ea30cdc07cd5ab5361d39b262e531e
parente5dcd90b53d601a04482db9800336a0ccf190880
[PATCH] printk time parameter

Currently, enabling/disabling printk timestamps is only possible through
reboot (bootparam) or recompile.  I normally do not run with timestamps
(since syslog handles that in a good manner), but for measuring small
kernel delays (e.g.  irq probing - see parport thread) I needed subsecond
precision, but then again, just for some minutes rather than all kernel
messages to come.  The following patch adds a module_param() with which the
timestamps can be en-/disabled in a live system through
/sys/modules/printk/parameters/printk_time.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/printk.c