From: Jonathan Rajotte Date: Mon, 27 Jun 2016 19:08:10 +0000 (-0400) Subject: Add error code related to templates handling X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=45edfe836845ae63a008cf3615987b96e2a4a7a8 Add error code related to templates handling --- diff --git a/include/lttng/lttng-error.h b/include/lttng/lttng-error.h index 72194ef2c..ac8305c6b 100644 --- a/include/lttng/lttng-error.h +++ b/include/lttng/lttng-error.h @@ -142,6 +142,13 @@ enum lttng_error_code { LTTNG_ERR_LIVE_SESSION = 119, /* Live session unsupported */ LTTNG_ERR_PER_PID_SESSION = 120, /* Per-PID sessions unsupported */ LTTNG_ERR_KERN_CONTEXT_UNAVAILABLE = 121, /* Context unavailable on this kernel */ + LTTNG_ERR_HANDLE_CREATION = 122, /* Handle creation failed */ + LTTNG_ERR_CONFIG_INVALID_ELEMENT = 123, /* The element is invalid */ + LTTNG_ERR_CONFIG_ADD_CHILD = 124, /* The child could not be added */ + LTTNG_ERR_CONFIG_INVALID_QUERY = 125, /* Invalid query */ + LTTNG_ERR_CONFIG_EMPTY_SET = 126, /* Empty configuration set */ + LTTNG_ERR_CONFIG_INVALID_COUNT = 127, /* Invalid number of results */ + LTTNG_ERR_CONFIG_REPLACEMENT = 128, /* Element replacement failed */ /* MUST be last element */ LTTNG_ERR_NR, /* Last element */ diff --git a/src/common/error.c b/src/common/error.c index bc42577bd..6ab742647 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -183,6 +183,13 @@ static const char *error_string_array[] = { [ ERROR_INDEX(LTTNG_ERR_LIVE_SESSION) ] = "Live sessions are not supported", [ ERROR_INDEX(LTTNG_ERR_PER_PID_SESSION) ] = "Per-PID tracing sessions are not supported", [ ERROR_INDEX(LTTNG_ERR_KERN_CONTEXT_UNAVAILABLE) ] = "Context unavailable on this kernel", + [ ERROR_INDEX(LTTNG_ERR_HANDLE_CREATION) ] = "Handle creation failed", + [ ERROR_INDEX(LTTNG_ERR_CONFIG_INVALID_ELEMENT) ] = "The element is invalid", + [ ERROR_INDEX(LTTNG_ERR_CONFIG_ADD_CHILD) ] = "The child could not be added", + [ ERROR_INDEX(LTTNG_ERR_CONFIG_INVALID_QUERY) ] = "Invalid query", + [ ERROR_INDEX(LTTNG_ERR_CONFIG_EMPTY_SET) ] = "Empty configuration set", + [ ERROR_INDEX(LTTNG_ERR_CONFIG_INVALID_COUNT) ] = "Invalid number of results", + [ ERROR_INDEX(LTTNG_ERR_CONFIG_REPLACEMENT) ] = "Element replacement failed", /* Last element */ [ ERROR_INDEX(LTTNG_ERR_NR) ] = "Unknown error code"