Define a new command LTTNG_UST_EXCLUSION
authorJP Ikaheimonen <jp_ikaheimonen@mentor.com>
Thu, 7 Nov 2013 10:22:29 +0000 (12:22 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 13 Nov 2013 20:15:40 +0000 (15:15 -0500)
Define a new command id for attaching exclusions to enablers.
Define the structure for passing the command.

Signed-off-by: JP Ikaheimonen <jp_ikaheimonen@mentor.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-abi.h
include/ust-comm.h
liblttng-ust/lttng-ust-comm.c

index 66303328a63a43632e76908413592c25114ee779..ab70d574f87c79f3bfe7c585f668b0befab64d70 100644 (file)
@@ -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
 
index ae53f158e83dc338ae09e43047ef8adda154a1fc..b9bbb39bbbeeea702d045e818096b5a188960417 100644 (file)
@@ -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;
index a6e4ba35c9a68f9dae607d196f6c640f751c2989..bf2750c2dcd5700d7053e53667ff7c3bb2430433 100644 (file)
@@ -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;
This page took 0.02719 seconds and 4 git commands to generate.