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(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/