From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Ingo Molnar <mingo@kernel.org>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH 0/3] tools lib traceevent: Options for plugins
Date: Tue, 22 Apr 2014 15:48:24 -0400 [thread overview]
Message-ID: <20140422194824.319892442@goodmis.org> (raw)
trace-cmd has a way to set options for plugins, via the command
line parameter. For example, you can add or remove the parent
from being printed in function tracing by adding:
-O parent=1
-O parent=0
This is passed later to the plugin in. But the plugin itself requires
registering to the application what options it supplies.
This is a three patch series. The first is to set a flag in pevent
that would prevent plugins from being loaded. This can be supplied
by the command line as well to produce the old "raw" events.
The second patch adds the infrastructure to let plugins have options.
The third patch adds the options "parent" and "indent" to the
function plugin. The indent option lets the user print functions
with or without indenting by their parents.
All that needs to be done now is to add the options to the perf
command line. Namhyung? ;-)
-- Steve
Steven Rostedt (Red Hat) (3):
tools lib traceevent: Add flag to not load event plugins
tools lib traceevent: Add options to plugins
tools lib traceevent: Add options to function plugin
----
tools/lib/traceevent/event-parse.h | 16 ++-
tools/lib/traceevent/event-plugin.c | 204 ++++++++++++++++++++++++++++++++-
tools/lib/traceevent/plugin_function.c | 43 ++++++-
3 files changed, 253 insertions(+), 10 deletions(-)
next reply other threads:[~2014-04-22 19:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-22 19:48 Steven Rostedt [this message]
2014-04-22 19:48 ` [PATCH 1/3] tools lib traceevent: Add flag to not load event plugins Steven Rostedt
2014-04-22 19:48 ` [PATCH 2/3] tools lib traceevent: Add options to plugins Steven Rostedt
2014-04-22 19:48 ` [PATCH 3/3] tools lib traceevent: Add options to function plugin Steven Rostedt
2014-04-23 6:07 ` [PATCH 0/3] tools lib traceevent: Options for plugins Namhyung Kim
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=20140422194824.319892442@goodmis.org \
--to=rostedt@goodmis.org \
--cc=acme@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung@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