From: Mathieu Desnoyers Date: Mon, 9 Dec 2019 15:16:14 +0000 (-0500) Subject: sessiond-comm: add clear command support to consumer protocol X-Git-Tag: v2.12.0-rc1~145 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b01b201a053f492b09bde7e970d950ad636eb75c;p=lttng-tools.git sessiond-comm: add clear command support to consumer protocol Signed-off-by: Mathieu Desnoyers Change-Id: I717012b855bc394bcdb524befb02a5b1ca54621b Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/sessiond-comm/sessiond-comm.h b/src/common/sessiond-comm/sessiond-comm.h index 91ae741e9..cf50f0e44 100644 --- a/src/common/sessiond-comm/sessiond-comm.h +++ b/src/common/sessiond-comm/sessiond-comm.h @@ -184,6 +184,7 @@ enum lttcomm_return_code { LTTCOMM_CONSUMERD_TRACE_CHUNK_EXISTS_LOCAL, /* Trace chunk exists on consumer daemon. */ LTTCOMM_CONSUMERD_TRACE_CHUNK_EXISTS_REMOTE,/* Trace chunk exists on relay daemon. */ LTTCOMM_CONSUMERD_UNKNOWN_TRACE_CHUNK, /* Unknown trace chunk. */ + LTTCOMM_CONSUMERD_RELAYD_CLEAR_DISALLOWED, /* Relayd does not accept clear command. */ /* MUST be last element */ LTTCOMM_NR, /* Last element */ @@ -663,6 +664,9 @@ struct lttcomm_consumer_msg { struct { lttng_uuid sessiond_uuid; } LTTNG_PACKED init; + struct { + uint64_t key; + } LTTNG_PACKED clear_channel; } u; } LTTNG_PACKED;