Re: Removal of events for unsupported architectures or processor models

Maynard Johnson <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 07/21/2014 06:08 PM, Maynard Johnson wrote:
> Hello, oprofile community,
> Your input and feedback on the issue described below would be appreciated.
> 
> As recently announced on the oprofile-list, OProfile release 1.0 will *NOT* include the legacy opcontrol-based profiler.  Only the operf profiler -- which uses the Linux Kernel Performance Events Subsystem (aka "perf_events") -- will be included in release 1.0.  It seems logical at this time to also remove the events and unit mask files for any architecture or processor types that are not supported by perf_events.  From what I can tell, here are the architectures that do not have perf_events support:
> 
> 	avr32
> 	ia64
> 
> Unsupported processor models are:
> 
> 	ppc64/cell-be
> 	ppc64/pa6t (?)
> 
> If anyone knows of any additional architectures and/or processor models that do not have perf_events support and, thus, should be dropped from oprofile release 1.0, please let me know.

Hello, Ting Liu,
>From what I can tell, the Freescale processors E500 and E6500 are supported by the kernel's perf_events infrastructure. However, operf and ocount do not yet recognize these processor types (or any ppc types, for that matter).  With the upcoming oprofile 1.0 release, opcontrol will no longer be available, so none of the ppc processor types will be supported by operf/ocount unless additional work is done.  For those ppc processors already supported by the kernel's perf_events infrastructure, you only need to add a line to libop/op_cpu_type.c:__get_cpu_type_alt_method() to recognize the ppc architecture and then call a ppc-specific "get_cpu_type" function (which you must write -- probably can get the processor model from /proc/cpuinfo).

Please let me know as soon as possible if you want oprofile to continue to support the Freescale processors.  If certain older models are not (and will not) be supported by the perf_events kernel subsystem, please identify those for me so I can remove them from release 1.0.

Thanks.
-Maynard
> 
> Thanks.
> 
> -Maynard
> 
> 
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> oprofile-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
> 


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
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.