X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fevent-rule%2Fevent-rule.c;h=33e91cdfb02649add73e6fc64632bc660ffede09;hb=85522de5747fee084e2e391678a79918355345da;hp=dfb8febfe49dd78c3c0d40e29d5d598d73e3980e;hpb=e957bf98e634c79b13281d0a2fe144be0245d310;p=lttng-tools.git diff --git a/src/common/event-rule/event-rule.c b/src/common/event-rule/event-rule.c index dfb8febfe..33e91cdfb 100644 --- a/src/common/event-rule/event-rule.c +++ b/src/common/event-rule/event-rule.c @@ -14,10 +14,10 @@ #include #include #include -#include -#include +#include +#include #include -#include +#include #include enum lttng_event_rule_type lttng_event_rule_get_type( @@ -40,10 +40,10 @@ enum lttng_domain_type lttng_event_rule_get_domain_type( assert(status == LTTNG_EVENT_RULE_STATUS_OK); break; } - case LTTNG_EVENT_RULE_TYPE_SYSCALL: - case LTTNG_EVENT_RULE_TYPE_KERNEL_PROBE: - case LTTNG_EVENT_RULE_TYPE_KRETPROBE: - case LTTNG_EVENT_RULE_TYPE_USERSPACE_PROBE: + case LTTNG_EVENT_RULE_TYPE_KERNEL_SYSCALL: + case LTTNG_EVENT_RULE_TYPE_KERNEL_KPROBE: + case LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION: + case LTTNG_EVENT_RULE_TYPE_KERNEL_UPROBE: domain_type = LTTNG_DOMAIN_KERNEL; break; case LTTNG_EVENT_RULE_TYPE_UNKNOWN: @@ -172,18 +172,18 @@ ssize_t lttng_event_rule_create_from_payload( create_from_payload = lttng_event_rule_tracepoint_create_from_payload; break; - case LTTNG_EVENT_RULE_TYPE_KERNEL_PROBE: - create_from_payload = lttng_event_rule_kernel_probe_create_from_payload; + case LTTNG_EVENT_RULE_TYPE_KERNEL_KPROBE: + create_from_payload = lttng_event_rule_kernel_kprobe_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: - create_from_payload = lttng_event_rule_userspace_probe_create_from_payload; + case LTTNG_EVENT_RULE_TYPE_KERNEL_UPROBE: + create_from_payload = lttng_event_rule_kernel_uprobe_create_from_payload; break; - case LTTNG_EVENT_RULE_TYPE_SYSCALL: + case LTTNG_EVENT_RULE_TYPE_KERNEL_SYSCALL: create_from_payload = - lttng_event_rule_syscall_create_from_payload; + lttng_event_rule_kernel_syscall_create_from_payload; break; default: ERR("Attempted to create event rule of unknown type (%i)", @@ -313,14 +313,14 @@ const char *lttng_event_rule_type_str(enum lttng_event_rule_type type) return "unknown"; case LTTNG_EVENT_RULE_TYPE_TRACEPOINT: return "tracepoint"; - case LTTNG_EVENT_RULE_TYPE_SYSCALL: - return "syscall"; - case LTTNG_EVENT_RULE_TYPE_KERNEL_PROBE: - return "probe"; - case LTTNG_EVENT_RULE_TYPE_KRETPROBE: + case LTTNG_EVENT_RULE_TYPE_KERNEL_SYSCALL: + return "kernel syscall"; + case LTTNG_EVENT_RULE_TYPE_KERNEL_KPROBE: + return "kernel kprobe"; + case LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION: return "function"; - case LTTNG_EVENT_RULE_TYPE_USERSPACE_PROBE: - return "userspace-probe"; + case LTTNG_EVENT_RULE_TYPE_KERNEL_UPROBE: + return "kernel uprobe"; default: abort(); }