Message ID | 20220127070111.27529-1-tz.stoyanov@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | trace-cruncher: Add support for event probes | expand |
Hi Ceco, I am applying this patch-set. Thanks a lot! However, there is more work to do. Now, when we have the low-level API for eprobes, it is time to think for adding also some high-level APIs. You can have a look in: tracecruncher/ft_utils.py and get some ideas from the classes 'kprobe' and 'kretval_probe' cheers, Yordan On 27.01.22 г. 9:01 ч., Tzvetomir Stoyanov (VMware) wrote: > 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. > > v3 changes: > - Added eporbe example. > v2 changes: > - Rebase. > - 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) (3): > trace-cruncher: Add support for event probes > trace-cruncher: Unit test for event probes API > trace-cruncher: Example for event probes API > > examples/eprobe.py | 29 +++++++++++ > src/ftracepy-utils.c | 32 ++++++++++++ > src/ftracepy-utils.h | 2 + > src/ftracepy.c | 5 ++ > .../tests/1_unit/test_01_ftracepy_unit.py | 50 +++++++++++++++++++ > 5 files changed, 118 insertions(+) > create mode 100755 examples/eprobe.py >