/* The event holds a reference on the channel */
atomic_long_inc(&channel_file->f_count);
break;
- case LTTNG_KERNEL_SYSCALLS:
+ case LTTNG_KERNEL_SYSCALL:
+ /*
+ * Only all-syscall tracing supported for now.
+ */
+ if (event_param.name[0] != '\0')
+ return -EINVAL;
ret = lttng_syscalls_register(channel, NULL);
if (ret)
goto fd_error;
LTTNG_KERNEL_FUNCTION = 2,
LTTNG_KERNEL_KRETPROBE = 3,
LTTNG_KERNEL_NOOP = 4, /* not hooked */
- LTTNG_KERNEL_SYSCALLS = 5,
+ LTTNG_KERNEL_SYSCALL = 5,
};
/*
char symbol_name[LTTNG_SYM_NAME_LEN];
};
+/*
+ * For syscall tracing, name = '\0' means "enable all".
+ */
struct lttng_kernel_event {
char name[LTTNG_SYM_NAME_LEN]; /* event name */
enum lttng_kernel_instrumentation instrumentation;