From: Michael Jeanson Date: Fri, 23 Apr 2021 18:12:20 +0000 (-0400) Subject: Rename lttng_ust_tracepoint_probe_(un)register X-Git-Tag: v2.13.0-rc1~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9b34a2b2a6f473b198b8472591717519d9a8c59b;p=lttng-ust.git Rename lttng_ust_tracepoint_probe_(un)register Change-Id: Ic010cf596f1c89c41322e0cad2f0b044440cc187 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/tracepoint.h b/include/lttng/tracepoint.h index 23f01547..045046af 100644 --- a/include/lttng/tracepoint.h +++ b/include/lttng/tracepoint.h @@ -216,7 +216,7 @@ static inline \ void lttng_ust_tracepoint_register_##_provider##___##_name(char *provider_name, char *event_name, \ void (*func)(void), void *data) \ { \ - lttng_ust_tracepoint_probe_register(provider_name, event_name, func, data, \ + lttng_ust_tracepoint_provider_register(provider_name, event_name, func, data, \ lttng_ust_tracepoint_##_provider##___##_name.signature); \ } \ static inline \ @@ -227,12 +227,12 @@ static inline \ void lttng_ust_tracepoint_unregister_##_provider##___##_name(char *provider_name, char *event_name, \ void (*func)(void), void *data) \ { \ - lttng_ust_tracepoint_probe_unregister(provider_name, event_name, func, data); \ + lttng_ust_tracepoint_provider_unregister(provider_name, event_name, func, data); \ } -extern int lttng_ust_tracepoint_probe_register(const char *provider_name, const char *event_name, +extern int lttng_ust_tracepoint_provider_register(const char *provider_name, const char *event_name, void (*func)(void), void *data, const char *signature); -extern int lttng_ust_tracepoint_probe_unregister(const char *provider_name, const char *event_name, +extern int lttng_ust_tracepoint_provider_unregister(const char *provider_name, const char *event_name, void (*func)(void), void *data); /* diff --git a/src/lib/lttng-ust-tracepoint/tracepoint.c b/src/lib/lttng-ust-tracepoint/tracepoint.c index 35ad019f..9767b15c 100644 --- a/src/lib/lttng-ust-tracepoint/tracepoint.c +++ b/src/lib/lttng-ust-tracepoint/tracepoint.c @@ -608,7 +608,7 @@ static void tracepoint_release_queue_add_old_probes(void *old) } /** - * lttng_ust_tracepoint_probe_register - Connect a probe to a tracepoint + * lttng_ust_tracepoint_provider_register - Connect a probe to a tracepoint * @name: tracepoint provider name * @name: tracepoint event name * @probe: probe handler @@ -617,7 +617,7 @@ static void tracepoint_release_queue_add_old_probes(void *old) * The probe address must at least be aligned on the architecture pointer size. * Called with the tracepoint mutex held. */ -int lttng_ust_tracepoint_probe_register(const char *provider_name, const char *event_name, +int lttng_ust_tracepoint_provider_register(const char *provider_name, const char *event_name, void (*probe)(void), void *data, const char *signature) { void *old; @@ -690,7 +690,7 @@ static void *tracepoint_remove_probe(const char *provider_name, const char *even * @probe: probe function pointer * @probe: probe data pointer */ -int lttng_ust_tracepoint_probe_unregister(const char *provider_name, const char *event_name, +int lttng_ust_tracepoint_provider_unregister(const char *provider_name, const char *event_name, void (*probe)(void), void *data) { void *old;