linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] trace-cmd library: Add and use new helper functions
@ 2022-08-05 15:40 Steven Rostedt
  2022-08-05 15:40 ` [PATCH 1/9] tracecmd: Use make variable instead of if statement for zlib test Steven Rostedt
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Steven Rostedt @ 2022-08-05 15:40 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: Steven Rostedt (Google)

From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Add the following functions to the libtracecmd library:

 tracecmd_set_private() - set private data to tracecmd_input handle
 tracecmd_get_private() - get private data from tracecmd_input handle
 tracecmd_iterate_events() - iterate all events for a single buffer in a
                          trace.dat file (can filter on CPUs)
 tracecmd_iterate_events_multi() - iterate all events from multiple buffers
                          in a trace.dat file. (Does not filter on CPUs).
 tracecmd_filter_add() - Add a filter to a tracecmd_input handle that will
                          filter the iterator funtions.
 tracecmd_filter_match() - Will test a record against a given filter to see
                         if it matches or not.

As change trace-cmd to use these functions instead of doing the same thing
internally.


Steven Rostedt (Google) (9):
  tracecmd: Use make variable instead of if statement for zlib test
  tracecmd library: Add tracecmd_iterate_events()
  tracecmd utest: Add test to test using the libraries to read
  tracecmd library: Add tracecmd_iterate_events_multi()
  trace-cmd library: Allow callers to save private data in
    tracecmd_input handlers
  trace-cmd report: Use tracecmd_iterate_events_multi()
  trace-cmd library: Add filtering logic for iterating events
  trace-cmd report: Make filter arguments match their files
  trace-cmd report: Use library tracecmd_filter_*() logic

 Makefile                                |   3 +
 include/trace-cmd/trace-cmd.h           |  29 ++
 lib/trace-cmd/Makefile                  |   7 +-
 lib/trace-cmd/include/trace-cmd-local.h |   5 +
 lib/trace-cmd/trace-filter.c            | 197 ++++++++++
 lib/trace-cmd/trace-input.c             | 197 ++++++++++
 tracecmd/Makefile                       |   6 +-
 tracecmd/trace-read.c                   | 466 ++++++++----------------
 utest/Makefile                          |   4 +-
 utest/tracecmd-utest.c                  |  53 ++-
 10 files changed, 650 insertions(+), 317 deletions(-)
 create mode 100644 lib/trace-cmd/trace-filter.c

-- 
2.35.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-08-05 15:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-05 15:40 [PATCH 0/9] trace-cmd library: Add and use new helper functions Steven Rostedt
2022-08-05 15:40 ` [PATCH 1/9] tracecmd: Use make variable instead of if statement for zlib test Steven Rostedt
2022-08-05 15:40 ` [PATCH 2/9] tracecmd library: Add tracecmd_iterate_events() Steven Rostedt
2022-08-05 15:40 ` [PATCH 3/9] tracecmd utest: Add test to test using the libraries to read Steven Rostedt
2022-08-05 15:40 ` [PATCH 4/9] tracecmd library: Add tracecmd_iterate_events_multi() Steven Rostedt
2022-08-05 15:40 ` [PATCH 5/9] trace-cmd library: Allow callers to save private data in tracecmd_input handlers Steven Rostedt
2022-08-05 15:40 ` [PATCH 6/9] trace-cmd report: Use tracecmd_iterate_events_multi() Steven Rostedt
2022-08-05 15:40 ` [PATCH 7/9] trace-cmd library: Add filtering logic for iterating events Steven Rostedt
2022-08-05 15:40 ` [PATCH 8/9] trace-cmd report: Make filter arguments match their files Steven Rostedt
2022-08-05 15:40 ` [PATCH 9/9] trace-cmd report: Use library tracecmd_filter_*() logic Steven Rostedt

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).