Add app context support to ust-ctl protocol
[deliverable/lttng-ust.git] / include / lttng / ust-abi.h
index 126e61248487ed05941f2d24875bec7ddf66c4d3..8cae00e65ee4e8165ff44b8d5b444f6ee5ded8f1 100644 (file)
@@ -140,6 +140,7 @@ enum lttng_ust_context_type {
        LTTNG_UST_CONTEXT_IP                    = 4,
        LTTNG_UST_CONTEXT_PERF_THREAD_COUNTER   = 5,
        LTTNG_UST_CONTEXT_CPU_ID                = 6,
+       LTTNG_UST_CONTEXT_APP_CONTEXT           = 7,
 };
 
 struct lttng_ust_perf_counter_ctx {
@@ -156,6 +157,11 @@ struct lttng_ust_context {
 
        union {
                struct lttng_ust_perf_counter_ctx perf_counter;
+               struct {
+                       /* Includes trailing '\0'. */
+                       uint32_t provider_name_len;
+                       uint32_t ctx_name_len;
+               } app_ctx;
                char padding[LTTNG_UST_CONTEXT_PADDING2];
        } u;
 } LTTNG_PACKED;
This page took 0.026281 seconds and 5 git commands to generate.