From: Dmitry V. Levin Date: Fri, 17 Sep 2010 09:19:49 +0000 (+0000) Subject: Update the list of CLOCK_* constants to match Linux kernel v2.6.32+ X-Git-Tag: v4.6~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbaaf799115b2354b0db69013324f4c9ada9afcd;p=strace Update the list of CLOCK_* constants to match Linux kernel v2.6.32+ * time.c (struct xlat clocknames[]): Add more RT clock IDs. Reported by Tommi Rantala. --- diff --git a/time.c b/time.c index 01241d2d..0c6deaf1 100644 --- a/time.c +++ b/time.c @@ -675,7 +675,22 @@ static const struct xlat clocknames[] = { #ifdef CLOCK_MONOTONIC { CLOCK_MONOTONIC, "CLOCK_MONOTONIC" }, #endif - { 0, NULL } +#ifdef CLOCK_PROCESS_CPUTIME_ID + { CLOCK_PROCESS_CPUTIME_ID, "CLOCK_PROCESS_CPUTIME_ID" }, +#endif +#ifdef CLOCK_THREAD_CPUTIME_ID + { CLOCK_THREAD_CPUTIME_ID, "CLOCK_THREAD_CPUTIME_ID" }, +#endif +#ifdef CLOCK_MONOTONIC_RAW + { CLOCK_MONOTONIC_RAW, "CLOCK_MONOTONIC_RAW" }, +#endif +#ifdef CLOCK_REALTIME_COARSE + { CLOCK_REALTIME_COARSE, "CLOCK_REALTIME_COARSE" }, +#endif +#ifdef CLOCK_MONOTONIC_COARSE + { CLOCK_MONOTONIC_COARSE, "CLOCK_MONOTONIC_COARSE" }, +#endif + { 0, NULL } }; int