Re: PM_L2_LD_MISS events doesn't work
"Carl E. Love" <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <1446762828.5243.22.camel@oc3328482554> |
On Thu, 2015-11-05 at 20:15 +0000, CC Y wrote:
> Hi,
>
>
> Looks like ocount can not collect the performance events of
> PM_L2_LD_MISS on my power8 machine. The information and command is:
> cye@...$ ocount-1.2 -e PM_L2_LD_MISS ls
>
> perf_event_open failed with Invalid argument
>
>
> Caught runtime error while setting up counters
>
> Internal Error. Perf event setup failed.
>
> Error running ocount
>
Chencheng Ye:
I took a look at the issue you reported on Power 8. I am seeing the
same issue on my lab machine with OProfile 1.1. ophelp lists the
PM_L2_LD_MISS event a a legal event.
I checked the oprofile config.log file for libpfm. The config file
lists:
| #define HAVE_LIBPFM3 0
| #define HAVE_LIBPFM 1
I was checking the libpfm library and noticed that the PM_L2_LD_MISS is
supported in libpfm 4.6 but not in libpfm 4.5.
The libpfm library is important because OProfile uses it to convert the
event name to the raw code for the event. The raw code is then passed
down to the linux perf interface to do the event counting.
I don't remember the details of the libpfm setup for OProfile and what
the HAVE_LIBPFM in the config.log file means. I will have to go dig
some. Will might remember the specifics. Anyway, my first thought is
that oprofile is not using the latest libpfm library??? Not sure at
this point. I will have to look some more to see if that might be the
issue.
Carl Love
>
> Actually I found all of the events of PM_L2_XXXX does not work.
>
> Does this happens to anyone else?
>
>
> Here are some information might useful:
>
> ocount-1.2 --version
>
> ocount-1.2: oprofile 1.2.0git compiled on Nov 5 2015 15:00:21
>
>
> uname -a
>
> Linux node-ibm-822 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16
> 23:32:13 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
>
>
> Regards,
>
> Chencheng Ye
>
>
> --
>
> Chencheng Ye
> Cluster and Grid Computing Lab (CGCL)
> Services Computing Technology and System Lab (SCTS)
> School of Computer Science and Technology (CS)
> Huazhong University of Science and Technology (HUST)
> Wuhan, 430074, China
> ------------------------------------------------------------------------------
> _______________________________________________
> oprofile-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
------------------------------------------------------------------------------