Re: [PATCH] CPU "IBM Power Architected Events V1" support added to the testsuite

Michael Petlan <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
Hi,

I've debugged the problem a little...

The gist of the identification problem is in the oprofile versions I've
used during the testing.

I am running two machines of that type, one with RHEL 6, one with RHEL 7.

AT BASE PLATFORM is "power8" on both.
AT PLATFORM is "power8" on RHEL 7 (newer kernel) and "power7" on RHEL 6
(2.6 kernel) as it is expectable (the CPU runs in the power7-compatibility
mode).

The git head ophelp returns "ppc64 POWER8" both on RHEL 6 and 7. On RHEL 6
it is because of the code in libop/op_cpu_type.c at lines 307-310. So when
the latest git version is used, the "generic" (architected events) cpu_type
is not used in the case of POWER8.

My another oprofile version based on 0.9.9 (before the commit 65176cb1)
claims that it is "IBM Power Architected Events V1".

I saw that CPU type and the fact, that there are no testcases being run
in the testsuite, so I created the patch. It works, but it doesn't seem
to be an ideal solution for my machines, because despite the fact the
machines are virtual guests, they seem to support the same HW counters
and events as POWER8 configuration.

I have to compare that with a non-virtual POWER8 machine. Then I'll be
more sure in that.

Regards,
Michael

On 1.8.2014 16:16, Maynard Johnson wrote:
> But I'm a bit confused about your environment. As far as what I
> know, the only way "ophelp -r" (using oprofile 0.9.9) will return
> "IBM Power Architected Events V1" is if AT_PLATFORM (from aux vector)
> is "POWER7" and AT_BASE_PLATFORM is "POWER8".  But your /proc/cpuinfo
> shows "POWER8", which would imply that AT_PLATFORM is also "POWER8".
>
> Can you describe your environment in detail please, just to humor me?  :-)
>
> 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
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.