Rename syscalls -> syscall in LTTng ABI
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Sep 2011 14:11:54 +0000 (10:11 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Sep 2011 14:11:54 +0000 (10:11 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-debugfs-abi.c
ltt-debugfs-abi.h

index 86a1720068c49eb96d306f86711f6bb54bd22b65..d4d1e3ea6457f104e650e77868b811ae07139a7a 100644 (file)
@@ -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;
index ce569444a9c9b2d7b64122d4cc685cf3a0f8debd..c20ae2da1a152f2069e6171c7b120baefdc7d1a5 100644 (file)
@@ -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;
This page took 0.028523 seconds and 4 git commands to generate.