From: Mathieu Desnoyers Date: Mon, 1 Nov 2021 20:47:39 +0000 (-0400) Subject: Refactoring: rename lttng_syscalls_register_event to lttng_syscalls_register_event_re... X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3c6beb8d0a658c617b2808abec04008edf9e3094;p=lttng-modules.git Refactoring: rename lttng_syscalls_register_event to lttng_syscalls_register_event_recorder Signed-off-by: Mathieu Desnoyers Change-Id: Icc5a6fcfdf951dd9b4661a4485c90ea7e84ad39a --- diff --git a/include/lttng/events-internal.h b/include/lttng/events-internal.h index a7dbe0f6..8ac1869b 100644 --- a/include/lttng/events-internal.h +++ b/include/lttng/events-internal.h @@ -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; } diff --git a/src/lttng-events.c b/src/lttng-events.c index ebeda986..6907b5a0 100644 --- a/src/lttng-events.c +++ b/src/lttng-events.c @@ -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); } diff --git a/src/lttng-syscalls.c b/src/lttng-syscalls.c index 3bbb266c..46cf8dfc 100644 --- a/src/lttng-syscalls.c +++ b/src/lttng-syscalls.c @@ -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;