mbox series

[v2,0/6] Remove redundant trace-cmd plugin handling logic

Message ID 20190802110101.14759-1-tz.stoyanov@gmail.com (mailing list archive)
Headers show
Series Remove redundant trace-cmd plugin handling logic | expand

Message

Tzvetomir Stoyanov (VMware) Aug. 2, 2019, 11 a.m. UTC
Currently there are no trace-cmd related plugins, all of them
are designed to be used with libtraceeevnt. As both libtraceevent
and trace-cmd have logic for managing plugins, the one in trace-cmd
is redundant. Those redundant code is removed and replaced with calls
to libtraceeevnt plugin APIs. When trace-cmd has to load any plugins,
it uses libtraceeevnt to do the job.

All existing plugins are moved from plugins/ to plugins/traceevent/
directory, as all of them (except plugin_python) are designed to be
used with the traceevent library. This change paves the way for
implementing trace-cmd specific plugins.

Tzvetomir  Stoyanov (VMware) (1):
  trace-cmd: Remove trace-cmd plugin handling routines

Tzvetomir Stoyanov (1):
  trace-cmd: Change plugin install directories

Tzvetomir Stoyanov (VMware) (4):
  trace-cmd: Move kernel_stack event handler to "function" plugin.
  trace-cmd: Move plugin options from trace-cmd to libtraceevent.
  trace-cmd: Move libtraceevent plugins in its own directory.
  trace-cmd: Load libtraceevent plugins from build folder, if exists.

 .gitignore                                    |   2 +-
 Makefile                                      |  44 +-
 include/trace-cmd/trace-cmd.h                 |  24 -
 include/traceevent/event-parse.h              |   8 +
 kernel-shark/src/libkshark.c                  |   4 +-
 lib/trace-cmd/Makefile                        |   2 -
 lib/trace-cmd/trace-ftrace.c                  |  56 +-
 lib/trace-cmd/trace-input.c                   |   9 +-
 lib/trace-cmd/trace-util.c                    | 752 +-----------------
 lib/traceevent/event-plugin.c                 | 226 +++++-
 plugins/{ => traceevent}/Makefile             |  12 +-
 plugins/{ => traceevent}/plugin_blk.c         |   0
 plugins/{ => traceevent}/plugin_cfg80211.c    |   0
 plugins/{ => traceevent}/plugin_function.c    |  45 +-
 plugins/{ => traceevent}/plugin_futex.c       |   0
 plugins/{ => traceevent}/plugin_hrtimer.c     |   0
 plugins/{ => traceevent}/plugin_jbd2.c        |   0
 plugins/{ => traceevent}/plugin_kmem.c        |   0
 plugins/{ => traceevent}/plugin_kvm.c         |   0
 plugins/{ => traceevent}/plugin_mac80211.c    |   0
 plugins/{ => traceevent}/plugin_python.c      |   9 +-
 .../{ => traceevent}/plugin_sched_switch.c    |   0
 plugins/{ => traceevent}/plugin_scsi.c        |   0
 plugins/{ => traceevent}/plugin_tlb.c         |   0
 plugins/{ => traceevent}/plugin_xen.c         |   0
 tracecmd/trace-check-events.c                 |  10 +-
 tracecmd/trace-list.c                         |  23 +-
 tracecmd/trace-read.c                         |   2 +-
 28 files changed, 338 insertions(+), 890 deletions(-)
 rename plugins/{ => traceevent}/Makefile (86%)
 rename plugins/{ => traceevent}/plugin_blk.c (100%)
 rename plugins/{ => traceevent}/plugin_cfg80211.c (100%)
 rename plugins/{ => traceevent}/plugin_function.c (79%)
 rename plugins/{ => traceevent}/plugin_futex.c (100%)
 rename plugins/{ => traceevent}/plugin_hrtimer.c (100%)
 rename plugins/{ => traceevent}/plugin_jbd2.c (100%)
 rename plugins/{ => traceevent}/plugin_kmem.c (100%)
 rename plugins/{ => traceevent}/plugin_kvm.c (100%)
 rename plugins/{ => traceevent}/plugin_mac80211.c (100%)
 rename plugins/{ => traceevent}/plugin_python.c (91%)
 rename plugins/{ => traceevent}/plugin_sched_switch.c (100%)
 rename plugins/{ => traceevent}/plugin_scsi.c (100%)
 rename plugins/{ => traceevent}/plugin_tlb.c (100%)
 rename plugins/{ => traceevent}/plugin_xen.c (100%)