Move LTTng-UST buffer ownership from application to consumer
[lttng-tools.git] / src / common / error.c
index ce11bf208ad7e05a3292eb790d56885916aa66d7..62a813a3e9808f638307d864b4a6ee686189eb51 100644 (file)
@@ -19,6 +19,7 @@
 #include <assert.h>
 
 #include <lttng/lttng-error.h>
+#include <common/common.h>
 
 #include "error.h"
 
@@ -99,6 +100,9 @@ static const char *error_string_array[] = {
        [ ERROR_INDEX(LTTNG_ERR_FILTER_EXIST) ] = "Filter already exist",
        [ ERROR_INDEX(LTTNG_ERR_NO_CONSUMER) ] = "Consumer not found for tracing session",
        [ ERROR_INDEX(LTTNG_ERR_NO_SESSIOND) ] = "No session daemon is available",
+       [ ERROR_INDEX(LTTNG_ERR_SESSION_STARTED) ] = "Session is running",
+       [ ERROR_INDEX(LTTNG_ERR_NOT_SUPPORTED) ] = "Operation not supported",
+       [ ERROR_INDEX(LTTNG_ERR_UST_EVENT_ENABLED) ] = "UST event already enabled",
 
        /* Last element */
        [ ERROR_INDEX(LTTNG_ERR_NR) ] = "Unknown error code"
@@ -110,7 +114,7 @@ static const char *error_string_array[] = {
  *
  * These code MUST be negative in other to treat that as an error value.
  */
-__attribute__((visibility("hidden")))
+LTTNG_HIDDEN
 const char *error_get_str(int32_t code)
 {
        code = -code;
This page took 0.023688 seconds and 4 git commands to generate.