diff mbox series

[v2,2/2] libtraceeval samples: Remove adding TRACEEVAL_TYPE_NONE to keys and vals

Message ID 20231003140802.1139616-3-rostedt@goodmis.org (mailing list archive)
State Accepted
Headers show
Series libtraceeval: Remove the need of TRACEEVAL_TYPE_NONE | expand

Commit Message

Steven Rostedt Oct. 3, 2023, 2:08 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

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) <rostedt@goodmis.org>
---
 samples/task-eval.c | 18 ------------------
 1 file changed, 18 deletions(-)

Comments

Ross Zwisler Oct. 3, 2023, 3:39 p.m. UTC | #1
On Tue, Oct 03, 2023 at 10:08:02AM -0400, Steven Rostedt wrote:
> From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
> 
> 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) <rostedt@goodmis.org>

Reviewed-by: Ross Zwisler <zwisler@google.com>
diff mbox series

Patch

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 {