Re: [PATCH v3 1/2] perf symbol: Correct address for bss symbols
From: Leo Yan
Date: Mon Jul 25 2022 - 20:53:19 EST
Hi Arnaldo,
On Mon, Jul 25, 2022 at 03:29:45PM -0300, Arnaldo Carvalho de Melo wrote:
[...]
> > First we used 'perf mem record' to run the test program and then used
> > 'perf --debug verbose=4 mem report' to observe what's the symbol info
> > for 'buf1' and 'buf2' structures.
> >
> > # ./perf mem record -e ldlat-loads,ldlat-stores -- false_sharing.exe 8
>
> Can you share the source code for your false sharing proggie? We need to
> have something in 'perf test' exercising these routines :-)
Sure, I am using the false sharing test case:
https://github.com/joemario/perf-c2c-usage-files/blob/master/false_sharing_example.c
... with build command:
$ gcc -g false_sharing_example.c -pthread -lnuma -o false_sharing.exe
Do want me to proceed for adding test case? Otherwise, it's fine if
you will work on the enabling test case :)
Thanks,
Leo