Add exclusion data to enable-command
authorJP Ikaheimonen <jp_ikaheimonen@mentor.com>
Mon, 4 Nov 2013 11:52:26 +0000 (13:52 +0200)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 14 Nov 2013 18:40:57 +0000 (13:40 -0500)
Add a new command id for enabling events with exclusions.
Add the exclusion data to the enable-event command structure.

src/common/sessiond-comm/sessiond-comm.h

index 229b91e5901cae11e83a4675f48c047e8e07c32f..ed982486bac0a8f2bfdbf988020bd8930608a4fb 100644 (file)
@@ -81,7 +81,7 @@ enum lttcomm_sessiond_command {
        LTTNG_ENABLE_CONSUMER               = 20,
        LTTNG_SET_CONSUMER_URI              = 21,
        LTTNG_ENABLE_EVENT_WITH_FILTER      = 22,
-       /* Unused */
+       LTTNG_ENABLE_EVENT_WITH_EXCLUSION   = 23,
        LTTNG_DATA_PENDING                  = 24,
        LTTNG_SNAPSHOT_ADD_OUTPUT           = 25,
        LTTNG_SNAPSHOT_DEL_OUTPUT           = 26,
@@ -230,6 +230,14 @@ struct lttcomm_session_msg {
                        struct lttng_event event;
                        /* Length of following bytecode for filter. */
                        uint32_t bytecode_len;
+                       /* exclusion data */
+                       uint32_t exclusion_count;
+                       /*
+                        * After this structure, the following variable-length
+                        * items are transmitted:
+                        * - char exclusion_names[LTTNG_SYMBOL_NAME_LEN][exclusion_count]
+                        * - unsigned char filter_bytecode[bytecode_len]
+                        */
                } LTTNG_PACKED enable;
                /* Create channel */
                struct {
This page took 0.027314 seconds and 5 git commands to generate.