]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf test: Add trace record and replay test
authorNamhyung Kim <namhyung@kernel.org>
Tue, 4 Mar 2025 02:28:35 +0000 (18:28 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 5 Mar 2025 17:17:01 +0000 (09:17 -0800)
commit15bcfb96d0ddbc1b131274ad0ec6b1fe9cc8f79a
tree693e5229317aa015462a07dce1d06f65c60e8af8
parent38672c5033c3aebcc4e3adb050fa80f4c393d345
perf test: Add trace record and replay test

It just check trace record and replay could display correct output.
It uses 'sleep' process and sees there's a clock_nanosleep syscall.

  $ sudo perf test -vv replay
  108: perf trace record and replay:
  --- start ---
  test child forked, pid 1563219
  [ perf record: Woken up 1 times to write data ]
  [ perf record: Captured and wrote 0.077 MB /tmp/temporary_file.w1ApA (242 samples) ]
       0.686 (1000.068 ms): sleep/1563226 clock_nanosleep(rqtp: 0x7ffc20ffee10, rmtp: 0x7ffc20ffee50)           = 0
  ---- end(0) ----
  108: perf trace record and replay                                    : Ok

Tested-by: Thomas Falcon <thomas.falcon@intel.com>
Cc: Howard Chu <howardchu95@gmail.com>
Link: https://lore.kernel.org/r/20250304022837.1877845-5-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/trace_record_replay.sh [new file with mode: 0755]