Since new values have been added gradually over various kernel versions,
it's better to define them explicitly in order to avoid situations when
strace built with old kernel headers can't decode some recently defined
value.

* xlat/clocknames.in: Add values for constants.
---
 xlat/clocknames.in |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/xlat/clocknames.in b/xlat/clocknames.in
index 4485666..1d0d372 100644
--- a/xlat/clocknames.in
+++ b/xlat/clocknames.in
@@ -1,12 +1,12 @@
-CLOCK_REALTIME
-CLOCK_MONOTONIC
-CLOCK_PROCESS_CPUTIME_ID
-CLOCK_THREAD_CPUTIME_ID
-CLOCK_MONOTONIC_RAW
-CLOCK_REALTIME_COARSE
-CLOCK_MONOTONIC_COARSE
-CLOCK_BOOTTIME
-CLOCK_REALTIME_ALARM
-CLOCK_BOOTTIME_ALARM
-CLOCK_SGI_CYCLE
-CLOCK_TAI
+CLOCK_REALTIME 0
+CLOCK_MONOTONIC 1
+CLOCK_PROCESS_CPUTIME_ID 2
+CLOCK_THREAD_CPUTIME_ID 3
+CLOCK_MONOTONIC_RAW 4
+CLOCK_REALTIME_COARSE 5
+CLOCK_MONOTONIC_COARSE 6
+CLOCK_BOOTTIME 7
+CLOCK_REALTIME_ALARM 8
+CLOCK_BOOTTIME_ALARM 9
+CLOCK_SGI_CYCLE 10
+CLOCK_TAI 11
-- 
1.7.10.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to