Re: [PATCH 2/2 v8] printk: Add monotonic, boottime, and realtime timestamps

From: Sergey Senozhatsky
Date: Fri Aug 25 2017 - 00:52:44 EST


On (08/24/17 09:42), Prarit Bhargava wrote:
[..]
> +config PRINTK_TIME_DEBUG
> + bool "Allow runtime reselection of any timebase on printks"
> + depends on PRINTK
> + default N
> + help
> + Selecting this option causes time stamps of the printk()
> + messages to be changed freely at runtime on the output of
> + the syslog() system call and at the console. Without this
> + option, one can only enable or disable the configuration
> + selected timebase.
> +
> + Runtime adjustment can be set via
> + /sys/module/printk/paramters/time as follows with a string:

s/paramters/parameters/

> + 0/N/n/disable, 1/Y/y/local, b/boot, m/monotonic, r/realtime.
> + eg: echo local >/sys/module/printk/parameters/time
> + echo realtime >/sys/module/printk/parameters/time

-ss