Skip to content

Backport of traceevent APIs cleanup changes from kernel tree to trace-cmd

Tzvetomir Stoyanov linux-trace-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v210 patches 1 replySuperseded
  3. v110 patches 1 replySuperseded

Changes in v3 from the cover letter

Fixed broken Kernelshark compilation
Excluded already merged patches from the series:
tools lib traceevent: Removed unneeded !! and return parenthesis tools lib traceevent: Change description of few APIs
tools lib traceevent: Implement new traceevent APIs for accessing
struct tep_handler fields
tools lib traceevent: Remove tep filter trivial APIs
tools lib traceevent: Remove call to exit() from tep_filter_add_filter_str()

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tools tools, tools lib traceevent: Make traceevent APIs more consistentinclude/traceevent/event-parse.h kernel-shark/src/libkshark.c kernel-shark/src/plugins/sched_events.c +8 more+52 -520 replies
2/5tools lib traceevent: Rename input arguments of libtraceevent APIs from pevent to tepinclude/traceevent/event-parse.h lib/traceevent/event-parse-api.c lib/traceevent/event-parse-local.h +13 more+442 -4410 replies
3/5perf tools, tools lib traceevent: Rename "pevent" member of struct tep_event to "tep"include/traceevent/event-parse.h lib/trace-cmd/trace-ftrace.c lib/traceevent/event-parse.c +8 more+57 -560 replies
4/5perf tools, tools lib traceevent: Rename "pevent" member of struct tep_event_filter to "tep"include/traceevent/event-parse.h lib/traceevent/parse-filter.c+8 -80 replies
5/5tools lib traceevent: Rename input arguments and local variables of libtraceevent from pevent to teplib/traceevent/event-parse.c lib/traceevent/event-plugin.c lib/traceevent/parse-filter.c +1 more+168 -1680 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/5] Backport of traceevent APIs cleanup changes from kernel tree to trace-cmd

[
v3 changes:
Fixed broken Kernelshark compilation
Excluded already merged patches from the series:
tools lib traceevent: Removed unneeded !! and return parenthesis tools lib traceevent: Change description of few APIs
tools lib traceevent: Implement new traceevent APIs for accessing
struct tep_handler fields
tools lib traceevent: Remove tep filter trivial APIs
tools lib traceevent: Remove call to exit() from tep_filter_add_filter_str()

v2 changes:
Fixed broken links in the patches descriptions.
]

A set of patches which aligns kernel libtraceevent implementation to trace-cmd one:
- Got rid of "pevent" in library APIs and internal code, replaced it with "tep"
- Made the API more consistent: aligned all "tep_is ... " APIs to return bool

Tzvetomir Stoyanov (5):
tools tools, tools lib traceevent: Make traceevent APIs more
consistent
tools lib traceevent: Rename input arguments of libtraceevent APIs
from pevent to tep
perf tools, tools lib traceevent: Rename "pevent" member of struct
tep_event to "tep"
perf tools, tools lib traceevent: Rename "pevent" member of struct
tep_event_filter to "tep"
tools lib traceevent: Rename input arguments and local variables of
libtraceevent from pevent to tep

 include/traceevent/event-parse.h        | 132 ++--
 kernel-shark/src/libkshark.c            |   2 +-
 kernel-shark/src/plugins/sched_events.c |   2 +-
 lib/trace-cmd/trace-ftrace.c            |  16 +-
 lib/trace-cmd/trace-input.c             |  10 +-
 lib/traceevent/event-parse-api.c        | 148 ++---
 lib/traceevent/event-parse-local.h      |   6 +-
 lib/traceevent/event-parse.c            | 790 ++++++++++++------------
 lib/traceevent/event-plugin.c           |  32 +-
 lib/traceevent/parse-filter.c           |  44 +-
 plugins/plugin_blk.c                    |   8 +-
 plugins/plugin_cfg80211.c               |   8 +-
 plugins/plugin_function.c               |  22 +-
 plugins/plugin_hrtimer.c                |  13 +-
 plugins/plugin_jbd2.c                   |  12 +-
 plugins/plugin_kmem.c                   |  34 +-
 plugins/plugin_kvm.c                    |  49 +-
 plugins/plugin_mac80211.c               |   6 +-
 plugins/plugin_sched_switch.c           |  18 +-
 plugins/plugin_scsi.c                   |   8 +-
 plugins/plugin_xen.c                    |   8 +-
 python/ctracecmd.i                      |   4 +-
 python/tracecmd.py                      |   2 +-
 tracecmd/trace-output.c                 |   2 +-
 tracecmd/trace-profile.c                |   4 +-
 tracecmd/trace-read.c                   |   4 +-
 tracecmd/trace-split.c                  |   2 +-
 27 files changed, 694 insertions(+), 692 deletions(-)
Signature · 1 line
2.20.1