linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: "linux-trace-devel@vger.kernel.org"  <linux-trace-devel@vger.kernel.org>
Subject: [PATCH] libtracefs: Fix SYM-OFFSET in tracefs_sql()
Date: Thu, 12 Aug 2021 21:38:53 -0400	[thread overview]
Message-ID: <20210812213853.77183026@oasis.local.home> (raw)

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


                 reply	other threads:[~2021-08-13  1:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210812213853.77183026@oasis.local.home \
    --to=rostedt@goodmis.org \
    --cc=linux-trace-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).