Skip to content

perf intel-pt: Fix the pipe mode (v2)

Namhyung Kim linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf inject: Use perf_data__read() for auxtracetools/perf/builtin-inject.c+3 -30 replies
2/4perf intel-pt: Do not try to queue auxtrace data on pipetools/perf/Documentation/perf-intel-pt.txt tools/perf/util/auxtrace.c tools/perf/util/intel-pt.c+39 -01 reply
3/4perf session: Avoid calling lseek(2) for pipetools/perf/util/session.c+7 -20 replies
4/4perf test: Add pipe mode test to the Intel PT test suitetools/perf/tests/shell/test_intel_pt.sh+17 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJames ClarkAdrian Hunter
SeriesR-b
1/4R-b
2/4R-b R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] perf intel-pt: Fix the pipe mode (v2)

Hello,

I found some problems in Intel-PT and auxtrace in general with pipe. In the past it used to work with pipe, but recent code fails. As it also touches the generic code, other auxtrace users like ARM SPE will be affected too. I added a test case to verify it works with pipes.

Changes in v2)
* add a warning in intel_pt_process_auxtrace_info()
* add Reviewed-by from James

At last, I can run this command without a problem.

  $ perf record -o- -e intel_pt// true | perf inject -b | perf report -i- --itrace=i1000

The code is available at 'perf/auxtrace-pipe-v2' branch in

git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git

Thanks,
Namhyung

Namhyung Kim (4):
perf inject: Use perf_data__read() for auxtrace perf intel-pt: Do not try to queue auxtrace data on pipe perf session: Avoid calling lseek(2) for pipe perf test: Add pipe mode test to the Intel PT test suite

 tools/perf/Documentation/perf-intel-pt.txt | 30 ++++++++++++++++++++++
 tools/perf/builtin-inject.c                |  6 ++---
 tools/perf/tests/shell/test_intel_pt.sh    | 17 ++++++++++++
 tools/perf/util/auxtrace.c                 |  3 +++
 tools/perf/util/intel-pt.c                 |  6 +++++
 tools/perf/util/session.c                  |  9 +++++--
 6 files changed, 66 insertions(+), 5 deletions(-)

base-commit: 5670ebf54bd26482f57a094c53bdc562c106e0a9

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog