X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt-debugfs-abi.c;h=7c9f88ab98d0ed98bf26a0018208d56183b57963;hb=cd4bd11fe2d3232089186a5b9b021b7cb504a8fb;hp=0f649fc2af4bd10682949be82408cce0b7191ec9;hpb=f40270adf3e31289ac13a482e830b4a19d8df3bf;p=lttng-modules.git diff --git a/ltt-debugfs-abi.c b/ltt-debugfs-abi.c index 0f649fc2..7c9f88ab 100644 --- a/ltt-debugfs-abi.c +++ b/ltt-debugfs-abi.c @@ -123,7 +123,7 @@ static void lttng_metadata_create_events(struct file *channel_file) { struct ltt_channel *channel = channel_file->private_data; - char *event_name = "lttng-metadata"; + char *event_name = "lttng_metadata"; const struct lttng_event_desc *event_desc; struct ltt_event *event; int ret; @@ -210,8 +210,10 @@ int lttng_abi_create_channel(struct file *session_file, chan->file = chan_file; chan_file->private_data = chan; fd_install(chan_fd, chan_file); - if (channel_type == METADATA_CHANNEL) + if (channel_type == METADATA_CHANNEL) { lttng_metadata_create_events(chan_file); + session->metadata = chan; + } /* The channel created holds a reference on the session */ atomic_long_inc(&session_file->f_count);