mbox series

[v2,0/4] New tracefs APIs

Message ID 20211202105926.32581-1-tz.stoyanov@gmail.com (mailing list archive)
Headers show
Series New tracefs APIs | expand

Message

Tzvetomir Stoyanov (VMware) Dec. 2, 2021, 10:59 a.m. UTC
Two new library APIs are proposed, to provide a missing functionality:
 tracefs_dynevent_get_event()
 tracefs_event_apply_filter()

v2 changes:
 - Typo and coding style fixes.
 - Improved logic for dynamic events loading into tep handle - avoid
   duplications.
 - Added a check to tracefs_dynevent_get_event() to not return tep event for
   removed dynamic events.

Tzvetomir Stoyanov (VMware) (4):
  libtracefs: Reuse logic for loading events inside the library
  libtracefs: New API for getting dynamic event
  libtracefs: Unit test for tracefs_dynevent_get_event()
  libtracefs: New API for applying filter on event

 Documentation/libtracefs-dynevents.txt | 13 +++++-
 Documentation/libtracefs-filter.txt    | 12 +++++-
 include/tracefs-local.h                |  5 +++
 include/tracefs.h                      |  7 +++
 src/tracefs-dynevents.c                | 33 ++++++++++++++
 src/tracefs-events.c                   | 26 +++++++++--
 src/tracefs-filter.c                   | 18 ++++++++
 utest/tracefs-utest.c                  | 60 ++++++++++++++++++--------
 8 files changed, 148 insertions(+), 26 deletions(-)