Remove LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 18 May 2021 18:57:05 +0000 (14:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 11 Jun 2021 20:51:57 +0000 (16:51 -0400)
It is not supported for 2.13.

Change-Id: If42b18115cc61da9ee17f281390280b21fdc35a6
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/lttng/event-rule/event-rule.h
src/bin/lttng-sessiond/trace-kernel.c
src/bin/lttng/commands/add_trigger.c
src/common/event-rule/event-rule.c

index 0aac04c848970a885c6e311e36d40207e153314d..a6dbb01a03268e4b37c4718b6e0766dea5d78141 100644 (file)
@@ -18,13 +18,12 @@ enum lttng_event_rule_type {
        LTTNG_EVENT_RULE_TYPE_UNKNOWN = -1,
        LTTNG_EVENT_RULE_TYPE_KERNEL_SYSCALL = 0,
        LTTNG_EVENT_RULE_TYPE_KERNEL_KPROBE = 1,
-       LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION = 2,
-       LTTNG_EVENT_RULE_TYPE_KERNEL_TRACEPOINT = 3,
-       LTTNG_EVENT_RULE_TYPE_KERNEL_UPROBE = 4,
-       LTTNG_EVENT_RULE_TYPE_USER_TRACEPOINT = 5,
-       LTTNG_EVENT_RULE_TYPE_JUL_LOGGING = 6,
-       LTTNG_EVENT_RULE_TYPE_LOG4J_LOGGING = 7,
-       LTTNG_EVENT_RULE_TYPE_PYTHON_LOGGING = 8,
+       LTTNG_EVENT_RULE_TYPE_KERNEL_TRACEPOINT = 2,
+       LTTNG_EVENT_RULE_TYPE_KERNEL_UPROBE = 3,
+       LTTNG_EVENT_RULE_TYPE_USER_TRACEPOINT = 4,
+       LTTNG_EVENT_RULE_TYPE_JUL_LOGGING = 5,
+       LTTNG_EVENT_RULE_TYPE_LOG4J_LOGGING = 6,
+       LTTNG_EVENT_RULE_TYPE_PYTHON_LOGGING = 7,
 };
 
 enum lttng_event_rule_status {
index bd06ba4ec5dc4f587486b855b5bcb9bd739d7205..29a60cef5f8dbb715fde1a19be4e294d45a5a29e 100644 (file)
@@ -708,7 +708,6 @@ enum lttng_error_code trace_kernel_init_event_notifier_from_event_rule(
                ret_code = LTTNG_OK;
                break;
        }
-       case LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION:
        default:
                abort();
                break;
index 863e8fe1d629b765d43a0214b9e2760213f5ba97..5b41ad0537d41e6effb00231490a307b1f5f9c72 100644 (file)
@@ -130,8 +130,6 @@ bool assign_event_rule_type(enum lttng_event_rule_type *dest, const char *arg)
                *dest = LTTNG_EVENT_RULE_TYPE_KERNEL_KPROBE;
        } else if (strcmp(arg, "kernel:uprobe") == 0) {
                *dest = LTTNG_EVENT_RULE_TYPE_KERNEL_UPROBE;
-       } else if (strcmp(arg, "function") == 0) {
-               *dest = LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION;
        } else if (has_syscall_prefix(arg)) {
                /*
                 * Matches the following:
@@ -878,7 +876,6 @@ struct parse_event_rule_res parse_event_rule(int *argc, const char ***argv)
        switch (event_rule_type) {
        case LTTNG_EVENT_RULE_TYPE_KERNEL_KPROBE:
        case LTTNG_EVENT_RULE_TYPE_KERNEL_UPROBE:
-       case LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION:
                if (!location) {
                        ERR("Event rule of type %s requires a --location.",
                        lttng_event_rule_type_str(event_rule_type));
index e02a1c320d05fc6f25c5ad3d265b2d74a37bd12f..b4225f8674f37595f58bf72757060de1c01d71ad 100644 (file)
@@ -51,7 +51,6 @@ enum lttng_domain_type lttng_event_rule_get_domain_type(
                break;
        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:
        case LTTNG_EVENT_RULE_TYPE_KERNEL_TRACEPOINT:
                domain_type = LTTNG_DOMAIN_KERNEL;
@@ -181,9 +180,6 @@ ssize_t lttng_event_rule_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_KERNEL_FUNCTION:
-               /* TODO */
-               break;
        case LTTNG_EVENT_RULE_TYPE_KERNEL_UPROBE:
                create_from_payload = lttng_event_rule_kernel_uprobe_create_from_payload;
                break;
@@ -341,8 +337,6 @@ const char *lttng_event_rule_type_str(enum lttng_event_rule_type type)
                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_KERNEL_UPROBE:
                return "kernel uprobe";
        case LTTNG_EVENT_RULE_TYPE_KERNEL_TRACEPOINT:
This page took 0.030582 seconds and 4 git commands to generate.