From: JP Ikaheimonen Date: Thu, 7 Nov 2013 10:22:29 +0000 (+0200) Subject: Define a new command LTTNG_UST_EXCLUSION X-Git-Tag: v2.4.0-rc1~17 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=75582b3a56366b73ba1f656e03fc8df4a991ac45;hp=f7e770b846eb5b661edc4f0f11d2ad4851fd45ba;p=lttng-ust.git Define a new command LTTNG_UST_EXCLUSION Define a new command id for attaching exclusions to enablers. Define the structure for passing the command. Signed-off-by: JP Ikaheimonen Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/ust-abi.h b/include/lttng/ust-abi.h index 66303328..ab70d574 100644 --- a/include/lttng/ust-abi.h +++ b/include/lttng/ust-abi.h @@ -273,6 +273,7 @@ struct lttng_ust_filter_bytecode { /* Event FD commands */ #define LTTNG_UST_FILTER _UST_CMD(0xA0) +#define LTTNG_UST_EXCLUSION _UST_CMD(0xA1) #define LTTNG_UST_ROOT_HANDLE 0 diff --git a/include/ust-comm.h b/include/ust-comm.h index ae53f158..b9bbb39b 100644 --- a/include/ust-comm.h +++ b/include/ust-comm.h @@ -91,6 +91,9 @@ struct ustcomm_ust_msg { uint32_t reloc_offset; uint64_t seqnum; } LTTNG_PACKED filter; + struct { + uint32_t count; /* how many names follow */ + } LTTNG_PACKED exclusion; char padding[USTCOMM_MSG_PADDING2]; } u; } LTTNG_PACKED; diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index a6e4ba35..bf2750c2 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -172,6 +172,7 @@ static const char *cmd_name_mapping[] = { /* Event FD commands */ [ LTTNG_UST_FILTER ] = "Create Filter", + [ LTTNG_UST_EXCLUSION ] = "Add exclusions to event", }; static const char *str_timeout;