NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
2 replies Latest Post - 2010-05-12T22:23:14Z by mpjohn
Pinned topic Is there something like pmapi (an AIX tool) on Linux?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Is there something analogous to AIX's PMAPI on Linux? That is, an APl that can be used to get process- and thread-level hardware counter data for users.
Updated on 2010-05-12T22:23:14Z at 2010-05-12T22:23:14Z by mpjohn
SystemAdmin 110000D4XK706 PostsACCEPTED ANSWER
Re: Is there something like pmapi (an AIX tool) on Linux?2010-05-12T19:42:51Z in response to nullI don't know many details on the PMAPI command, but the "perf" tool which is integrated into the 2.6.32 kernel is probably what you're looking for.
It's fairly new and not exactly polished yet.. but it does have some cool features.
We've started an FAQ page.. but have a long way to go on it...
Let us know if there are specific questions...
mpjohn 110000CUTD1 PostACCEPTED ANSWER
Re: Is there something like pmapi (an AIX tool) on Linux?2010-05-12T22:23:14Z in response to nullAs I recall, AIX has libptools which provides the API referred to as PMAPI. If it's an API you're needing versus a standalone tool like 'perf' (as suggested earlier by wburos), recent kernel versions (> 2.6.31) include a kernel API upon which 'perf' is built. The long name for this API is "Performance Events Subsystem", but it's commonly referred to as "perf_events". There is also a open source library called 'PAPI' (http://icl.cs.utk.edu/papi/index.html) which can run on top of many OS/architecture combinations, including the aforementioned perf_events. Some documentation is available for this API in the kernel source, in tools/perf/design.txt. Performance tool developers can either code directly to the kernel API or use PAPI.