Skip to content

trace-cmd,libtraceevent: Rework of plugin options APIs

Tzvetomir Stoyanov (VMware) linux-trace-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7trace-cmd,libtraceevent: Plugin options reworkinclude/traceevent/event-parse.h lib/trace-cmd/trace-ftrace.c lib/trace-cmd/trace-plugin.c +2 more+17 -520 replies
2/7trace-cmd,libtraceevent: Remove TEP_PLUGIN_OPTIONSinclude/traceevent/event-parse.h lib/traceevent/event-plugin.c+0 -310 replies
3/7trace-cmd,libtraceevent: Check for plugin options duplicationlib/traceevent/event-plugin.c+30 -200 replies
4/7trace-cmd,libtraceevent: Check for plugin duplicationlib/traceevent/event-plugin.c+45 -50 replies
5/7trace-cmd,libtraceevent: Remove API for plugin options printinclude/traceevent/event-parse.h lib/traceevent/event-plugin.c tracecmd/trace-list.c+58 -920 replies
6/7trace-cmd,libtraceevent: Remove API for plugin printinclude/traceevent/event-parse.h lib/traceevent/event-plugin.c tracecmd/trace-list.c+24 -190 replies
7/7trace-cmd, kernelshark, libtraceevent: Changed tep_plugin_add_option() APIinclude/traceevent/event-parse.h kernel-shark/src/libkshark.c lib/traceevent/event-plugin.c +1 more+27 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] trace-cmd,libtraceevent: Rework of plugin options APIs

In order to simplify libtracevents APIs, logic related to plugins and plugin options is reworked:
- Complex and not used APIs are removed.
- Logic for printing various information for plugins and plugin options is moved from the library to the application.
- Additional checks are added when loading new plugins and options, to avoid duplications.

Tzvetomir Stoyanov (VMware) (7):
trace-cmd,libtraceevent: Plugin options rework trace-cmd,libtraceevent: Remove TEP_PLUGIN_OPTIONS trace-cmd,libtraceevent: Check for plugin options duplication trace-cmd,libtraceevent: Check for plugin duplication trace-cmd,libtraceevent: Remove API for plugin options print trace-cmd,libtraceevent: Remove API for plugin print trace-cmd, kernelshark, libtraceevent: Changed tep_plugin_add_option()
API

 include/traceevent/event-parse.h         |  50 +---
 kernel-shark/src/libkshark.c             |   4 +-
 lib/trace-cmd/trace-ftrace.c             |   4 +-
 lib/trace-cmd/trace-plugin.c             |   5 -
 lib/traceevent/event-plugin.c            | 279 ++++++++++-------------
 lib/traceevent/plugins/plugin_function.c |   6 +-
 tracecmd/trace-list.c                    |  55 ++++-
 tracecmd/trace-read.c                    |   2 +-
 8 files changed, 188 insertions(+), 217 deletions(-)
Signature · 1 line
2.24.1