X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt-events.c;h=17d87095c5a1b4bea0c15f9e8906fcb7bab47992;hb=64c796d8aec1efa5d6f0d5850d2a0095cb7842e3;hp=71fb8c70cdf99945534118674268fa77046dd0e7;hpb=05d32c64199816da32cd95929a8ff0d0d38d7f60;p=lttng-modules.git diff --git a/ltt-events.c b/ltt-events.c index 71fb8c70..17d87095 100644 --- a/ltt-events.c +++ b/ltt-events.c @@ -170,6 +170,11 @@ struct ltt_channel *ltt_channel_create(struct ltt_session *session, chan->session = session; init_waitqueue_head(&chan->notify_wait); chan->id = session->free_chan_id++; + /* + * Note: the channel creation op already writes into the packet + * headers. Therefore the "chan" information used as input + * should be already accessible. + */ chan->chan = transport->ops.channel_create("[lttng]", chan, buf_addr, subbuf_size, num_subbuf, switch_timer_interval, read_timer_interval); @@ -362,7 +367,7 @@ int lttng_metadata_printf(struct ltt_session *session, */ waitret = wait_event_interruptible_timeout(*chan->ops->get_reader_wait_queue(chan), ({ - ret = chan->ops->event_reserve(&ctx); + ret = chan->ops->event_reserve(&ctx, 0); ret != -ENOBUFS || !ret; }), msecs_to_jiffies(LTTNG_METADATA_TIMEOUT_MSEC));