From: David Goulet Date: Tue, 27 Nov 2012 18:52:10 +0000 (-0500) Subject: Assign values to enum lttcomm_sessiond_command X-Git-Tag: v2.1.0-rc9~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3c82c39ffc82422b1c506f22d9a20cac29cb7d87;p=lttng-tools.git Assign values to enum lttcomm_sessiond_command These command's code are part of a communication protocol so numbering them is important. Note that the RELAYD command should be in a seperate enum but until we wrote the specs of the protocol with the commands value, this is fine for now. Fixes #397 Signed-off-by: David Goulet --- diff --git a/src/common/sessiond-comm/sessiond-comm.h b/src/common/sessiond-comm/sessiond-comm.h index 6f75a1113..011a1290a 100644 --- a/src/common/sessiond-comm/sessiond-comm.h +++ b/src/common/sessiond-comm/sessiond-comm.h @@ -53,44 +53,44 @@ enum lttcomm_sessiond_command { /* Tracer command */ - LTTNG_ADD_CONTEXT, - LTTNG_CALIBRATE, - LTTNG_DISABLE_CHANNEL, - LTTNG_DISABLE_EVENT, - LTTNG_DISABLE_ALL_EVENT, - LTTNG_ENABLE_CHANNEL, - LTTNG_ENABLE_EVENT, - LTTNG_ENABLE_ALL_EVENT, + LTTNG_ADD_CONTEXT = 1, + LTTNG_CALIBRATE = 2, + LTTNG_DISABLE_CHANNEL = 3, + LTTNG_DISABLE_EVENT = 4, + LTTNG_DISABLE_ALL_EVENT = 5, + LTTNG_ENABLE_CHANNEL = 6, + LTTNG_ENABLE_EVENT = 7, + LTTNG_ENABLE_ALL_EVENT = 8, /* Session daemon command */ - LTTNG_CREATE_SESSION, - LTTNG_DESTROY_SESSION, - LTTNG_LIST_CHANNELS, - LTTNG_LIST_DOMAINS, - LTTNG_LIST_EVENTS, - LTTNG_LIST_SESSIONS, - LTTNG_LIST_TRACEPOINTS, - LTTNG_REGISTER_CONSUMER, - LTTNG_START_TRACE, - LTTNG_STOP_TRACE, - LTTNG_LIST_TRACEPOINT_FIELDS, + LTTNG_CREATE_SESSION = 9, + LTTNG_DESTROY_SESSION = 10, + LTTNG_LIST_CHANNELS = 11, + LTTNG_LIST_DOMAINS = 12, + LTTNG_LIST_EVENTS = 13, + LTTNG_LIST_SESSIONS = 14, + LTTNG_LIST_TRACEPOINTS = 15, + LTTNG_REGISTER_CONSUMER = 16, + LTTNG_START_TRACE = 17, + LTTNG_STOP_TRACE = 18, + LTTNG_LIST_TRACEPOINT_FIELDS = 19, /* Consumer */ - LTTNG_DISABLE_CONSUMER, - LTTNG_ENABLE_CONSUMER, - LTTNG_SET_CONSUMER_URI, + LTTNG_DISABLE_CONSUMER = 20, + LTTNG_ENABLE_CONSUMER = 21, + LTTNG_SET_CONSUMER_URI = 22, /* Relay daemon */ - RELAYD_ADD_STREAM, - RELAYD_CREATE_SESSION, - RELAYD_START_DATA, - RELAYD_UPDATE_SYNC_INFO, - RELAYD_VERSION, - RELAYD_SEND_METADATA, - RELAYD_CLOSE_STREAM, - RELAYD_DATA_PENDING, - RELAYD_QUIESCENT_CONTROL, - LTTNG_ENABLE_EVENT_WITH_FILTER, - LTTNG_HEALTH_CHECK, - LTTNG_DATA_PENDING, + RELAYD_ADD_STREAM = 23, + RELAYD_CREATE_SESSION = 24, + RELAYD_START_DATA = 25, + RELAYD_UPDATE_SYNC_INFO = 26, + RELAYD_VERSION = 27, + RELAYD_SEND_METADATA = 28, + RELAYD_CLOSE_STREAM = 29, + RELAYD_DATA_PENDING = 30, + RELAYD_QUIESCENT_CONTROL = 31, + LTTNG_ENABLE_EVENT_WITH_FILTER = 32, + LTTNG_HEALTH_CHECK = 33, + LTTNG_DATA_PENDING = 34, }; /*