From: Pierre-Marc Fournier Date: Mon, 15 Feb 2010 05:16:04 +0000 (-0500) Subject: add debugging messages on buffer switch X-Git-Tag: v1.9.1~737 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=10dd3941021e171ae8ed4f2c3603607426e4af29;p=lttng-ust.git add debugging messages on buffer switch --- diff --git a/libust/buffers.c b/libust/buffers.c index a36453db..02eaec61 100644 --- a/libust/buffers.c +++ b/libust/buffers.c @@ -1521,6 +1521,7 @@ void ltt_force_switch_lockless_slow(struct ust_buffer *buf, offsets.size = 0; + DBG("Switching (forced) %s_%d", chan->channel_name, buf->cpu); /* * Perform retryable operations. */ @@ -1738,6 +1739,7 @@ int ltt_reserve_slot_lockless_slow(struct ust_trace *trace, if (unlikely(offsets.end_switch_old)) { //ust// ltt_clear_noref_flag(chan, buf, SUBBUF_INDEX(offsets.old - 1, chan)); ltt_reserve_switch_old_subbuf(chan, buf, &offsets, tsc); + DBG("Switching %s_%d", chan->channel_name, cpu); } /*