LTTNG_EVENT_RULE_TYPE_TRACEPOINT = 0,
LTTNG_EVENT_RULE_TYPE_SYSCALL = 1,
LTTNG_EVENT_RULE_TYPE_KERNEL_PROBE = 2,
- LTTNG_EVENT_RULE_TYPE_KRETPROBE = 3,
+ LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION = 3,
LTTNG_EVENT_RULE_TYPE_USERSPACE_PROBE = 4,
};
ret_code = LTTNG_OK;
break;
}
- case LTTNG_EVENT_RULE_TYPE_KRETPROBE:
+ case LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION:
default:
abort();
break;
/* Event rule types */
case OPT_FUNCTION:
if (!assign_event_rule_type(&event_rule_type,
- LTTNG_EVENT_RULE_TYPE_KRETPROBE)) {
+ LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION)) {
goto error;
}
/* Validate event rule type against domain. */
switch (event_rule_type) {
case LTTNG_EVENT_RULE_TYPE_KERNEL_PROBE:
- case LTTNG_EVENT_RULE_TYPE_KRETPROBE:
+ case LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION:
case LTTNG_EVENT_RULE_TYPE_USERSPACE_PROBE:
case LTTNG_EVENT_RULE_TYPE_SYSCALL:
if (domain_type != LTTNG_DOMAIN_KERNEL) {
}
case LTTNG_EVENT_RULE_TYPE_SYSCALL:
case LTTNG_EVENT_RULE_TYPE_KERNEL_PROBE:
- case LTTNG_EVENT_RULE_TYPE_KRETPROBE:
+ case LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION:
case LTTNG_EVENT_RULE_TYPE_USERSPACE_PROBE:
domain_type = LTTNG_DOMAIN_KERNEL;
break;
case LTTNG_EVENT_RULE_TYPE_KERNEL_PROBE:
create_from_payload = lttng_event_rule_kernel_probe_create_from_payload;
break;
- case LTTNG_EVENT_RULE_TYPE_KRETPROBE:
+ case LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION:
/* TODO */
break;
case LTTNG_EVENT_RULE_TYPE_USERSPACE_PROBE:
return "syscall";
case LTTNG_EVENT_RULE_TYPE_KERNEL_PROBE:
return "probe";
- case LTTNG_EVENT_RULE_TYPE_KRETPROBE:
+ case LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION:
return "function";
case LTTNG_EVENT_RULE_TYPE_USERSPACE_PROBE:
return "userspace-probe";