]> Git Repo - linux.git/commit
perf auxtrace arm64: Add support for parsing HiSilicon PCIe Trace packet
authorQi Liu <[email protected]>
Tue, 27 Sep 2022 08:14:00 +0000 (16:14 +0800)
committerArnaldo Carvalho de Melo <[email protected]>
Sat, 15 Oct 2022 13:13:16 +0000 (10:13 -0300)
commit5e91e57e68090c0e8ab0acecdbb309af8417d415
tree14b19ac1015dac0c3ba3cc9e0474fded5bd2653b
parent057381a7ece1b2726509ce47cdb9c1a111acfce9
perf auxtrace arm64: Add support for parsing HiSilicon PCIe Trace packet

Add support for using 'perf report --dump-raw-trace' to parse PTT packet.

Example usage:

Output will contain raw PTT data and its textual representation, such
as (8DW format):

0 0 0x5810 [0x30]: PERF_RECORD_AUXTRACE size: 0x400000  offset: 0
ref: 0xa5d50c725  idx: 0  tid: -1  cpu: 0
.
. ... HISI PTT data: size 4194304 bytes
.  00000000: 00 00 00 00                                 Prefix
.  00000004: 08 20 00 60                                 Header DW0
.  00000008: ff 02 00 01                                 Header DW1
.  0000000c: 20 08 00 00                                 Header DW2
.  00000010: 10 e7 44 ab                                 Header DW3
.  00000014: 2a a8 1e 01                                 Time
.  00000020: 00 00 00 00                                 Prefix
.  00000024: 01 00 00 60                                 Header DW0
.  00000028: 0f 1e 00 01                                 Header DW1
.  0000002c: 04 00 00 00                                 Header DW2
.  00000030: 40 00 81 02                                 Header DW3
.  00000034: ee 02 00 00                                 Time
....

This patch only add basic parsing support according to the definition of
the PTT packet described in Documentation/trace/hisi-ptt.rst. And the
fields of each packet can be further decoded following the PCIe Spec's
definition of TLP packet.

Signed-off-by: Qi Liu <[email protected]>
Signed-off-by: Yicong Yang <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: James Clark <[email protected]>
Cc: John Garry <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Cc: Leo Yan <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Poirier <[email protected]>
Cc: Mike Leach <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Qi Liu <[email protected]>
Cc: Shameerali Kolothum Thodi <[email protected]>
Cc: Shaokun Zhang <[email protected]>
Cc: Suzuki Poulouse <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Zeng Prime <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/Build
tools/perf/util/auxtrace.c
tools/perf/util/hisi-ptt-decoder/Build [new file with mode: 0644]
tools/perf/util/hisi-ptt-decoder/hisi-ptt-pkt-decoder.c [new file with mode: 0644]
tools/perf/util/hisi-ptt-decoder/hisi-ptt-pkt-decoder.h [new file with mode: 0644]
tools/perf/util/hisi-ptt.c [new file with mode: 0644]
tools/perf/util/hisi-ptt.h
This page took 0.058924 seconds and 4 git commands to generate.