Re: [PATCH v8 0/4] perf: arm-spe: Decode SPE source and use for perf c2c

From: Leo Yan
Date: Wed May 18 2022 - 00:16:47 EST


Hi Joe,

On Tue, May 17, 2022 at 06:20:03PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Tue, May 17, 2022 at 02:03:21AM +0000, Ali Saidi escreveu:
> > When synthesizing data from SPE, augment the type with source information
> > for Arm Neoverse cores so we can detect situtions like cache line
> > contention and transfers on Arm platforms.
> >
> > This changes enables future changes to c2c on a system with SPE where lines that
> > are shared among multiple cores show up in perf c2c output.
> >
> > Changes is v9:
> > * Change reporting of remote socket data which should make Leo's upcomping
> > patch set for c2c make sense on multi-socket platforms
>
> Hey,
>
> Joe Mario, who is one of 'perf c2c' authors asked me about some
> git tree he could clone from for both building the kernel and
> tools/perf/ so that he could do tests, can you please provide that?

I have uploaded the latest patches for enabling 'perf c2c' on Arm SPE
on the repo:

https://git.linaro.org/people/leo.yan/linux-spe.git branch: perf_c2c_arm_spe_peer_v3

Below are the quick notes for build the kernel with enabling Arm SPE:

$ git clone -b perf_c2c_arm_spe_peer_v3 https://git.linaro.org/people/leo.yan/linux-spe.git

Or

$ git clone -b perf_c2c_arm_spe_peer_v3 ssh://git@xxxxxxxxxxxxxx/people/leo.yan/linux-spe.git

$ cd linux-spe

# Build kernel
$ make defconfig
$ ./scripts/config -e CONFIG_PID_IN_CONTEXTIDR
$ ./scripts/config -e CONFIG_ARM_SPE_PMU
$ make Image

# Build perf
$ cd tools/perf
$ make VF=1 DEBUG=1

When boot the kernel, please add option "kpti=off" in kernel command
line, you might need to update grub menu for this.

Please feel free let us know if anything is not clear for you.

Thank you,
Leo