From: Mathieu Desnoyers Date: Tue, 6 Dec 2011 04:53:34 +0000 (-0500) Subject: loglevel enable fixes X-Git-Tag: v1.9.1~22 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d5201d387edfea57734ec4d452f7139ca2374f70;p=lttng-ust.git loglevel enable fixes Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/ltt-probes.c b/liblttng-ust/ltt-probes.c index 29945128..00e5f06b 100644 --- a/liblttng-ust/ltt-probes.c +++ b/liblttng-ust/ltt-probes.c @@ -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);