From: Yicong Yang <[email protected]>
This patchset adds the perf tool support for HiSilicon PCIe Tune and Trace
device [1]. The device driver makes use of perf AUX trace for tracing
TLP(Transaction Layer Packet) headers of PCIe. The trace can be used by
`perf record` and the traced data can be decoded by `perf report` with
this patchset. The detailed usage is documented in [1].
This is split from the v11 series as suggested to send driver part and
perf tool part separately. The perf tool part has no change since v11.
The whole changelog can be found at [2].
[1] https://lore.kernel.org/lkml/[email protected]/
[2] https://lore.kernel.org/lkml/[email protected]/
Qi Liu (3):
perf tool: arm: Refactor event list iteration in
auxtrace_record__init()
perf tool: Add support for HiSilicon PCIe Tune and Trace device driver
perf tool: Add support for parsing HiSilicon PCIe Trace packet
tools/perf/arch/arm/util/auxtrace.c | 116 +++++++++--
tools/perf/arch/arm/util/pmu.c | 3 +
tools/perf/arch/arm64/util/Build | 2 +-
tools/perf/arch/arm64/util/hisi-ptt.c | 188 +++++++++++++++++
tools/perf/util/Build | 2 +
tools/perf/util/auxtrace.c | 4 +
tools/perf/util/auxtrace.h | 1 +
tools/perf/util/hisi-ptt-decoder/Build | 1 +
.../hisi-ptt-decoder/hisi-ptt-pkt-decoder.c | 164 +++++++++++++++
.../hisi-ptt-decoder/hisi-ptt-pkt-decoder.h | 31 +++
tools/perf/util/hisi-ptt.c | 192 ++++++++++++++++++
tools/perf/util/hisi-ptt.h | 19 ++
12 files changed, 703 insertions(+), 20 deletions(-)
create mode 100644 tools/perf/arch/arm64/util/hisi-ptt.c
create mode 100644 tools/perf/util/hisi-ptt-decoder/Build
create mode 100644 tools/perf/util/hisi-ptt-decoder/hisi-ptt-pkt-decoder.c
create mode 100644 tools/perf/util/hisi-ptt-decoder/hisi-ptt-pkt-decoder.h
create mode 100644 tools/perf/util/hisi-ptt.c
create mode 100644 tools/perf/util/hisi-ptt.h
--
2.24.0
Hi Perf maintainers,
A gentle ping for this. Since the driver part has been accepted, hope the
corresponding perf part can catch this kernel version as well.
Thanks!
On 2022/8/16 20:57, Yicong Yang wrote:
> From: Yicong Yang <[email protected]>
>
> This patchset adds the perf tool support for HiSilicon PCIe Tune and Trace
> device [1]. The device driver makes use of perf AUX trace for tracing
> TLP(Transaction Layer Packet) headers of PCIe. The trace can be used by
> `perf record` and the traced data can be decoded by `perf report` with
> this patchset. The detailed usage is documented in [1].
>
> This is split from the v11 series as suggested to send driver part and
> perf tool part separately. The perf tool part has no change since v11.
> The whole changelog can be found at [2].
>
> [1] https://lore.kernel.org/lkml/[email protected]/
> [2] https://lore.kernel.org/lkml/[email protected]/
>
> Qi Liu (3):
> perf tool: arm: Refactor event list iteration in
> auxtrace_record__init()
> perf tool: Add support for HiSilicon PCIe Tune and Trace device driver
> perf tool: Add support for parsing HiSilicon PCIe Trace packet
>
> tools/perf/arch/arm/util/auxtrace.c | 116 +++++++++--
> tools/perf/arch/arm/util/pmu.c | 3 +
> tools/perf/arch/arm64/util/Build | 2 +-
> tools/perf/arch/arm64/util/hisi-ptt.c | 188 +++++++++++++++++
> tools/perf/util/Build | 2 +
> tools/perf/util/auxtrace.c | 4 +
> tools/perf/util/auxtrace.h | 1 +
> tools/perf/util/hisi-ptt-decoder/Build | 1 +
> .../hisi-ptt-decoder/hisi-ptt-pkt-decoder.c | 164 +++++++++++++++
> .../hisi-ptt-decoder/hisi-ptt-pkt-decoder.h | 31 +++
> tools/perf/util/hisi-ptt.c | 192 ++++++++++++++++++
> tools/perf/util/hisi-ptt.h | 19 ++
> 12 files changed, 703 insertions(+), 20 deletions(-)
> create mode 100644 tools/perf/arch/arm64/util/hisi-ptt.c
> create mode 100644 tools/perf/util/hisi-ptt-decoder/Build
> create mode 100644 tools/perf/util/hisi-ptt-decoder/hisi-ptt-pkt-decoder.c
> create mode 100644 tools/perf/util/hisi-ptt-decoder/hisi-ptt-pkt-decoder.h
> create mode 100644 tools/perf/util/hisi-ptt.c
> create mode 100644 tools/perf/util/hisi-ptt.h
>