Rename lttng_ust_tracepoint_probe_(un)register
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 23 Apr 2021 18:12:20 +0000 (14:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 23 Apr 2021 19:50:29 +0000 (15:50 -0400)
Change-Id: Ic010cf596f1c89c41322e0cad2f0b044440cc187
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/tracepoint.h
src/lib/lttng-ust-tracepoint/tracepoint.c

index 23f01547720b67a5068eb940df210c6714c6467e..045046af0e5afc2b86bff6853af12f302fdd002f 100644 (file)
@@ -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);
 
 /*
index 35ad019f1c4720437f29e42fad3045a58d97e8f5..9767b15c5a7b6adcfa376926f6bade910f901e81 100644 (file)
@@ -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;
This page took 0.026945 seconds and 4 git commands to generate.