X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror.c;h=62a813a3e9808f638307d864b4a6ee686189eb51;hb=90e535ef0d0433d31e805775f85e4d187b1cf82c;hp=d5403d804d5c9dc658fcff946a1e74c074bf97a5;hpb=32dd26fbc3c69fe677a7917535e10ace066e674c;p=lttng-tools.git diff --git a/src/common/error.c b/src/common/error.c index d5403d804..62a813a3e 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -19,6 +19,7 @@ #include #include +#include #include "error.h" @@ -98,6 +99,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,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;