Re: [perfmon2] validate_power.c for power10 - was Re: Power10 support for perfmon2/libpfm

2022-08-03 Thread Giuseppe Congiu via perfmon2-devel
Hi Will, Unfortunately, I can’t say when power10 presets will be added to PAPI right now. I will let you know when I have some update on the matter. Best, Giuseppe > On 3 Aug 2022, at 16:06, William Cohen wrote: > > On 8/3/22 09:56, Giuseppe Congiu wrote: >> Hi Will, >> >> I have a pull r

Re: [perfmon2] validate_power.c for power10 - was Re: Power10 support for perfmon2/libpfm

2022-08-03 Thread Giuseppe Congiu via perfmon2-devel
Hi Will, I have a pull request for the latest libpfm4 updates https://bitbucket.org/icl/papi/pull-requests/318 . It will be merged in the next days. Best, Giuseppe > On 3 Aug 2022, at 15:40, William Cohen wrote: > > On 8/1/22 10:02, will sch

Re: [perfmon2] [PATCH] PAPI, Power10 event list mappings.

2022-08-03 Thread Giuseppe Congiu via perfmon2-devel
Hi will, How did you define the PAPI preset? —Giuseppe > On 3 Aug 2022, at 20:51, will schmidt wrote: > > [PATCH] PAPI, Power10 event list mappings. > > Hi, > This patch provides the PAPI event > mappings for Power10 support. > > This should be safe to commit once PAPI completes > the pull

Re: [perfmon2] [PATCH] PAPI, Power10 event list mappings.

2022-08-08 Thread Giuseppe Congiu via perfmon2-devel
Hi Will, We would need to verify your power10 presets before we add them to PAPI. We have a test suite that we normally use to do that (the counter analysis toolkit - CAT). Unfortunately, we don’t have access to any power10 machines at the moment. Would it be possible for us to run the counter

Re: [perfmon2] [PATCH] PAPI, Power10 event list mappings.

2022-08-22 Thread Giuseppe Congiu via perfmon2-devel
Hi Will, Sorry for the late response. ‘Us', ideally, would be myself, Anthony and Heike. That way any of us can test on Power10. Concerning suggestions on CAT, I have limited knowledge of the tool. Anthony can probably provide better guidance in this case. Best, Giuseppe > On 9 Aug 2022, at

[perfmon2] Zen4 fix

2022-12-21 Thread Giuseppe Congiu via perfmon2-devel
Hello, I found a bug when using libpfm4 in PAPI with Zen3. Libpfm4 returns to PAPI more than one default PMU. I have had a look into libpfm4 and I think the revision number of Zen4 is wrong. It is set to Zen3 instead. Attached is a fix. Best, Giuseppe Congiu 0001-zen4-fix-revision-number-in-pm

Re: [perfmon2] perf_events: how to collect Intel LBR data without sampling

2022-12-21 Thread Giuseppe Congiu via perfmon2-devel
Hi Fatih, There are different ways you can do this. One could be to write your own syscall wrapper library. The wrapper can read LBRs and then fallback to the system provided syscall. You can look at the --wrap option of the linker (man ld) as a possible implementation option for this. The linker