Add usage reference count for tracepoints
authorIkaheimonen, JP <jp_ikaheimonen@mentor.com>
Mon, 7 Oct 2013 13:33:02 +0000 (09:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 7 Oct 2013 13:39:47 +0000 (09:39 -0400)
commit8a7ad54be134997ab5985968ac6ada9ea58cafb9
tree8a4e8f131ad24b88b9704970f79b8218eb07891e
parent33f8ed8734a97e749206ec0e856ba2c28a56dcef
Add usage reference count for tracepoints

Keep track of how many libraries use a tracepoint, and disable the
tracepoint when the number of users drops to zero.

A new reference counter is added to tracepoint_entry. This keeps track
of how many callsites use that tracepoint.

When you have libraries and/or executables sharing tracepoints, you
cannot just disable your tracepoints when the library is unregistered.
You must check that the tracepoint is not used by any other libraries
before you disable it.

Function lib_disable_tracepoints becomes unnecessary, and is removed.

Signed-off-by: Ikaheimonen, JP <jp_ikaheimonen@mentor.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/tracepoint.c
This page took 0.025456 seconds and 4 git commands to generate.