Port: Add OSX clock_gettime compat
[lttng-tools.git] / src / common / error.c
index bc42577bda42d78b10f1f37189847d0cb392f993..1067e48527e8d3fc70a46cd3766d26bc8d475f8d 100644 (file)
@@ -46,7 +46,7 @@ const char *log_add_time(void)
        struct timespec tp;
        time_t now;
 
-       ret = clock_gettime(CLOCK_REALTIME, &tp);
+       ret = lttng_clock_gettime(CLOCK_REALTIME, &tp);
        if (ret < 0) {
                goto error;
        }
@@ -183,6 +183,8 @@ static const char *error_string_array[] = {
        [ ERROR_INDEX(LTTNG_ERR_LIVE_SESSION) ] = "Live sessions are not supported",
        [ ERROR_INDEX(LTTNG_ERR_PER_PID_SESSION) ] = "Per-PID tracing sessions are not supported",
        [ ERROR_INDEX(LTTNG_ERR_KERN_CONTEXT_UNAVAILABLE) ] = "Context unavailable on this kernel",
+       [ ERROR_INDEX(LTTNG_ERR_REGEN_STATEDUMP_FAIL) ] = "Failed to regenerate the state dump",
+       [ ERROR_INDEX(LTTNG_ERR_REGEN_STATEDUMP_NOMEM) ] = "Failed to regenerate the state dump, not enough memory",
 
        /* Last element */
        [ ERROR_INDEX(LTTNG_ERR_NR) ] = "Unknown error code"
This page took 0.025808 seconds and 5 git commands to generate.