[ 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"
*
* 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;