Fix: baddr_statedump tracepoint registration
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 16 Dec 2013 13:36:06 +0000 (08:36 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 16 Dec 2013 13:36:06 +0000 (08:36 -0500)
commitf0cc794d37abf59b4b8079612c7aa03dc305d92f
treed5f94487ca7f3a0baa5cf91b550aed26605c2c81
parentf866ecaa4ce74b912113f5f01bd620bb7bfd39d9
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 <paul_woegerer@mentor.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-tracepoint-event.h
liblttng-ust/Makefile.am
liblttng-ust/lttng-ust-baddr.c
liblttng-ust/ust_baddr_statedump.c [deleted file]
This page took 0.025223 seconds and 4 git commands to generate.