From 75582b3a56366b73ba1f656e03fc8df4a991ac45 Mon Sep 17 00:00:00 2001 From: JP Ikaheimonen Date: Thu, 7 Nov 2013 12:22:29 +0200 Subject: [PATCH] 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 --- include/lttng/ust-abi.h | 1 + include/ust-comm.h | 3 +++ liblttng-ust/lttng-ust-comm.c | 1 + 3 files changed, 5 insertions(+) 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; -- 2.34.1