Fix multi-session wildcard support
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 27 Mar 2012 20:15:20 +0000 (16:15 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 27 Mar 2012 20:15:20 +0000 (16:15 -0400)
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 <mathieu.desnoyers@efficios.com>
liblttng-ust/ltt-events.c

index 2613d513e6241c86c2bbcb7dcb832653ea387cbb..1e058b206c066825f81358ad04724c408aa710c1 100644 (file)
@@ -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);
        }
This page took 0.025236 seconds and 4 git commands to generate.