From: Mathieu Desnoyers Date: Mon, 3 May 2021 14:56:48 +0000 (-0400) Subject: Rename lttng_probe_{,un}register to lttng_kernel_probe_{,un}register X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d17699818fb28f1a23c1f7715b1f1ebe09688df6;p=lttng-modules.git Rename lttng_probe_{,un}register to lttng_kernel_probe_{,un}register Signed-off-by: Mathieu Desnoyers Change-Id: I62e1d4765d2dd8dcd4a40f3a12e40bbef93a2ead --- diff --git a/include/lttng/events.h b/include/lttng/events.h index 7ed0b201..38cb3993 100644 --- a/include/lttng/events.h +++ b/include/lttng/events.h @@ -642,8 +642,8 @@ struct lttng_event_notifier_group { size_t error_counter_len; }; -int lttng_probe_register(struct lttng_kernel_probe_desc *desc); -void lttng_probe_unregister(struct lttng_kernel_probe_desc *desc); +int lttng_kernel_probe_register(struct lttng_kernel_probe_desc *desc); +void lttng_kernel_probe_unregister(struct lttng_kernel_probe_desc *desc); bool lttng_id_tracker_lookup(struct lttng_id_tracker_rcu *p, int id); diff --git a/include/lttng/tracepoint-event-impl.h b/include/lttng/tracepoint-event-impl.h index e7eb31f1..8ddacaae 100644 --- a/include/lttng/tracepoint-event-impl.h +++ b/include/lttng/tracepoint-event-impl.h @@ -1240,12 +1240,12 @@ static __used struct lttng_kernel_probe_desc TP_ID(__probe_desc___, TRACE_SYSTEM static int TP_ID(__lttng_events_init__, TRACE_SYSTEM)(void) { wrapper_vmalloc_sync_mappings(); - return lttng_probe_register(&TP_ID(__probe_desc___, TRACE_SYSTEM)); + return lttng_kernel_probe_register(&TP_ID(__probe_desc___, TRACE_SYSTEM)); } static void TP_ID(__lttng_events_exit__, TRACE_SYSTEM)(void) { - lttng_probe_unregister(&TP_ID(__probe_desc___, TRACE_SYSTEM)); + lttng_kernel_probe_unregister(&TP_ID(__probe_desc___, TRACE_SYSTEM)); } #ifndef TP_MODULE_NOAUTOLOAD diff --git a/src/lttng-probes.c b/src/lttng-probes.c index 10197b80..73d9482d 100644 --- a/src/lttng-probes.c +++ b/src/lttng-probes.c @@ -161,7 +161,7 @@ const struct lttng_kernel_probe_desc *find_provider(const char *provider) return NULL; } -int lttng_probe_register(struct lttng_kernel_probe_desc *desc) +int lttng_kernel_probe_register(struct lttng_kernel_probe_desc *desc) { int ret = 0; @@ -189,9 +189,9 @@ end: lttng_unlock_sessions(); return ret; } -EXPORT_SYMBOL_GPL(lttng_probe_register); +EXPORT_SYMBOL_GPL(lttng_kernel_probe_register); -void lttng_probe_unregister(struct lttng_kernel_probe_desc *desc) +void lttng_kernel_probe_unregister(struct lttng_kernel_probe_desc *desc) { lttng_lock_sessions(); if (!desc->lazy) @@ -201,7 +201,7 @@ void lttng_probe_unregister(struct lttng_kernel_probe_desc *desc) pr_debug("LTTng: just unregistered probe %s\n", desc->provider_name); lttng_unlock_sessions(); } -EXPORT_SYMBOL_GPL(lttng_probe_unregister); +EXPORT_SYMBOL_GPL(lttng_kernel_probe_unregister); /* * TODO: this is O(nr_probes * nb_events), could be faster.