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:40 +0000 (09:41 -0400)
commit95935cdd47dda0c644c6f6b18f714ce811fe6b2c
treec6c3088c9b206006fabad6f48c17e8a531a432b3
parent4a8f9fe6a3fb242ce5cdb905d7f9f24a8fb5df6b
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.026083 seconds and 4 git commands to generate.