Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Change-Id: I4bf0ecbc97c64b6d9dbe78c66d2271d67d1902d0
supported_trace_format |= LTTCOMM_RELAYD_CONFIGURATION_TRACE_FORMAT_SUPPORTED_CTF1;
+ if (opt_allow_ctf2) {
+ supported_trace_format |=
+ LTTCOMM_RELAYD_CONFIGURATION_TRACE_FORMAT_SUPPORTED_CTF2;
+ }
+
supported_trace_format = htobe64(supported_trace_format);
lttcomm_relayd_get_configuration_specialized_query_reply s_reply = {};
mapping = {
{LTTNG_TRACE_FORMAT_DESCRIPTOR_TYPE_CTF_1,
LTTCOMM_RELAYD_CONFIGURATION_TRACE_FORMAT_SUPPORTED_CTF1},
+ {LTTNG_TRACE_FORMAT_DESCRIPTOR_TYPE_CTF_2,
+ LTTCOMM_RELAYD_CONFIGURATION_TRACE_FORMAT_SUPPORTED_CTF2},
};
auto it = mapping.find(trace_format.type());
enum lttcomm_relayd_configuration_trace_format_flag {
LTTCOMM_RELAYD_CONFIGURATION_TRACE_FORMAT_SUPPORTED_CTF1 = (1 << 0),
+ LTTCOMM_RELAYD_CONFIGURATION_TRACE_FORMAT_SUPPORTED_CTF2 = (1 << 1)
};
struct lttcomm_relayd_get_configuration {