For consistency with other tracing modes.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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 {
LTTNG_EVENT_FUNCTION,
LTTNG_EVENT_FUNCTION_ENTRY,
LTTNG_EVENT_NOOP,
- LTTNG_EVENT_SYSCALLS,
+ LTTNG_EVENT_SYSCALL,
};
/*
{ "lttng-probe-irq", 0 },
{ "lttng-probe-kvm", 0 },
{ "lttng-probe-sched", 0 },
- { "lttng-probe-syscalls", 0 },
};
extern const char default_home_dir[],
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++;
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);
OPT_PROBE,
OPT_FUNCTION,
OPT_FUNCTION_ENTRY,
- OPT_SYSCALLS,
+ OPT_SYSCALL,
};
static struct lttng_handle *handle;
{"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}
};
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");
}
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;
case OPT_FUNCTION_ENTRY:
ret = CMD_NOT_IMPLEMENTED;
break;
- case OPT_SYSCALLS:
+ case OPT_SYSCALL:
ret = CMD_NOT_IMPLEMENTED;
break;
default:
OPT_PROBE,
OPT_FUNCTION,
OPT_FUNCTION_ENTRY,
- OPT_SYSCALLS,
+ OPT_SYSCALL,
};
static struct lttng_handle *handle;
{"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}
};
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");
}
}
/* 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;
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;
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);
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: