Hello,

I'd appreciate it if someone on this mailing list could try out the libpfm example: task_smpl and see if it runs correctly for you on any other architecture besides Power.

When I run it on my Power5-based machine here, I get a system hang that occurs when the munmap call is made.  Looking at the code in the example, I reversed the order of the close and munmap... so that the memory is unmapped before the fd is closed, and this allows the test to run to completion without error and causes no hang.  I also tried commenting out the call to pfm_start, to cut  perfmon out of the loop for the most part, and the behavior still reproduces - the system hangs unless I reverse those two calls.

When the system hangs like this, if I get it to go into Xmon, none of the CPU stacks are interesting.  They all appear to be idle.

I run the test as follows:

./task_smpl /bin/sleep 3


Regards,

- Corey

Corey Ashford
Software Engineer
IBM Linux Technology Center, Linux Toolchain
Beaverton, OR
503-578-3507
cjash...@us.ibm.com
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to