Adding context to an event is no longer possible
[lttng-tools.git] / src / bin / lttng-sessiond / trace-ust.c
index 2dcc7c25d95f737c2da19f88e6406b6c23d591c7..4c7dac8b72111f33904e7fef69a53e77578171cb 100644 (file)
@@ -274,12 +274,6 @@ struct ltt_ust_event *trace_ust_create_event(struct lttng_event *ev)
 
        /* Init node */
        lttng_ht_node_init_str(&lue->node, lue->attr.name);
-       /* Alloc context hash tables */
-       lue->ctx = lttng_ht_new(0, LTTNG_HT_TYPE_ULONG);
-       if (lue->ctx == NULL) {
-               ERR("Unable to create context hash table for event %s", ev->name);
-               goto error_free_event;
-       }
 
        DBG2("Trace UST event %s, loglevel (%d,%d) created",
                lue->attr.name, lue->attr.loglevel_type,
@@ -415,7 +409,6 @@ static void destroy_contexts(struct lttng_ht *ht)
 void trace_ust_destroy_event(struct ltt_ust_event *event)
 {
        DBG2("Trace destroy UST event %s", event->attr.name);
-       destroy_contexts(event->ctx);
        free(event->filter);
        free(event);
 }
This page took 0.022893 seconds and 4 git commands to generate.