Rename lttng_probe_{,un}register to lttng_kernel_probe_{,un}register
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 May 2021 14:56:48 +0000 (10:56 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 May 2021 14:38:39 +0000 (10:38 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I62e1d4765d2dd8dcd4a40f3a12e40bbef93a2ead

include/lttng/events.h
include/lttng/tracepoint-event-impl.h
src/lttng-probes.c

index 7ed0b2013c35355aba6afb5533555ea35034814b..38cb39936ae4138e8e886c4bffe5689f4391c6fc 100644 (file)
@@ -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);
 
index e7eb31f1190edf2360feb1bd2ed3a56526aed73c..8ddacaae0f32df6f402ecc0a3e4d09635f4f8e0d 100644 (file)
@@ -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
index 10197b80f3b596375ad878ca49d7208d6c085e28..73d9482d0f1ee41d3c4621127c2c1d559942230f 100644 (file)
@@ -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.
This page took 0.028377 seconds and 4 git commands to generate.