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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx>

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

-- 
2.35.1




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux