public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] tools lib traceevent: Options for plugins
@ 2014-04-22 19:48 Steven Rostedt
  2014-04-22 19:48 ` [PATCH 1/3] tools lib traceevent: Add flag to not load event plugins Steven Rostedt
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Steven Rostedt @ 2014-04-22 19:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ingo Molnar, Arnaldo Carvalho de Melo, Jiri Olsa, Namhyung Kim,
	Andrew Morton

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(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-23  6:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22 19:48 [PATCH 0/3] tools lib traceevent: Options for plugins Steven Rostedt
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox