X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ferror.c;h=e73cf17f6991f305e3dda64a873751dd37dd47fc;hp=016027acdc7ef15a29bdd8a946fbbc97fc7af02b;hb=5bcdda4ff7e938d320b497470c8c33c84e996370;hpb=f73fabfda365d22e7dd180fb1614e37c446fbd9e diff --git a/src/common/error.c b/src/common/error.c index 016027acd..e73cf17f6 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -98,6 +98,10 @@ 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", + [ 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" @@ -109,6 +113,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;