mbox series

[v2,0/2] trace-cruncher: Add support for event probes

Message ID 20220127060954.22927-1-tz.stoyanov@gmail.com (mailing list archive)
Headers show
Series trace-cruncher: Add support for event probes | expand

Message

Tzvetomir Stoyanov (VMware) Jan. 27, 2022, 6:09 a.m. UTC
Event probe (eprobe) is a new type of ftrace dynamic events, introduced
in the Linux kernel 5.15 version. It is useful to have support for them
in trace-cruncher, as it allows more flexibility when printing event's
data.

v2 changes:
 - Moved unit test in a separate patch.
 - Added a check in the unit test if the kernel supports eprobes.
 - Renamed the API from PyFtrace_register_eprobe() to PyFtrace_eprobe(), for
   consistency with the other dynamic events APIs.

Tzvetomir Stoyanov (VMware) (2):
  trace-cruncher: Add support for event probes
  trace-cruncher: Unit test for event probes API

 src/ftracepy-utils.c                          | 32 ++++++++++++
 src/ftracepy-utils.h                          |  2 +
 src/ftracepy.c                                |  5 ++
 .../tests/1_unit/test_01_ftracepy_unit.py     | 50 +++++++++++++++++++
 4 files changed, 89 insertions(+)