From: JP Ikaheimonen Date: Mon, 4 Nov 2013 12:22:25 +0000 (+0200) Subject: Define a structure for event exclusion data X-Git-Tag: v2.4.0-rc1~41 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=579640f9fca12261ba8a0430759b8e04d0951606 Define a structure for event exclusion data Define a structure that holds the event exclusion data. The last data item is a flexible array that contains a variable number of exclusion names. --- diff --git a/src/common/sessiond-comm/sessiond-comm.h b/src/common/sessiond-comm/sessiond-comm.h index ed982486b..9a33479f3 100644 --- a/src/common/sessiond-comm/sessiond-comm.h +++ b/src/common/sessiond-comm/sessiond-comm.h @@ -292,6 +292,18 @@ struct lttng_filter_bytecode { char data[0]; } LTTNG_PACKED; +/* + * Event exclusion data. At the end of the structure, there will actually + * by zero or more names, where the actual number of names is given by + * the 'count' item of the structure. + */ +#define LTTNG_EVENT_EXCLUSION_PADDING 32 +struct lttng_event_exclusion { + uint32_t count; + char padding[LTTNG_EVENT_EXCLUSION_PADDING]; + char names[LTTNG_SYMBOL_NAME_LEN][0]; +} LTTNG_PACKED; + /* * Data structure for the response from sessiond to the lttng client. */