From 43880ee8e9d67a4058a230de31d0e2b3d605e05d Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 19 Sep 2011 10:11:54 -0400 Subject: [PATCH] Rename syscalls -> syscall in LTTng ABI Signed-off-by: Mathieu Desnoyers --- ltt-debugfs-abi.c | 7 ++++++- ltt-debugfs-abi.h | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ltt-debugfs-abi.c b/ltt-debugfs-abi.c index 86a17200..d4d1e3ea 100644 --- a/ltt-debugfs-abi.c +++ b/ltt-debugfs-abi.c @@ -544,7 +544,12 @@ int lttng_abi_create_event(struct file *channel_file, /* 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; diff --git a/ltt-debugfs-abi.h b/ltt-debugfs-abi.h index ce569444..c20ae2da 100644 --- a/ltt-debugfs-abi.h +++ b/ltt-debugfs-abi.h @@ -21,7 +21,7 @@ enum lttng_kernel_instrumentation { LTTNG_KERNEL_FUNCTION = 2, LTTNG_KERNEL_KRETPROBE = 3, LTTNG_KERNEL_NOOP = 4, /* not hooked */ - LTTNG_KERNEL_SYSCALLS = 5, + LTTNG_KERNEL_SYSCALL = 5, }; /* @@ -66,6 +66,9 @@ struct lttng_kernel_function_tracer { 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; -- 2.34.1