mbox series

[0/4] trace-cmd utest: Add test for max buffer (record -m)

Message ID 20221115205355.2580214-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series trace-cmd utest: Add test for max buffer (record -m) | expand

Message

Steven Rostedt Nov. 15, 2022, 8:53 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Add a unit test to test the trace-cmd recorcd -m <size> option where the
per_cpu buffers are capped at a maximum size. There was a bug due to the splice
code that the size was not being calculated correctly, and was becoming much
larger than specified.

In doing this, some restructuring needs to be done to make the helper functions
a bit more flexible, and some other clean ups.

Steven Rostedt (Google) (4):
  trace-cmd: Make the unit test depend on the static library
  trace-cmd: Only show unit test output when -v is supplied
  trace-cmd utest: Separate out the grep and pipes
  trace-cmd: Add test for max size option of record

 utest/Makefile         |   2 +-
 utest/tracecmd-utest.c | 187 +++++++++++++++++++++++++++++++++++++----
 2 files changed, 170 insertions(+), 19 deletions(-)