Wait for data availability when stopping a session
[lttng-tools.git] / src / common / error.c
index 016027acdc7ef15a29bdd8a946fbbc97fc7af02b..4354cc3bbf6353bf30df4a9c7d9bb3e7a3a027b7 100644 (file)
@@ -98,6 +98,8 @@ static const char *error_string_array[] = {
        [ ERROR_INDEX(LTTNG_ERR_FILTER_NOMEM) ] = "Not enough memory for filter bytecode",
        [ 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",
 
        /* Last element */
        [ ERROR_INDEX(LTTNG_ERR_NR) ] = "Unknown error code"
@@ -109,6 +111,7 @@ static const char *error_string_array[] = {
  *
  * These code MUST be negative in other to treat that as an error value.
  */
+__attribute__((visibility("hidden")))
 const char *error_get_str(int32_t code)
 {
        code = -code;
This page took 0.024714 seconds and 4 git commands to generate.