From: "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@gmail.com>
To: rostedt@goodmis.org
Cc: linux-trace-devel@vger.kernel.org
Subject: [PATCH 0/4] trace-cmd: SQL-like syntax for ftrace histograms configuration
Date: Mon, 17 Feb 2020 19:39:55 +0200 [thread overview]
Message-ID: <20200217173959.385278-1-tz.stoyanov@gmail.com> (raw)
Configuration of complex ftrace histograms could be hard, using the existing ftrace interface.
The "--sql" option is implemented to simplify this task. It uses a sql-like syntax to define
the histograms and generates necessary ftrace syntetic events and triggers. Each ftrace event
represents a sql tible, while the fields of this event are rows in the table.
The patch set is based on Steven Rostedt's PoC implementation:
https://github.com/rostedt/sqlhist
Tzvetomir Stoyanov (VMware) (4):
trace-cmd: Add new libtracefs API tracefs_instance_file_append()
trace-cmd: Clear synthetic events on reset subcommand
trace-cmd: Clear error log on reset subcommand
trace-cmd: Add "--sql" option to trace-cmd start and record sub
commands
Documentation/trace-cmd-record.1.txt | 37 +
Makefile | 1 +
include/tracefs/tracefs.h | 2 +
lib/tracefs/tracefs-instance.c | 40 +-
tracecmd/Makefile | 12 +-
tracecmd/include/trace-local.h | 4 +
tracecmd/sqlparser/Makefile | 52 +
tracecmd/sqlparser/sqlhist-api.h | 29 +
tracecmd/sqlparser/sqlhist-parse.c | 1454 ++++++++++++++++++++++++++
tracecmd/sqlparser/sqlhist.h | 34 +
tracecmd/sqlparser/sqlhist.l | 59 ++
tracecmd/sqlparser/sqlhist.y | 175 ++++
tracecmd/trace-record.c | 172 ++-
tracecmd/trace-usage.c | 2 +
14 files changed, 2066 insertions(+), 7 deletions(-)
create mode 100644 tracecmd/sqlparser/Makefile
create mode 100644 tracecmd/sqlparser/sqlhist-api.h
create mode 100644 tracecmd/sqlparser/sqlhist-parse.c
create mode 100644 tracecmd/sqlparser/sqlhist.h
create mode 100644 tracecmd/sqlparser/sqlhist.l
create mode 100644 tracecmd/sqlparser/sqlhist.y
--
2.24.1
next reply other threads:[~2020-02-17 17:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-17 17:39 Tzvetomir Stoyanov (VMware) [this message]
2020-02-17 17:39 ` [PATCH 1/4] trace-cmd: Add new libtracefs API tracefs_instance_file_append() Tzvetomir Stoyanov (VMware)
2020-02-20 23:35 ` Steven Rostedt
2020-02-17 17:39 ` [PATCH 2/4] trace-cmd: Clear synthetic events on reset subcommand Tzvetomir Stoyanov (VMware)
2020-02-17 17:39 ` [PATCH 3/4] trace-cmd: Clear error log " Tzvetomir Stoyanov (VMware)
2020-02-17 17:39 ` [PATCH 4/4] trace-cmd: Add "--sql" option to trace-cmd start and record sub commands Tzvetomir Stoyanov (VMware)
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=20200217173959.385278-1-tz.stoyanov@gmail.com \
--to=tz.stoyanov@gmail.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.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).