From 125b4df47b59943f8ad4f4936c1deddbdd0d008e Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 22 May 2011 10:04:47 -0400 Subject: [PATCH] Comment buffer creation behavior wrt packet headers Signed-off-by: Mathieu Desnoyers --- ltt-events.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.34.1