lkml.org 
[lkml]   [2014]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 1/6] tracing/trivial: Add CLOCK_BOOTIME and CLOCK_TAI for human readable clockid trace
Date
These clockids is also used in current hrtimer implementation.

Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
---
include/trace/events/timer.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/trace/events/timer.h b/include/trace/events/timer.h
index 185b2c6..547b79f 100644
--- a/include/trace/events/timer.h
+++ b/include/trace/events/timer.h
@@ -11,7 +11,10 @@
#define clockid_to_string(clockid) \
__print_symbolic(clockid, \
{ CLOCK_MONOTONIC, "CLOCK_MONOTONIC" }, \
- { CLOCK_REALTIME, "CLOCK_REALTIME" })
+ { CLOCK_REALTIME, "CLOCK_REALTIME" }, \
+ { CLOCK_BOOTTIME, "CLOCK_BOOTTIME" }, \
+ { CLOCK_TAI, "CLOCK_TAI" } \
+ )

#define hrmode_to_string(hrmode) \
__print_symbolic(hrmode, \
--
1.7.9.5


\
 
 \ /
  Last update: 2014-02-20 10:21    [W:0.282 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site