Re: [PATCH v8 2/5] perf tools: sync addition of PERF_MEM_SNOOPX_PEER

From: Arnaldo Carvalho de Melo
Date: Wed May 11 2022 - 14:28:13 EST


Em Wed, May 11, 2022 at 10:20:04AM +0800, Leo Yan escreveu:
> On Tue, May 10, 2022 at 01:28:38PM -0300, Arnaldo Carvalho de Melo wrote:
> > Em Wed, May 04, 2022 at 06:48:47PM +0000, Ali Saidi escreveu:
> > > Add a flag to the perf mem data struct to signal that a request caused a
> > > cache-to-cache transfer of a line from a peer of the requestor and
> > > wasn't sourced from a lower cache level. The line being moved from one
> > > peer cache to another has latency and performance implications. On Arm64
> > > Neoverse systems the data source can indicate a cache-to-cache transfer
> > > but not if the line is dirty or clean, so instead of overloading HITM
> > > define a new flag that indicates this type of transfer.
> > >
> > > Signed-off-by: Ali Saidi <alisaidi@xxxxxxxxxx>
> > > Reviewed-by: Leo Yan <leo.yan@xxxxxxxxxx>
> >
> > Was this already merged on the ARM kernel tree?
>
> No, I don't think this patch has been merged on Arm kernel tree. I searched
> Arm and Arm64 git repos, none of them has merged this patch.
>
> https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/log/?qt=author&q=Ali+Saidi
> http://git.armlinux.org.uk/cgit/linux-arm.git/log/?qt=author&q=Ali+Saidi
>
> P.s. Ali missed to include German's review tag, see:
> https://lore.kernel.org/lkml/458a2de1-dc93-7e2d-5dc5-fbcd670572b6@xxxxxxx/
>
> Do you want us to resend the patch set for adding tags?

I use b4 and it should collect Reviewed-by, Acked-by, etc tags, for
instance, if I use the message-id in your message:

⬢[acme@toolbox perf]$ b4 am -ctsl --cc-trailers 20220511022004.GA956170@leoy-ThinkPad-X240s
Looking up https://lore.kernel.org/r/20220511022004.GA956170%40leoy-ThinkPad-X240s
Grabbing thread from lore.kernel.org/all/20220511022004.GA956170%40leoy-ThinkPad-X240s/t.mbox.gz
Checking for newer revisions on https://lore.kernel.org/all/
Analyzing 12 messages in the thread
Checking attestation on all messages, may take a moment...
---
✓ [PATCH v8 1/5] perf: Add SNOOP_PEER flag to perf mem data struct
+ Reviewed-By: Kajol Jain<kjain@xxxxxxxxxxxxx> (✓ DKIM/ibm.com)
+ Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
+ Link: https://lore.kernel.org/r/20220504184850.24986-2-alisaidi@xxxxxxxxxx
+ Cc: Nick.Forrington@xxxxxxx
+ Cc: andrew.kilroy@xxxxxxx
+ Cc: german.gomez@xxxxxxx
+ Cc: james.clark@xxxxxxx
+ Cc: mark.rutland@xxxxxxx
+ Cc: john.garry@xxxxxxxxxx
+ Cc: lihuafei1@xxxxxxxxxx
+ Cc: peterz@xxxxxxxxxxxxx
+ Cc: benh@xxxxxxxxxxxxxxxxxxx
+ Cc: acme@xxxxxxxxxx
+ Cc: jolsa@xxxxxxxxxx
+ Cc: namhyung@xxxxxxxxxx
+ Cc: will@xxxxxxxxxx
+ Cc: mathieu.poirier@xxxxxxxxxx
+ Cc: alexander.shishkin@xxxxxxxxxxxxxxx
+ Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
+ Cc: mingo@xxxxxxxxxx
+ Cc: linux-kernel@xxxxxxxxxxxxxxx
+ Cc: linux-perf-users@xxxxxxxxxxxxxxx
✓ [PATCH v8 2/5] perf tools: sync addition of PERF_MEM_SNOOPX_PEER
+ Reviewed-By: Kajol Jain<kjain@xxxxxxxxxxxxx> (✓ DKIM/ibm.com)
+ Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
+ Link: https://lore.kernel.org/r/20220504184850.24986-3-alisaidi@xxxxxxxxxx
+ Cc: Nick.Forrington@xxxxxxx
+ Cc: andrew.kilroy@xxxxxxx
+ Cc: german.gomez@xxxxxxx
+ Cc: james.clark@xxxxxxx
+ Cc: mark.rutland@xxxxxxx
+ Cc: john.garry@xxxxxxxxxx
+ Cc: lihuafei1@xxxxxxxxxx
+ Cc: peterz@xxxxxxxxxxxxx
+ Cc: benh@xxxxxxxxxxxxxxxxxxx
+ Cc: acme@xxxxxxxxxx
+ Cc: jolsa@xxxxxxxxxx
+ Cc: namhyung@xxxxxxxxxx
+ Cc: will@xxxxxxxxxx
+ Cc: mathieu.poirier@xxxxxxxxxx
+ Cc: alexander.shishkin@xxxxxxxxxxxxxxx
+ Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
+ Cc: mingo@xxxxxxxxxx
+ Cc: linux-kernel@xxxxxxxxxxxxxxx
+ Cc: linux-perf-users@xxxxxxxxxxxxxxx
✓ [PATCH v8 3/5] perf mem: Print snoop peer flag
+ Reviewed-By: Kajol Jain<kjain@xxxxxxxxxxxxx> (✓ DKIM/ibm.com)
+ Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
+ Link: https://lore.kernel.org/r/20220504184850.24986-4-alisaidi@xxxxxxxxxx
+ Cc: Nick.Forrington@xxxxxxx
+ Cc: andrew.kilroy@xxxxxxx
+ Cc: german.gomez@xxxxxxx
+ Cc: james.clark@xxxxxxx
+ Cc: mark.rutland@xxxxxxx
+ Cc: john.garry@xxxxxxxxxx
+ Cc: lihuafei1@xxxxxxxxxx
+ Cc: peterz@xxxxxxxxxxxxx
+ Cc: benh@xxxxxxxxxxxxxxxxxxx
+ Cc: acme@xxxxxxxxxx
+ Cc: jolsa@xxxxxxxxxx
+ Cc: namhyung@xxxxxxxxxx
+ Cc: will@xxxxxxxxxx
+ Cc: mathieu.poirier@xxxxxxxxxx
+ Cc: alexander.shishkin@xxxxxxxxxxxxxxx
+ Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
+ Cc: mingo@xxxxxxxxxx
+ Cc: linux-kernel@xxxxxxxxxxxxxxx
+ Cc: linux-perf-users@xxxxxxxxxxxxxxx
✓ [PATCH v8 4/5] perf arm-spe: Don't set data source if it's not a memory operation
+ Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
+ Link: https://lore.kernel.org/r/20220504184850.24986-5-alisaidi@xxxxxxxxxx
+ Cc: Nick.Forrington@xxxxxxx
+ Cc: andrew.kilroy@xxxxxxx
+ Cc: james.clark@xxxxxxx
+ Cc: mark.rutland@xxxxxxx
+ Cc: john.garry@xxxxxxxxxx
+ Cc: lihuafei1@xxxxxxxxxx
+ Cc: peterz@xxxxxxxxxxxxx
+ Cc: benh@xxxxxxxxxxxxxxxxxxx
+ Cc: acme@xxxxxxxxxx
+ Cc: jolsa@xxxxxxxxxx
+ Cc: namhyung@xxxxxxxxxx
+ Cc: will@xxxxxxxxxx
+ Cc: mathieu.poirier@xxxxxxxxxx
+ Cc: kjain@xxxxxxxxxxxxx
+ Cc: alexander.shishkin@xxxxxxxxxxxxxxx
+ Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
+ Cc: mingo@xxxxxxxxxx
+ Cc: linux-kernel@xxxxxxxxxxxxxxx
+ Cc: linux-perf-users@xxxxxxxxxxxxxxx
✓ [PATCH v8 5/5] perf arm-spe: Use SPE data source for neoverse cores
+ Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
+ Link: https://lore.kernel.org/r/20220504184850.24986-6-alisaidi@xxxxxxxxxx
+ Cc: Nick.Forrington@xxxxxxx
+ Cc: andrew.kilroy@xxxxxxx
+ Cc: james.clark@xxxxxxx
+ Cc: mark.rutland@xxxxxxx
+ Cc: john.garry@xxxxxxxxxx
+ Cc: lihuafei1@xxxxxxxxxx
+ Cc: peterz@xxxxxxxxxxxxx
+ Cc: benh@xxxxxxxxxxxxxxxxxxx
+ Cc: acme@xxxxxxxxxx
+ Cc: jolsa@xxxxxxxxxx
+ Cc: namhyung@xxxxxxxxxx
+ Cc: will@xxxxxxxxxx
+ Cc: mathieu.poirier@xxxxxxxxxx
+ Cc: kjain@xxxxxxxxxxxxx
+ Cc: alexander.shishkin@xxxxxxxxxxxxxxx
+ Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
+ Cc: mingo@xxxxxxxxxx
+ Cc: linux-kernel@xxxxxxxxxxxxxxx
+ Cc: linux-perf-users@xxxxxxxxxxxxxxx
---
✓ Signed: DKIM/amazon.com
---
Total patches: 5
---
Cover: ./v8_20220504_alisaidi_perf_arm_spe_decode_spe_source_and_use_for_perf_c2c.cover
Link: https://lore.kernel.org/r/20220504184850.24986-1-alisaidi@xxxxxxxxxx
Base: not specified
git am ./v8_20220504_alisaidi_perf_arm_spe_decode_spe_source_and_use_for_perf_c2c.mbx
⬢[acme@toolbox perf]$

Somehow it is not being collected... :-\

Not even when I use:

> P.s. Ali missed to include German's review tag, see:
> https://lore.kernel.org/lkml/458a2de1-dc93-7e2d-5dc5-fbcd670572b6@xxxxxxx/


458a2de1-dc93-7e2d-5dc5-fbcd670572b6@xxxxxxx

Will try updating b4...

- Arnaldo