• N
    perf tools: Add pipe_test.sh to verify pipe operations · ec02f2b1
    Namhyung Kim 提交于
    It builds a test program and use it to verify pipe behavior with perf
    record, inject and report.
    
      $ perf test pipe -v
      80: perf pipe recording and injection test                          :
      --- start ---
      test child forked, pid 1109301
      [ perf record: Woken up 1 times to write data ]
      [ perf record: Captured and wrote 0.000 MB - ]
         1109315  1109315       -1 |test.file.MGNff
      [ perf record: Woken up 1 times to write data ]
      [ perf record: Captured and wrote 0.000 MB - ]
          99.99%  test.file.MGNff  test.file.MGNffM  [.] noploop
      [ perf record: Woken up 1 times to write data ]
      [ perf record: Captured and wrote 0.000 MB - ]
          99.99%  test.file.MGNff  test.file.MGNffM  [.] noploop
      [ perf record: Woken up 1 times to write data ]
      [ perf record: Captured and wrote 0.153 MB /tmp/perf.data.dmsnlx (3995 samples) ]
          99.99%  test.file.MGNff  test.file.MGNffM  [.] noploop
      test child finished with 0
      ---- end ----
      perf pipe recording and injection test: Ok
    Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
    Acked-by: NJiri Olsa <jolsa@redhat.com>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Link: http://lore.kernel.org/lkml/20210719223153.1618812-6-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
    ec02f2b1
pipe_test.sh 1.4 KB