Rename syscalls -> syscall in UI/API/ABI
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Sep 2011 14:12:08 +0000 (10:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Sep 2011 14:12:08 +0000 (10:12 -0400)
For consistency with other tracing modes.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng-kernel.h
include/lttng/lttng.h
ltt-sessiond/ltt-sessiond.h
ltt-sessiond/main.c
ltt-sessiond/trace-kernel.c
lttng/commands/calibrate.c
lttng/commands/enable_events.c
lttng/commands/list.c

index 20b788fc17dc6db1ffe87036861c675ad40df4ee..475cde8cfd82dd267cc9e0fb98636d85a964af57 100644 (file)
@@ -39,7 +39,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,
 };
 
 enum lttng_kernel_context_type {
index efb67fa697c5578af761ff2ee9e16b4274fc0c34..bde46fa60337fb8ff07b2410e92478c5b167d5db 100644 (file)
@@ -66,7 +66,7 @@ enum lttng_event_type {
        LTTNG_EVENT_FUNCTION,
        LTTNG_EVENT_FUNCTION_ENTRY,
        LTTNG_EVENT_NOOP,
-       LTTNG_EVENT_SYSCALLS,
+       LTTNG_EVENT_SYSCALL,
 };
 
 /*
index 63ef6d57dd3a3c038ee09758ba864e6fb28cb74b..617ca54c40ae61a72bf9dfe1a7c4e84582a70817 100644 (file)
@@ -56,7 +56,6 @@ const struct module_param kernel_modules_list[] = {
        { "lttng-probe-irq", 0 },
        { "lttng-probe-kvm", 0 },
        { "lttng-probe-sched", 0 },
-       { "lttng-probe-syscalls", 0 },
 };
 
 extern const char default_home_dir[],
index 5a0ad0b8aaaca228b3cb27efaedbd881fe8a1210..c85ff03511e55c9d78b676c457dfd5b58077b1f5 100644 (file)
@@ -1716,8 +1716,8 @@ static void list_lttng_events(struct ltt_kernel_channel *kchan,
                        case LTTNG_KERNEL_NOOP:
                                events[i].type = LTTNG_EVENT_NOOP;
                                break;
-                       case LTTNG_KERNEL_SYSCALLS:
-                               events[i].type = LTTNG_EVENT_SYSCALLS;
+                       case LTTNG_KERNEL_SYSCALL:
+                               events[i].type = LTTNG_EVENT_SYSCALL;
                                break;
                }
                i++;
index b84021262af7bbf88eec46f5a0df96b788274fb6..37d9d143a17c6439345c28ac97e976a8a2e2c575 100644 (file)
@@ -204,8 +204,8 @@ struct ltt_kernel_event *trace_kernel_create_event(struct lttng_event *ev)
        case LTTNG_EVENT_TRACEPOINT:
                attr->instrumentation = LTTNG_KERNEL_TRACEPOINT;
                break;
-       case LTTNG_EVENT_SYSCALLS:
-               attr->instrumentation = LTTNG_KERNEL_SYSCALLS;
+       case LTTNG_EVENT_SYSCALL:
+               attr->instrumentation = LTTNG_KERNEL_SYSCALL;
                break;
        default:
                ERR("Unknown kernel instrumentation type (%d)", ev->type);
index bcddc5e8bfefb9f674d6009c60809851260e980c..e17a2fd73b12b82f11363f1150edc89f1a7a27fe 100644 (file)
@@ -47,7 +47,7 @@ enum {
        OPT_PROBE,
        OPT_FUNCTION,
        OPT_FUNCTION_ENTRY,
-       OPT_SYSCALLS,
+       OPT_SYSCALL,
 };
 
 static struct lttng_handle *handle;
@@ -64,7 +64,7 @@ static struct poptOption long_options[] = {
        {"probe",          0,   POPT_ARG_NONE, 0, OPT_PROBE, 0, 0},
        {"function",       0,   POPT_ARG_NONE, 0, OPT_FUNCTION, 0, 0},
        {"function:entry", 0,   POPT_ARG_NONE, 0, OPT_FUNCTION_ENTRY, 0, 0},
-       {"syscalls",       0,   POPT_ARG_NONE, 0, OPT_SYSCALLS, 0, 0},
+       {"syscall",        0,   POPT_ARG_NONE, 0, OPT_SYSCALL, 0, 0},
        {0, 0, 0, 0, 0, 0, 0}
 };
 
@@ -89,7 +89,7 @@ static void usage(FILE *ofp)
        fprintf(ofp, "                           Dynamic function entry/return probe.\n");
        fprintf(ofp, "    --function:entry symbol\n");
        fprintf(ofp, "                           Function tracer event\n");
-       fprintf(ofp, "    --syscalls             System calls\n");
+       fprintf(ofp, "    --syscall              System call eventl\n");
        fprintf(ofp, "    --marker               User-space marker (deprecated)\n");
        fprintf(ofp, "\n");
 }
@@ -133,8 +133,8 @@ static int calibrate_lttng(void)
                case LTTNG_EVENT_FUNCTION_ENTRY:
                        DBG("Calibrating kernel function entry");
                        break;
-               case LTTNG_EVENT_SYSCALLS:
-                       DBG("Calibrating kernel syscalls");
+               case LTTNG_EVENT_SYSCALL:
+                       DBG("Calibrating kernel syscall");
                        break;
                default:
                        ret = CMD_NOT_IMPLEMENTED;
@@ -200,7 +200,7 @@ int cmd_calibrate(int argc, const char **argv)
                case OPT_FUNCTION_ENTRY:
                        ret = CMD_NOT_IMPLEMENTED;
                        break;
-               case OPT_SYSCALLS:
+               case OPT_SYSCALL:
                        ret = CMD_NOT_IMPLEMENTED;
                        break;
                default:
index 0d47b6291cec082cd469011157294dcda8ab107d..85fd86a08c4b89e27692eacaa736b99c947d84a0 100644 (file)
@@ -53,7 +53,7 @@ enum {
        OPT_PROBE,
        OPT_FUNCTION,
        OPT_FUNCTION_ENTRY,
-       OPT_SYSCALLS,
+       OPT_SYSCALL,
 };
 
 static struct lttng_handle *handle;
@@ -73,7 +73,7 @@ static struct poptOption long_options[] = {
        {"probe",         0,   POPT_ARG_STRING, 0, OPT_PROBE, 0, 0},
        {"function",       0,   POPT_ARG_STRING, 0, OPT_FUNCTION, 0, 0},
        {"function:entry", 0,   POPT_ARG_STRING, 0, OPT_FUNCTION_ENTRY, 0, 0},
-       {"syscalls",     0,     POPT_ARG_NONE, 0, OPT_SYSCALLS, 0, 0},
+       {"syscall",        0,     POPT_ARG_NONE, 0, OPT_SYSCALL, 0, 0},
        {0, 0, 0, 0, 0, 0, 0}
 };
 
@@ -105,7 +105,7 @@ static void usage(FILE *ofp)
        fprintf(ofp, "                           decimal (NNN...) or hexadecimal (0xNNN...)\n");
        fprintf(ofp, "    --function:entry symbol\n");
        fprintf(ofp, "                           Function tracer event\n");
-       fprintf(ofp, "    --syscalls             System calls\n");
+       fprintf(ofp, "    --syscall              System call event\n");
        fprintf(ofp, "    --marker               User-space marker (deprecated)\n");
        fprintf(ofp, "\n");
 }
@@ -224,7 +224,7 @@ static int enable_events(char *session_name)
                        }
                        /* TODO: User-space tracer */
                        break;
-               case LTTNG_EVENT_SYSCALLS:
+               case LTTNG_EVENT_SYSCALL:
                        if (opt_kernel) {
                                ev.name[0] = '\0';
                                ev.type = opt_event_type;
@@ -279,7 +279,7 @@ static int enable_events(char *session_name)
                                        LTTNG_SYMBOL_NAME_LEN);
                                ev.attr.ftrace.symbol_name[LTTNG_SYMBOL_NAME_LEN - 1] = '\0';
                                break;
-                       case LTTNG_EVENT_SYSCALLS:
+                       case LTTNG_EVENT_SYSCALL:
                                MSG("per-syscall selection not supported yet. Use \"-a\" for all syscalls.");
                                ret = CMD_NOT_IMPLEMENTED;
                                goto error;
@@ -364,8 +364,8 @@ int cmd_enable_events(int argc, const char **argv)
                        opt_event_type = LTTNG_EVENT_FUNCTION_ENTRY;
                        opt_function_entry_symbol = poptGetOptArg(pc);
                        break;
-               case OPT_SYSCALLS:
-                       opt_event_type = LTTNG_EVENT_SYSCALLS;
+               case OPT_SYSCALL:
+                       opt_event_type = LTTNG_EVENT_SYSCALL;
                        break;
                default:
                        usage(stderr);
index f4636985f0911193c4c9fee712992307684159fa..c73ea74dc457f504775abede040a1a3cceb7aec4 100644 (file)
@@ -177,8 +177,8 @@ static int list_events(const char *channel_name)
                                                events[i].name, events[i].enabled);
                                MSG("%ssymbol: \"%s\"", indent8, events[i].attr.ftrace.symbol_name);
                                break;
-                       case LTTNG_EVENT_SYSCALLS:
-                               MSG("%s (type: syscalls) [enabled: %d]", indent6,
+                       case LTTNG_EVENT_SYSCALL:
+                               MSG("%s (type: syscall) [enabled: %d]", indent6,
                                                events[i].enabled);
                                break;
                        case LTTNG_EVENT_NOOP:
This page took 0.034165 seconds and 4 git commands to generate.