From patchwork Tue Oct 3 14:08:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 13407697 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B33E41548D for ; Tue, 3 Oct 2023 14:06:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CF42C433C7; Tue, 3 Oct 2023 14:06:58 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.96) (envelope-from ) id 1qng4B-004mVK-2j; Tue, 03 Oct 2023 10:08:03 -0400 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: Ross Zwisler , Stevie Alvarez , "Steven Rostedt (Google)" Subject: [PATCH v2 2/2] libtraceeval samples: Remove adding TRACEEVAL_TYPE_NONE to keys and vals Date: Tue, 3 Oct 2023 10:08:02 -0400 Message-Id: <20231003140802.1139616-3-rostedt@goodmis.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231003140802.1139616-1-rostedt@goodmis.org> References: <20231003140802.1139616-1-rostedt@goodmis.org> Precedence: bulk X-Mailing-List: linux-trace-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "Steven Rostedt (Google)" Remove the TRACEEVAL_TYPE_NONE in the initialization of keys and vals in the sample code as it is no longer needed. Signed-off-by: Steven Rostedt (Google) Reviewed-by: Ross Zwisler --- samples/task-eval.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/samples/task-eval.c b/samples/task-eval.c index 6b01b8d076f2..361c4a835f06 100644 --- a/samples/task-eval.c +++ b/samples/task-eval.c @@ -89,9 +89,6 @@ static struct traceeval_type cpu_keys[] = { .type = TRACEEVAL_TYPE_NUMBER, .name = "Schedule state", }, - { - .type = TRACEEVAL_TYPE_NONE - } }; static struct traceeval_type process_keys[] = { @@ -103,9 +100,6 @@ static struct traceeval_type process_keys[] = { .type = TRACEEVAL_TYPE_NUMBER, .name = "Schedule state" }, - { - .type = TRACEEVAL_TYPE_NONE, - } }; static struct traceeval_type process_data_vals[] = { @@ -113,9 +107,6 @@ static struct traceeval_type process_data_vals[] = { .type = TRACEEVAL_TYPE_POINTER, .name = "data", }, - { - .type = TRACEEVAL_TYPE_NONE - } }; static struct traceeval_type thread_keys[] = { @@ -127,9 +118,6 @@ static struct traceeval_type thread_keys[] = { .type = TRACEEVAL_TYPE_NUMBER, .name = "Schedule state", }, - { - .type = TRACEEVAL_TYPE_NONE, - } }; static struct traceeval_type timestamp_vals[] = { @@ -138,9 +126,6 @@ static struct traceeval_type timestamp_vals[] = { .name = "Timestamp", .flags = TRACEEVAL_FL_TIMESTAMP, }, - { - .type = TRACEEVAL_TYPE_NONE - } }; static struct traceeval_type delta_vals[] = { @@ -149,9 +134,6 @@ static struct traceeval_type delta_vals[] = { .name = "delta", .flags = TRACEEVAL_FL_STAT, }, - { - .type = TRACEEVAL_TYPE_NONE, - }, }; enum sched_state {