mbox series

[v6,0/5] libtraceevent: Optimize the print of tep fields

Message ID 20210812085929.54832-1-y.karadz@gmail.com (mailing list archive)
Headers show
Series libtraceevent: Optimize the print of tep fields | expand

Message

Yordan Karadzhov Aug. 12, 2021, 8:59 a.m. UTC
Provide new capabilities for printing the content of the individual
fields of the event.

Changes in v6:
 - Cleanup in [PATCH 1/5].
 - Protection against infinite loop in _tep_print_field()
 ([PATCH 4/5]).

Changes in v5:
 - The loop over the tokens in _tep_print_field() is made circular
 in order to support the corner case when the fields and the tokens
 are listed in different order.
 - _tep_print_field() and print_selected_fields() are made "inline"
 in order to help the compiler to optimize out the unused variables
 (suggested by Steven).

Changes in v4:
 - Directly applying the modification in tep_print_field() suggested
 by Steven.
 - Optimizing the loop over the tokens in tep_print_fields().

Steven Rostedt (1):
  libtraceevent: Have all field args point to the field they represent

Yordan Karadzhov (VMware) (4):
  libtraceevent: Add dynamic_offset()
  libtraceevent: Improve tep_print_field()
  libtraceevent: Optimize tep_print_fields()
  libtraceevent: Add tep_print_selected_fields()

 src/event-parse.c | 298 +++++++++++++++++++++++++++++-----------------
 src/event-parse.h |   3 +
 2 files changed, 195 insertions(+), 106 deletions(-)