]> git.baikalelectronics.ru Git - kernel.git/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)
commitb2bf2b3ac37121da5150f21288754a67fbd5b14c
treeb0405d1823ea30cdc07cd5ab5361d39b262e531e
parentd99d3483060dc58c1cbab3c0586a1b7c86f85c04
[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