On 05/05/2011 07:36 PM, ULISES REVILLA wrote:
> Hi,
>
> I am a Perfmon2 newbie and I am studying the Perfmon2 userguide from your 
> website. Everything goes well with the examples, till I get to section 7.1 
> about Basic Monitoring of Multiple Processes/Threads. When I run the pfmon 
> command to obtain the INSTRUCTIONS_RETIRED event for the gcc application, I 
> get "task exited with error code 0". And when I try to trace what is going on 
> by using the --follow-all option, I get "out-of-order creation, stopped" for 
> each thread (so, created tasks: 0). I include the command lines and the 
> corresponding outputs I got, at the bottom of the mail.
>
> I am using Ubuntu Linux 2.6.32.10 OS patched with the perfmon2 tool on an 
> Intel Core 2 Duo PC.
>
> Would you please give me some insight about what could be wrong and how to 
> fix this. I would appreciate it if you could help me.
>
> Thanks a lot,

I think the perfmon patches are supposed to work only up to kernel 
version 2.6.30.

Your kernel supports the perf_events interface, and the perf tool.  Are 
you familiar with these?

You can find some info in Vince Weaver's web pages: 
http://web.eecs.utk.edu/~vweaver1/projects/perf-events/

There are instructions in there about how to install it for Ubuntu/debian.

There are also man pages in the kernel source tree under 
tools/perf/Documentation

- Corey



>
>    Ulises
>
> $ pfmon --verbose --us-counter-format --no-cmd-output -e instructions_retired 
> -- gcc hello.c -o hello -O2 -static
>
> measuring at user privilege level ONLY
> 1 event set(s) defined
> long  sampling periods(val/mask/seed): 0/0x0/0
> short sampling periods(val/mask/seed): 0/0x0/0
> unavailable_pmcs=0xfffcfffc
> unavailable_pmds=0xfff8fffc
> [FIXED_CTRL(pmc16)=0xa pmi0=1 en0=0x2 pmi1=1 en1=0x0 pmi2=1 en2=0x0] 
> INSTRUCTIONS_RETIRED
> [FIXED_CTR0(pmd16)]
> pmd setup for event set0:
> [pmd16 set=0 ival=0x0 long_rate=0x0 short_rate=0x0 mask=0x0 seed=0 
> randomize=n]
> exec-pattern=*
> [15634] started task: gcc hello.c -o hello -O2 -static
> follow_exec=n follow_vfork=n follow_fork=n follow_pthread=n
> [15634] 32-bit binary
> [15634] monitoring /usr/bin/gcc-4.4...
> [15634] results are on terminal
> [15634] activating monitoring
> measurements started at Thu May  5 19:12:06 2011
>
> [15634] task exited with error code 0
> 1,708,975 INSTRUCTIONS_RETIRED
> [15634] detached
> sdesc chain to process:
> created tasks        : 0
> maximum tasks        : 1
> maximum active tasks : 1
> measurements completed at Thu May  5 19:12:06 2011
>
>
> $ pfmon --verbose --follow-all --us-counter-format --no-cmd-output -e 
> instructions_retired -- gcc hello.c -o hello -O2 -static
>
> measuring at user privilege level ONLY
> 1 event set(s) defined
> long  sampling periods(val/mask/seed): 0/0x0/0
> short sampling periods(val/mask/seed): 0/0x0/0
> unavailable_pmcs=0xfffcfffc
> unavailable_pmds=0xfff8fffc
> [FIXED_CTRL(pmc16)=0xa pmi0=1 en0=0x2 pmi1=1 en1=0x0 pmi2=1 en2=0x0] 
> INSTRUCTIONS_RETIRED
> [FIXED_CTR0(pmd16)]
> pmd setup for event set0:
> [pmd16 set=0 ival=0x0 long_rate=0x0 short_rate=0x0 mask=0x0 seed=0 
> randomize=n]
> exec-pattern=*
> [15566] started task: gcc hello.c -o hello -O2 -static
> follow_exec=y follow_vfork=y follow_fork=y follow_pthread=y
> [15566] 32-bit binary
> [15566] monitoring /usr/bin/gcc-4.4...
> [15566] results are on terminal
> [15566] activating monitoring
> measurements started at Thu May  5 19:10:37 2011
>
> [15567] out-of-order creation, stopped
> [15566] vforked [15567]
> [15567] monitoring /usr/bin/gcc-4.4...
> [15567] results are on terminal
> [15567] activating monitoring
> [15567] resuming
> [15567] 32-bit binary
> [15567] exec /usr/lib/gcc/i486-linux-gnu/4.4/cc1...
> [15567] monitoring /usr/lib/gcc/i486-linux-gnu/4.4/cc1...
> [15567] task exited with error code 0
>                  52,376,899 INSTRUCTIONS_RETIRED 
> /usr/lib/gcc/i486-linux-gnu/4.4/cc1 (15567,15567,15566)
> [15567] detached
> [15568] out-of-order creation, stopped
> [15566] vforked [15568]
> [15568] monitoring /usr/bin/gcc-4.4...
> [15568] results are on terminal
> [15568] activating monitoring
> [15568] resuming
> [15568] 32-bit binary
> [15568] exec /usr/bin/as...
> [15568] monitoring /usr/bin/as...
> [15568] task exited with error code 0
>                   2,153,624 INSTRUCTIONS_RETIRED /usr/bin/as 
> (15568,15568,15566)
> [15568] detached
> [15569] out-of-order creation, stopped
> [15566] vforked [15569]
> [15569] monitoring /usr/bin/gcc-4.4...
> [15569] results are on terminal
> [15569] activating monitoring
> [15569] resuming
> [15569] 32-bit binary
> [15569] exec /usr/lib/gcc/i486-linux-gnu/4.4/collect2...
> [15569] monitoring /usr/lib/gcc/i486-linux-gnu/4.4/collect2...
> [15570] out-of-order creation, stopped
> [15569] vforked [15570]
> [15570] monitoring /usr/lib/gcc/i486-linux-gnu/4.4/collect2...
> [15570] results are on terminal
> [15570] activating monitoring
> [15570] resuming
> [15570] 32-bit binary
> [15570] exec /usr/bin/ld...
> [15570] monitoring /usr/bin/ld...
> [15570] task exited with error code 0
>                 106,632,326 INSTRUCTIONS_RETIRED /usr/bin/ld 
> (15570,15570,15569)
> [15570] detached
> [15569] task exited with error code 0
>                     958,373 INSTRUCTIONS_RETIRED 
> /usr/lib/gcc/i486-linux-gnu/4.4/collect2 (15569,15569,15566)
> [15569] detached
> [15566] task exited with error code 0
>                   1,708,975 INSTRUCTIONS_RETIRED /usr/bin/gcc-4.4 
> (15566,15566,15565)
> [15566] detached
> sdesc chain to process:
> created tasks        : 0
> maximum tasks        : 3
> maximum active tasks : 3
> measurements completed at Thu May  5 19:10:37 2011
>
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> perfmon2-devel mailing list
> perfmon2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to