From: Mathieu Desnoyers Date: Tue, 27 Mar 2012 20:15:20 +0000 (-0400) Subject: Fix multi-session wildcard support X-Git-Tag: v2.0.1~2 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=aa1419550b1157d1455b53d29aa7b0cfcccf8b07;p=lttng-ust.git Fix multi-session wildcard support Incorrectly unset loglevel information upon creation of wildcard_entry was causing a second session with wildcard enabled to not record its events. Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/ltt-events.c b/liblttng-ust/ltt-events.c index 2613d513..1e058b20 100644 --- a/liblttng-ust/ltt-events.c +++ b/liblttng-ust/ltt-events.c @@ -1356,6 +1356,8 @@ struct session_wildcard *add_wildcard(struct ltt_channel *chan, if (!e) return ERR_PTR(-ENOMEM); memcpy(&e->name[0], event_param->name, name_len); + e->loglevel_type = event_param->loglevel_type; + e->loglevel = event_param->loglevel; cds_list_add(&e->list, &wildcard_list); CDS_INIT_LIST_HEAD(&e->session_list); }