mbox series

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

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

Message

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

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 | 297 +++++++++++++++++++++++++++++-----------------
 src/event-parse.h |   3 +
 2 files changed, 194 insertions(+), 106 deletions(-)