X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt-events.c;h=17d87095c5a1b4bea0c15f9e8906fcb7bab47992;hb=41affe319e5f4c049ba0ae427f485d8cdfb65488;hp=46da159117bc27be766f1eebc97fac5f421e01d8;hpb=4e1f08f47c1837b09af74712c299c5169496591a;p=lttng-modules.git diff --git a/ltt-events.c b/ltt-events.c index 46da1591..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);