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:41:24 +0000 (09:41 -0400)
commit670c619d5fc86bda34ea606b425be7c1c8f2167c
tree69e07d2260fc2ddfa6b3b51fb6349e882ea374ce
parentc2025b69c4b3abd023c042058ca2766e0f7e2b6d
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.025112 seconds and 4 git commands to generate.