RE: oprofile support for PPC_E5500

Michael Petlan <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <alpine.LRH.2.20.1607122053550.10992@Diego>
On Tue, 12 Jul 2016, Beaman, Thomas wrote:
>
>>
>> Hi Tom,
>>
>> Thanks for making the request to Windriver for the e6500 oprofile patch.
>>
>> Are there similar special patches in kernel being used to allow access to the
>> e5500 performance monitoring hardware?  I see references to e500 and
>> e6500 in the mainline kernel (linux/arch/power/perf/e500-pmu.c and
>> linux/arch/power/perf/e6500-pmu.c, but don't see anything for e5500.  Does
>> "perf list" work and list out events thave "[Hardware event]" or "[Kernel
>> PMU event]" on the line?  If the kernel support isn't there, then changes to
>> the user-space oprofile isn't make much of a difference.
>>
>> -Will
>
>
> Hi Will,
>
> So far I am only using Michaels patch plus a few hand edits I make, which allows detection of the cpu.
>
> I have attached the output of the "perf list" command.  It does have some Hardware Events listed
>
> Tom
>

Since the `perf list` shows stalled-cycles-frontend and stalled-cycles-backend
events, it seems it does not use the e6500-pmu.c file, since these events are
specified in e500-pmu.c only.

Tom, the question was whether WindRiver has some kernel patches for e5500 support
or not.

You may also try to see which PMU drivers are present in kallsyms:

cat /proc/kallsyms | grep pmu | grep init

If you see e5500 there, your kernel probably has some WindRiver-specific patch,
since there is probably no init_e5500_pmu in the upstream kernel.

Michael

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
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.