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

"Carl E. Love" <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <1448382535.5606.4.camel@oc3328482554>
On Sat, 2015-11-21 at 17:58 -0600, 大平怜 wrote:
> Carl,
> 
> 
> Could you take a look at the question I asked in the previous email?
> 
> 
> > I have a question about your patch.  Your patch removed
> > PM_DATA_ALL_FROM_RL2L3_MOD, but this event does not 
> > cause any error when I specify it to a previous version of OProfile.
> > Why does your patch have to remove this event?  Maybe it depends
> > on the environment?  I confirmed PM_L2_LD_MISS did cause an error,
> > as Chencheng Ye found.  I have not yet checked the other events.
> 

The event code for  PM_DATA_ALL_FROM_RL2L3_MOD is 0x62c046.  Bits 22:20
are 2. According to the note 1 in the patch the kernel will reject any
event with non zero bits in 22:20.  Hence it was included.  I tried the
event on my Power 8 machine:

ocount -e PM_DATA_ALL_FROM_RL2L3_MOD ls
Cannot find event PM_DATA_ALL_FROM_RL2L3_MOD
Error retrieving info for event PM_DATA_ALL_FROM_RL2L3_MOD

and it was rejected.  

I have not tracked down exactly when the change went into the kernel.  I
have 3.13.0-35 on my Ubuntu 14.04 system.  What distro/kernel version
are you running?

       Carl Love


------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list
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.