From: "Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
To: rostedt@goodmis.org
Cc: linux-trace-devel@vger.kernel.org,
"Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
Subject: [PATCH v8 0/2] libtraceevent: Optimize the print of tep fields
Date: Thu, 9 Sep 2021 11:06:36 +0300 [thread overview]
Message-ID: <20210909080638.259024-1-y.karadz@gmail.com> (raw)
Provide new capabilities for printing the content of the individual
fields of the event.
Changes in v8:
- In tep_record_print_selected_fields(), changing the argument
'ignore_mask' to 'select_maks'.
- Fixes in the documentation of the new APIs.
Changes in v7:
- Proper naming (without 'tep' prefix) of the static methods defined
in the patches.
- Fixing the 'for' loop in print_selected_fields()
- 'tep_print_selected_fields()' was renamed to
'tep_record_print_selected_fields()'. 'tep_record_print_fields()' was
added.
- Adding documentation for the new APIs.
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().
Yordan Karadzhov (VMware) (2):
libtraceevent: Add APIs for printing the fields of a record
libtraceevent: Add documentation for the new printing APIs
Documentation/libtraceevent-field_print.txt | 11 ++++-
Documentation/libtraceevent.txt | 2 +
src/event-parse.c | 51 +++++++++++++++++++--
src/event-parse.h | 7 +++
4 files changed, 66 insertions(+), 5 deletions(-)
--
2.30.2
next reply other threads:[~2021-09-09 8:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-09 8:06 Yordan Karadzhov (VMware) [this message]
2021-09-09 8:06 ` [PATCH v8 1/2] libtraceevent: Add APIs for printing the fields of a record Yordan Karadzhov (VMware)
2021-09-09 8:06 ` [PATCH v8 2/2] libtraceevent: Add documentation for the new printing APIs Yordan Karadzhov (VMware)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210909080638.259024-1-y.karadz@gmail.com \
--to=y.karadz@gmail.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).