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

2017-08-25 Thread Steven Rostedt
On Fri, 25 Aug 2017 10:46:21 -0400 Prarit Bhargava wrote: > np. I'm going to copy the code for > > u64 notrace ktime_get_boot_fast_ns(void) > > but I'm unsure why the function is marked "notrace", and if > __ktime_get_real_fast_ns_unsafe() must be as well? I don't see anything in > the > gi

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

2017-08-25 Thread Prarit Bhargava
On 08/24/2017 02:50 PM, John Stultz wrote: > On Thu, Aug 24, 2017 at 6:42 AM, Prarit Bhargava wrote: >> --- a/include/linux/timekeeping.h >> +++ b/include/linux/timekeeping.h >> @@ -239,6 +239,7 @@ static inline u64 ktime_get_raw_ns(void) >> extern u64 ktime_get_mono_fast_ns(void); >> extern u

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

2017-08-24 Thread Sergey Senozhatsky
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 chang

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

2017-08-24 Thread John Stultz
On Thu, Aug 24, 2017 at 6:42 AM, Prarit Bhargava wrote: > --- a/include/linux/timekeeping.h > +++ b/include/linux/timekeeping.h > @@ -239,6 +239,7 @@ static inline u64 ktime_get_raw_ns(void) > extern u64 ktime_get_mono_fast_ns(void); > extern u64 ktime_get_raw_fast_ns(void); > extern u64 ktime_