From: Mathieu Desnoyers Date: Tue, 2 Nov 2021 17:34:00 +0000 (-0400) Subject: Refactoring: Rename lttng_channel_syscall_mask to lttng_syscall_table_get_active_mask X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c970b6555c9cc92a4401ae81fddc32926be4bef6;p=lttng-modules.git Refactoring: Rename lttng_channel_syscall_mask to lttng_syscall_table_get_active_mask Signed-off-by: Mathieu Desnoyers Change-Id: I4740cef4ec6465ba9cbd4d61b097263e01acf4b8 --- diff --git a/include/lttng/events-internal.h b/include/lttng/events-internal.h index 86abd878..e8140485 100644 --- a/include/lttng/events-internal.h +++ b/include/lttng/events-internal.h @@ -816,7 +816,7 @@ int lttng_syscall_filter_disable_event(struct lttng_kernel_event_common *event); int lttng_syscalls_unregister_syscall_table(struct lttng_kernel_syscall_table *syscall_table); int lttng_syscalls_destroy_syscall_table(struct lttng_kernel_syscall_table *syscall_table); -long lttng_channel_syscall_mask(struct lttng_kernel_channel_buffer *channel, +long lttng_syscall_table_get_active_mask(struct lttng_kernel_syscall_table *syscall_table, struct lttng_kernel_abi_syscall_mask __user *usyscall_mask); int lttng_syscalls_create_matching_event_notifiers( @@ -847,8 +847,8 @@ static inline int lttng_syscalls_destroy_syscall_table(struct lttng_kernel_sysca return 0; } -static inline long lttng_channel_syscall_mask(struct lttng_kernel_channel_buffer *channel, - struct lttng_kernel_syscall_mask __user *usyscall_mask) +static inline long lttng_syscall_table_get_active_mask(struct lttng_kernel_syscall_table *syscall_table, + struct lttng_kernel_abi_syscall_mask __user *usyscall_mask) { return -ENOSYS; } diff --git a/src/lttng-abi.c b/src/lttng-abi.c index 533b5fb4..63cce39c 100644 --- a/src/lttng-abi.c +++ b/src/lttng-abi.c @@ -2532,7 +2532,7 @@ old_ctx_end: case LTTNG_KERNEL_ABI_DISABLE: return lttng_channel_disable(&channel->parent); case LTTNG_KERNEL_ABI_SYSCALL_MASK: - return lttng_channel_syscall_mask(channel, + return lttng_syscall_table_get_active_mask(&channel->priv->parent.syscall_table, (struct lttng_kernel_abi_syscall_mask __user *) arg); default: return -ENOIOCTLCMD; diff --git a/src/lttng-syscalls.c b/src/lttng-syscalls.c index 1194b95d..9739513b 100644 --- a/src/lttng-syscalls.c +++ b/src/lttng-syscalls.c @@ -1497,10 +1497,9 @@ const struct file_operations lttng_syscall_list_fops = { /* * A syscall is enabled if it is traced for either entry or exit. */ -long lttng_channel_syscall_mask(struct lttng_kernel_channel_buffer *channel, +long lttng_syscall_table_get_active_mask(struct lttng_kernel_syscall_table *syscall_table, struct lttng_kernel_abi_syscall_mask __user *usyscall_mask) { - struct lttng_kernel_syscall_table *syscall_table = &channel->priv->parent.syscall_table; uint32_t len, sc_tables_len, bitmask_len; int ret = 0, bit; char *tmp_mask;