Retrieves the list of available workload partition contexts for Performance Monitoring.
Performance Monitor APIs Library (libpmapi.a)
The pm_get_wplist subroutine retrieves information on the workload partitions (WPAR) that are active during the last system-wide counting. This information includes the CID, name, and opaque handle of the WPAR. With the pm_get_data_wp or pm_get_data_wp_mx subroutines, the handle can retrieve system-wide Performance Monitor data for a specified WPAR.
If the name parameter is specified, the pm_get_wplist subroutine retrieves information for only the specified WPAR. Otherwise, the pm_get_wplist subroutine retrieves information for all WPARs that are active during the last system-wide counting.
If the wp_list parameter is not specified, the pm_get_wplist subroutine only returns the number of available WPARs contexts in that the size parameter points to. Otherwise, the array that the wp_list parameter points to is filled with up to the number of WPARs contexts that the size parameter defines.
On output to the pm_get_wplist subroutine, the variable that the size parameter points to is set to the number of available WPARs contexts for Performance Monitoring.
Item | Description |
---|---|
name | The name of the WPAR for which information is to be retrieved. If the name is not specified, information for all WPARs that are active during the last system-wide counting is retrieved. |
size | Pointer to a variable that contains the number of elements of the array that the wp_list parameter points to. On output, this variable will be filled with the actual number of WPARs contexts available. |
wp_list | Pointer to an array that will be filled with WPARs contexts. If the wp_list parameter is not specified, only the number of WPARs contexts is to be retrieved. |
Item | Description |
---|---|
0 | Operation completed successfully. |
Positive error code | Run the pm_error subroutine (pm_error Subroutine) to decode the error code. |
Run the pm_error subroutine to decode the error code.
Item | Description |
---|---|
/usr/include/pmapi.h | Defines standard macros, data types, and subroutines. |