loglevel enable fixes
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 6 Dec 2011 04:53:34 +0000 (23:53 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 6 Dec 2011 04:53:34 +0000 (23:53 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/ltt-probes.c

index 2994512825660596060f8875915c026d3f01dc71..00e5f06bb27c8501db10b87d34c28b07d4e47350 100644 (file)
@@ -303,6 +303,7 @@ struct session_loglevel *add_loglevel(const char *name,
                        return ERR_PTR(-ENOMEM);
                memcpy(&e->name[0], name, name_len);
                cds_hlist_add_head(&e->hlist, head);
+               CDS_INIT_LIST_HEAD(&e->session_list);
        }
 
        /* session loglevel */
@@ -318,6 +319,7 @@ struct session_loglevel *add_loglevel(const char *name,
        sl->chan = chan;
        sl->enabled = 1;
        memcpy(&sl->event_param, event_param, sizeof(sl->event_param));
+       sl->event_param.instrumentation = LTTNG_UST_TRACEPOINT;
        CDS_INIT_LIST_HEAD(&sl->events);
        cds_list_add(&sl->list, &chan->session->loglevels);
        cds_list_add(&sl->session_list, &e->session_list);
This page took 0.024853 seconds and 4 git commands to generate.