X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Fagent.h;h=4fbe3db7a34f25695388498fa687876e7187b74e;hb=8bbffd547a5d7ce11413aff2082f97aafe9d7a51;hp=574f8891f20bc8211e1160e3038d2c97ec1b9707;hpb=23c2bd47c5ccd0e41e6f9e27fed5cdcfa0ed00f4;p=lttng-tools.git diff --git a/src/common/sessiond-comm/agent.h b/src/common/sessiond-comm/agent.h index 574f8891f..4fbe3db7a 100644 --- a/src/common/sessiond-comm/agent.h +++ b/src/common/sessiond-comm/agent.h @@ -24,7 +24,7 @@ #include /* - * Command value pass in the header. + * Command value passed in the header. */ enum lttcomm_agent_command { AGENT_CMD_LIST = 1, @@ -34,11 +34,14 @@ enum lttcomm_agent_command { }; /* - * Return code from the Java agent. + * Return codes from the agent. */ enum lttcomm_agent_ret_code { + /* Success, assumed to be the first entry */ AGENT_RET_CODE_SUCCESS = 1, + /* Invalid command */ AGENT_RET_CODE_INVALID = 2, + /* Unknown logger name */ AGENT_RET_CODE_UNKNOWN_NAME = 3, AGENT_RET_CODE_NR, }; @@ -56,7 +59,7 @@ struct lttcomm_agent_hdr { * Enable event command payload. */ struct lttcomm_agent_enable { - uint32_t loglevel; + uint32_t loglevel_value; uint32_t loglevel_type; char name[LTTNG_SYMBOL_NAME_LEN]; } LTTNG_PACKED; @@ -69,7 +72,7 @@ struct lttcomm_agent_disable { } LTTNG_PACKED; /* - * Generic reply coming from the Java Agent. + * Generic reply coming from the agent. */ struct lttcomm_agent_generic_reply { uint32_t ret_code; @@ -84,7 +87,7 @@ struct lttcomm_agent_list_reply_hdr { } LTTNG_PACKED; /* - * List command reply payload coming from the Java Agent. + * List command reply payload coming from the agent. */ struct lttcomm_agent_list_reply { uint32_t nb_event;