Re: oprofile support for PPC_E5500

William Cohen <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 07/06/2016 10:26 AM, Beaman, Thomas wrote:
> When I am running on my PPC E5500 system oprofile cannot detect the CPU
> 
>  
> 
> operf --version
> 
> Unable to obtain cpu_type
> 
>  
> 
> Looking at op_cpu_type.h I see entries for
> 
>  
> 
>                 CPU_PPC_E500MC, /**< e500mc */
> 
>                 CPU_PPC_E6500, /**< e6500 */
> 
>  
> 
> But no entry for the PPC E5500.  The E5500 is very similar to e500mc and the E6500.  Can support be added for this processor ?
> 
>  
> 
> Thanks,
> 
> Tom

Hi Tom,

It is not difficult to add support for additional processors to oprofile. The main question is does the kernel being used on the system support access to the PPC E5500 performance monitoring hardware.  OProfile now uses the linux perf infrastructure in the kernel.  If that is available on the machine the command "perf list" should list out the available events and include some that are hardware events.  For the older method that is no longer supported in the current version of oprofile the kernel provided a oprofile kernel module.  The kernel module provided information about what type of processor the machine was. 

To add support for a new process there will need to be some additions in oprofile libop files to identify the processor type.  descriptions of the events in events/ppc for the processor.  The events might be similar to other existing processors and you might be able to map the processor to an existing set of events, but there can be differences that require separate set of files describing the events.

-Will


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
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.