Hi,

These Python scripts are all not maintained.
I suggest you use the perf_examples/syst_count program instead.
And you need to be root to run per-CPU (system-wide) measurments.


On Thu, Dec 4, 2014 at 1:34 AM, Sun, Yongjie <yongjie....@intel.com> wrote:
> Hi,
> I running on  Intel  SNB E5-2680
>
> I just used the "libpfm-4.5.0/python/sys.py"
> ./sys.py -e 
> UNHALTED_CORE_CYCLES,UNHALTED_REFERENCE_CYCLES,CPU_CLK_UNHALTED:THREAD_P,CPU_CLK_UNHALTED:REF_P
>  -c 0
> Result:
> CPU0: UNHALTED_CORE_CYCLES      3229292
> CPU0: UNHALTED_REFERENCE_CYCLES 3
> CPU0: CPU_CLK_UNHALTED:THREAD_P 3266550
> CPU0: CPU_CLK_UNHALTED:REF_P    268798
> CPU0: UNHALTED_CORE_CYCLES      6834444
> CPU0: UNHALTED_REFERENCE_CYCLES 3
> CPU0: CPU_CLK_UNHALTED:THREAD_P 6897896
> CPU0: CPU_CLK_UNHALTED:REF_P    568677
> CPU0: UNHALTED_CORE_CYCLES      10782920
> CPU0: UNHALTED_REFERENCE_CYCLES 3
> CPU0: CPU_CLK_UNHALTED:THREAD_P 10876957
> CPU0: CPU_CLK_UNHALTED:REF_P    897739
> -----Original Message-----
> From: Stephane Eranian [mailto:eran...@googlemail.com]
> Sent: Wednesday, December 3, 2014 12:33 AM
> To: Sun, Yongjie
> Cc: perfmon2-devel@lists.sourceforge.net
> Subject: Re: [perfmon2] perfmon2 CPU_CLK_UNHALTED:REF_P count error
>
> Hi,
>
> On Mon, Dec 1, 2014 at 6:24 AM, Sun, Yongjie <yongjie....@intel.com> wrote:
>> Hi, all
>>    I use the perfmon2 to count events
>> “UNHALTED_CORE_CYCLES,UNHALTED_REFERENCE_CYCLES,CPU_CLK_UNHALTED:THREAD_P,CPU_CLK_UNHALTED:REF_P”
>> and got
>
> which CPU is this running on?
> How long does your test run?
> Are you running in system-wide or per-process mode?
> Need more context to answer your question.
>
>> CPU0: UNHALTED_CORE_CYCLES      5538707
>> CPU0: UNHALTED_REFERENCE_CYCLES 3
>> CPU0: CPU_CLK_UNHALTED:THREAD_P 5641229
>> CPU0: CPU_CLK_UNHALTED:REF_P    419607
>> CPU0: UNHALTED_CORE_CYCLES      11661876
>> CPU0: UNHALTED_REFERENCE_CYCLES 3
>> CPU0: CPU_CLK_UNHALTED:THREAD_P 11813664
>> CPU0: CPU_CLK_UNHALTED:REF_P    911248
>> CPU0: UNHALTED_CORE_CYCLES      15682069
>> CPU0: UNHALTED_REFERENCE_CYCLES 3
>> CPU0: CPU_CLK_UNHALTED:THREAD_P 15869779
>> CPU0: CPU_CLK_UNHALTED:REF_P    1246315
>>
>> Two questions: 1. why UNHALTED_REFERENCE_CYCLES is 3?  Too small
>>              2. why  CPU0: CPU_CLK_UNHALTED:REF_P is much smaller than
>> CPU_CLK_UNHALTED:THREAD_P? this do not make sence!
>>
>> BTW: I count this for I want to count the CPU Frequency from Intel’s DOC:
>> https://software.intel.com/en-us/articles/measuring-the-average-unhalt
>> ed-frequency
>> Average frequency =
>> TSC_frequency * (CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF)
>>
>> So can anybody help on this question?
>>
>>
>> ----------------------------------------------------------------------
>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>> Server from Actuate! Instantly Supercharge Your Business Reports and
>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
>> Integration & more Get technology previously reserved for
>> billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.
>> clktrk _______________________________________________
>> perfmon2-devel mailing list
>> perfmon2-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
>>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to