From: Mathieu Desnoyers Date: Sun, 22 May 2011 14:04:47 +0000 (-0400) Subject: Comment buffer creation behavior wrt packet headers X-Git-Tag: v2.0-pre1~120 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=125b4df47b59943f8ad4f4936c1deddbdd0d008e;p=lttng-modules.git Comment buffer creation behavior wrt packet headers Signed-off-by: Mathieu Desnoyers --- 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);