perf test: Update mmap read functions for backward-ring-buffer test
authorKan Liang <[email protected]>
Thu, 18 Jan 2018 21:26:24 +0000 (13:26 -0800)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 15 Feb 2018 12:54:08 +0000 (09:54 -0300)
commit600a7cfe88de2c6e44e23d61dd721b996b790eb2
tree1c60a151f5bd6b94400fa6097d3d29556c747d7a
parent7bb45972952db9298fe5cc440160dcad1a66bfbc
perf test: Update mmap read functions for backward-ring-buffer test

Use the new perf_mmap__read_* interfaces for overwrite ringbuffer test.

Commiter notes:

Testing:

  [root@seventh ~]# perf test -v backward
  48: Read backward ring buffer                             :
  --- start ---
  test child forked, pid 8309
  Using CPUID GenuineIntel-6-9E
  mmap size 1052672B
  mmap size 8192B
  Finished reading overwrite ring buffer: rewind
  test child finished with 0
  ---- end ----
  Read backward ring buffer: Ok
  [root@seventh ~]#

Signed-off-by: Kan Liang <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Jin Yao <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/tests/backward-ring-buffer.c