Refactoring: rename lttng_syscalls_register_event to lttng_syscalls_register_event_re...
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Nov 2021 20:47:39 +0000 (16:47 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Nov 2021 20:47:39 +0000 (16:47 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Icc5a6fcfdf951dd9b4661a4485c90ea7e84ad39a

include/lttng/events-internal.h
src/lttng-events.c
src/lttng-syscalls.c

index a7dbe0f6fa66d663de3fb9d93a876d8e421b28af..8ac1869bf064b2d44fa1a0650e08c6bde881da6a 100644 (file)
@@ -809,7 +809,7 @@ void lttng_enabler_link_bytecode(const struct lttng_kernel_event_desc *event_des
                struct list_head *enabler_bytecode_runtime_head);
 
 #if defined(CONFIG_HAVE_SYSCALL_TRACEPOINTS)
-int lttng_syscalls_register_event(struct lttng_event_recorder_enabler *event_enabler);
+int lttng_syscalls_register_event_recorder(struct lttng_event_recorder_enabler *event_enabler);
 int lttng_syscall_filter_enable_event_recorder(struct lttng_kernel_event_recorder *event_recorder);
 int lttng_syscall_filter_disable_event_recorder(struct lttng_kernel_event_recorder *event_recorder);
 
@@ -826,8 +826,7 @@ int lttng_syscalls_create_matching_event_notifiers(
 int lttng_syscall_filter_enable_event_notifier(struct lttng_kernel_event_notifier *event_notifier);
 int lttng_syscall_filter_disable_event_notifier(struct lttng_kernel_event_notifier *event_notifier);
 #else
-static inline int lttng_syscalls_register_event(
-               struct lttng_event_recorder_enabler *event_enabler)
+static inline int lttng_syscalls_register_event_recorder(struct lttng_event_recorder_enabler *event_enabler)
 {
        return -ENOSYS;
 }
index ebeda98668ddecc9ba97b3a21a66b950dd88d6c2..6907b5a0f347d069ee8f5472b661b51eae0512f4 100644 (file)
@@ -2243,7 +2243,7 @@ void lttng_create_syscall_event_if_missing(struct lttng_event_recorder_enabler *
 {
        int ret;
 
-       ret = lttng_syscalls_register_event(event_enabler);
+       ret = lttng_syscalls_register_event_recorder(event_enabler);
        WARN_ON_ONCE(ret);
 }
 
index 3bbb266c3bf118527d5914db5fe8333025baa941..46cf8dfc90631163c7246c199bd4e174526591eb 100644 (file)
@@ -616,7 +616,7 @@ int lttng_create_syscall_event_if_missing(const struct trace_syscall_entry *tabl
 /*
  * Should be called with sessions lock held.
  */
-int lttng_syscalls_register_event(struct lttng_event_recorder_enabler *syscall_event_enabler)
+int lttng_syscalls_register_event_recorder(struct lttng_event_recorder_enabler *syscall_event_enabler)
 {
        struct lttng_kernel_syscall_table *syscall_table = get_syscall_table_from_enabler(&syscall_event_enabler->parent);
        struct lttng_kernel_abi_event ev;
This page took 0.028912 seconds and 4 git commands to generate.