int lttng_syscalls_register_event(struct lttng_event_recorder_enabler *event_enabler);
int lttng_syscalls_unregister_channel(struct lttng_kernel_channel_buffer *chan);
int lttng_syscalls_destroy_event(struct lttng_kernel_channel_buffer *chan);
-int lttng_syscall_filter_enable_event(
- struct lttng_kernel_channel_buffer *chan,
- struct lttng_kernel_event_recorder *event);
-int lttng_syscall_filter_disable_event(
- struct lttng_kernel_channel_buffer *chan,
- struct lttng_kernel_event_recorder *event);
+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);
long lttng_channel_syscall_mask(struct lttng_kernel_channel_buffer *channel,
struct lttng_kernel_abi_syscall_mask __user *usyscall_mask);
return 0;
}
-static inline int lttng_syscall_filter_enable_event(struct lttng_kernel_channel_buffer *chan,
- struct lttng_kernel_event_recorder *event);
+static inline int lttng_syscall_filter_enable_event_recorder(struct lttng_kernel_event_recorder *event_recorder)
{
return -ENOSYS;
}
-static inline int lttng_syscall_filter_disable_event(struct lttng_kernel_channel_buffer *chan,
- struct lttng_kernel_event_recorder *event);
+static inline int lttng_syscall_filter_disable_event_recorder(struct lttng_kernel_event_recorder *event_recorder)
{
return -ENOSYS;
}
return 0;
}
-static inline int lttng_syscall_filter_enable_event_notifier(
- struct lttng_event_notifier_group *group,
- const char *name)
+static inline int lttng_syscall_filter_enable_event_notifier(struct lttng_kernel_event_notifier *event_notifier)
{
return -ENOSYS;
}
-static inline int lttng_syscall_filter_disable_event_notifier(
- struct lttng_event_notifier_group *group,
- const char *name)
+static inline int lttng_syscall_filter_disable_event_notifier(struct lttng_kernel_event_notifier *event_notifier)
{
return -ENOSYS;
}
break;
case LTTNG_KERNEL_ABI_SYSCALL:
- ret = lttng_syscall_filter_enable_event(event_recorder->chan, event_recorder);
+ ret = lttng_syscall_filter_enable_event_recorder(event_recorder);
break;
case LTTNG_KERNEL_ABI_KPROBE:
break;
case LTTNG_KERNEL_ABI_SYSCALL:
- ret = lttng_syscall_filter_disable_event(event_recorder->chan, event_recorder);
+ ret = lttng_syscall_filter_disable_event_recorder(event_recorder);
break;
case LTTNG_KERNEL_ABI_NOOP:
return 0;
}
-int lttng_syscall_filter_enable_event_notifier(
- struct lttng_kernel_event_notifier *event_notifier)
+int lttng_syscall_filter_enable_event_notifier(struct lttng_kernel_event_notifier *event_notifier)
{
struct lttng_event_notifier_group *group = event_notifier->priv->group;
struct lttng_kernel_syscall_table *syscall_table = &group->syscall_table;
return ret ;
}
-int lttng_syscall_filter_enable_event(
- struct lttng_kernel_channel_buffer *channel,
- struct lttng_kernel_event_recorder *event_recorder)
+int lttng_syscall_filter_enable_event_recorder(struct lttng_kernel_event_recorder *event_recorder)
{
+ struct lttng_kernel_channel_buffer *channel = event_recorder->chan;
struct lttng_kernel_syscall_table *syscall_table = &channel->priv->parent.syscall_table;
WARN_ON_ONCE(event_recorder->priv->parent.instrumentation != LTTNG_KERNEL_ABI_SYSCALL);
}
static
-int lttng_syscall_filter_disable(
- struct lttng_syscall_filter *filter,
+int lttng_syscall_filter_disable(struct lttng_syscall_filter *filter,
const char *desc_name, enum lttng_syscall_abi abi,
enum lttng_syscall_entryexit entryexit)
{
return 0;
}
-int lttng_syscall_filter_disable_event_notifier(
- struct lttng_kernel_event_notifier *event_notifier)
+int lttng_syscall_filter_disable_event_notifier(struct lttng_kernel_event_notifier *event_notifier)
{
struct lttng_event_notifier_group *group = event_notifier->priv->group;
struct lttng_kernel_syscall_table *syscall_table = &group->syscall_table;
return 0;
}
-int lttng_syscall_filter_disable_event(
- struct lttng_kernel_channel_buffer *channel,
- struct lttng_kernel_event_recorder *event_recorder)
+int lttng_syscall_filter_disable_event_recorder(struct lttng_kernel_event_recorder *event_recorder)
{
+ struct lttng_kernel_channel_buffer *channel = event_recorder->chan;
struct lttng_kernel_syscall_table *syscall_table = &channel->priv->parent.syscall_table;
return lttng_syscall_filter_disable(syscall_table->sc_filter,