* [PATCH] libtracefs: Fix SYM-OFFSET in tracefs_sql()
@ 2021-08-13 1:38 Steven Rostedt
0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2021-08-13 1:38 UTC (permalink / raw)
To: linux-trace-devel
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
The lexical for SYM-OFFSET would break it up into SYM '-' OFFSET and that
would not be parsed properly.
Let the "SYM-OFFSET' be its own lexical operator, to fix it.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
src/sqlhist.l | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/sqlhist.l b/src/sqlhist.l
index db0ae11..4df475a 100644
--- a/src/sqlhist.l
+++ b/src/sqlhist.l
@@ -40,6 +40,12 @@ on { HANDLE_COLUMN; return ON; }
where { HANDLE_COLUMN; return WHERE; }
cast { HANDLE_COLUMN; return CAST; }
+sym-offset {
+ HANDLE_COLUMN;
+ yylval->string = store_str(TRACE_SB, yyg->yytext_r);
+ return FIELD;
+}
+
{qstring} {
HANDLE_COLUMN;
yylval->string = store_str(TRACE_SB, yyg->yytext_r);
--
2.31.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-13 1:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-13 1:38 [PATCH] libtracefs: Fix SYM-OFFSET in tracefs_sql() Steven Rostedt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.