Re: [PATCH v3 1/2] perf symbol: Correct address for bss symbols

From: Arnaldo Carvalho de Melo
Date: Mon Jul 25 2022 - 21:05:09 EST




On July 25, 2022 9:53:07 PM GMT-03:00, Leo Yan <leo.yan@xxxxxxxxxx> wrote:
>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?

Yes, go ahead, that will be really nice of you to add it :)

- Arnaldo

> Otherwise, it's fine if
>you will work on the enabling test case :)
>
>Thanks,
>Leo