Re: [PATCH] Remove Powerpc OProfile events the kernel will reject

"Carl E. Love" <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <1450282361.5731.46.camel@oc3328482554>
On Tue, 2015-12-15 at 17:33 -0500, William Cohen wrote:
> On 12/14/2015 05:18 PM, Carl E. Love wrote:
> > Will, Rei:
> > 
> > As I suspected in the last email, there is a second issue that has to do
> > with what version of the libpfm library OProfile is using.  Initially a
> > subset of the OProfile events for Power 8 were added to libpfm4.5.
> > Later the complete set of events was added to libpfm4.6.  So, My first
> > attempt at removing the events that perf was rejecting inadvertently
> > included events that were in libpfm 4.6 but not libpfm 4.5.  My version
> > of oprofile was used a patched version of libpfm 4.4 that effectively
> > made it libpfm 4.5.  I redid the patch an verified that when Oprofile is
> > built with libpfm 4.6 there are no rejected events.  I added a comment
> > in the event file as a heads up to this effect.  
> > 
> > Please take a look at the patch and see if it works OK for you.  Sorry
> > for the delay in getting this out.
> > 
> >            Carl Love

> Hi Carl,
> 
> Thanks for the updated patch.  You mentioned patched versions of libpfm.  Is this the libpfm in rhel7.  If it is the libpfm in rhel7, are there updates that need to be made to the version?
> 
> What environment being used to test?  Any testing on fedora 23 which has libpfm-4.6?

Will:

My system is Ubuntu 14.04.  If you go look
in /usr/lib/powerpc64le-linux-gnu/libpfm.so -> libpfm.so.4.4.0 it says
4.4.  I know from working with them that the pulled patches from
upstream for the release.  When I tried running a script with all of the
events in oprofile, only the events in the 4.5 release succeeded.
Unfortunately, I am not up on specifically what packages all of the
releases used an how many of the patches were back ported.

Unfortunately, I do not have a system with Fedora 23 to test with.  The
only testing I could do with libpfm 4.6 was on my Unbuntu 14.04 system
where I installed libpfm4.6 then built and installed OProfile using
libpfm4.6.  The new version of OProfile was put in /usr/local/bin.  This
allowed me to test against the distro installed OProfile and my libpfm
4.6 version on the same machine.

It would be nice if we could get some testing on a distro that has 4.6
as part of the release.  I expect that my team will probably updating
the lab machines early next year and I can then double check then.

        Carl Love


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.