tracepoint: introduce *_noupdate APIs.
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 28 Oct 2008 02:51:53 +0000 (10:51 +0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 3 Nov 2008 09:28:52 +0000 (10:28 +0100)
commit127cafbb276266b1b8da967bfe25a062ab1d42ab
tree8f7183fa6f9a68b2bd3b3734da3575e4eff46a1d
parent19dba33c43a2f0f2aa727ae075ec3b11330775ef
tracepoint: introduce *_noupdate APIs.

Impact: add new tracepoint APIs to allow the batched registration of probes

new APIs separate tracepoint_probe_register(),
tracepoint_probe_unregister() into 2 steps. The first step of them
is just update tracepoint_entry, not connect or disconnect.

this patch introduces tracepoint_probe_update_all() for update all.

these APIs are very useful for registering lots of probes
but just updating once. Another very important thing is that
*_noupdate APIs do not require module_mutex.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/tracepoint.h
kernel/tracepoint.c