From: Mathieu Desnoyers Date: Mon, 16 Dec 2013 13:36:06 +0000 (-0500) Subject: Fix: baddr_statedump tracepoint registration X-Git-Tag: v2.4.0-rc3~6 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=f0cc794d37abf59b4b8079612c7aa03dc305d92f;hp=f0cc794d37abf59b4b8079612c7aa03dc305d92f;p=lttng-ust.git Fix: baddr_statedump tracepoint registration Make sure that the ust_baddr_statedump probe is registered prior to using the tracepoint in lttng_ust_baddr_statedump(). This fix solves the issue that in rare cases the very first ust_baddr_statedump events were missing. Use a reference counting approach that allows constructors/destructors of the probe to be called many times, as long as the number of calls to constructor matches the number of calls to destructor. Reported-by: Paul Woegerer Signed-off-by: Mathieu Desnoyers ---