Refactoring: Rename lttng_channel_syscall_mask to lttng_syscall_table_get_active_mask
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 2 Nov 2021 17:34:00 +0000 (13:34 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 2 Nov 2021 17:34:00 +0000 (13:34 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I4740cef4ec6465ba9cbd4d61b097263e01acf4b8

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

index 86abd8783017caa5eb5494ab940d8092c6d480e9..e81404856ee9f2fd92721346e6d245b86fae2323 100644 (file)
@@ -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;
 }
index 533b5fb4a6083c12e01055a632ff005b1dfefb55..63cce39c8c97c3f3f9e8028c15c4bb2bd553cd71 100644 (file)
@@ -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;
index 1194b95d24ab71b2b88ce940ad393febec032341..9739513b0e37b45df5256efbc5ed18426edaaef9 100644 (file)
@@ -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;
This page took 0.028265 seconds and 4 git commands to generate.