Re: [PATCH v2 0/3] perf arm-spe: Add snapshot mode support
From: Leo Yan
Date: Thu Nov 11 2021 - 03:46:38 EST
Hi Arnaldo,
On Tue, Nov 09, 2021 at 04:30:06PM +0000, German Gomez wrote:
> This patchset adds snapshot mode support for arm-spe.
>
> - [PATCH 1/3] implements the minimal callbacks to support recording in
> snapshot mode.
> - [PATCH 2/3] implements the find_snapshot callback in order to handle
> wrap-arounds in the AUX buffer.
> - [PATCH 3/3] adds a test for spe snapshot mode.
I have verified this patch set on Hisilicon D06 board, please consider
to pick up:
root@ubuntu:/home/leoy/linux/tools/perf# ./perf test -v 85
85: Check Arm SPE trace data recording and synthesized samples :
--- start ---
test child forked, pid 17083
Recording trace with snapshot mode /tmp/__perf_test.perf.data.MI2iX
Looking at perf.data file for dumping samples:
Looking at perf.data file for reporting samples:
SPE snapshot testing: PASS
test child finished with 0
---- end ----
Check Arm SPE trace data recording and synthesized samples: Ok
BTW, you could see German has another patch set for enabling pid/tid
for Arm SPE tracing [1]. I confirmed that the pid/tid patch set and
current patch set have no conflit, and don't need worry the dependency
between these two patch sets (so you could apply two patch sets in any
ordering).
Thanks,
Leo
[1] https://lore.kernel.org/lkml/20211111072714.GB102075@leoy-ThinkPad-X240s/T/#m932fd26d54278208331d4e3c32597cf63b6d4341