libtracefs: Rename GR and NQ to GT and NE respectively
PATCH 1/1 libtracefs: Rename GR and NQ to GT and NE respectively
From: "Steven Rostedt (VMware)" <[email protected]>
When writing the sqlhist interface, I found that calling ">" GT and "!=" NE were more sensible than calling them GR and NQ, as we already have LT as "less than" why not use GT as "greater than". As well as EQ for "equal", it seems more appropriate to have NE be "not equal".
Signed-off-by Steven Rostedt (VMware) <[email protected]>
--- include/tracefs.h | 4 ++-- src/tracefs-hist.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
include/tracefs.h +2 -2
@@ -315,8 +315,8 @@ enum tracefs_synth_calc {enum tracefs_synth_compare {TRACEFS_COMPARE_EQ , -TRACEFS_COMPARE_NQ , -TRACEFS_COMPARE_GR , +TRACEFS_COMPARE_NE , +TRACEFS_COMPARE_GT ,TRACEFS_COMPARE_GE ,TRACEFS_COMPARE_LT ,TRACEFS_COMPARE_LE ,
src/tracefs-hist.c +2 -2
@@ -1201,7 +1201,7 @@ static int add_synth_filter(char **filter, const char *field,switch (compare) {case TRACEFS_COMPARE_EQ :trace_seq_puts (&seq," == " );break ; -case TRACEFS_COMPARE_NQ :trace_seq_puts (&seq," != " );break ; +case TRACEFS_COMPARE_NE :trace_seq_puts (&seq," != " );break ;case TRACEFS_COMPARE_RE :if (!is_string) goto inval;
@@ -1213,7 +1213,7 @@ static int add_synth_filter(char **filter, const char *field, }switch (compare) { -case TRACEFS_COMPARE_GR :trace_seq_puts (&seq," > " );break ; +case TRACEFS_COMPARE_GT :trace_seq_puts (&seq," > " );break ;case TRACEFS_COMPARE_GE :trace_seq_puts (&seq," >= " );break ;case TRACEFS_COMPARE_LT :trace_seq_puts (&seq," < " );break ;case TRACEFS_COMPARE_LE :trace_seq_puts (&seq," <= " );break ;
Signature · 1 line
2.31.1