perfstat_partition_total 子例程

用途

检索全局Micro-Partitioning®使用统计信息。

perfstat 库 (libperfstat.a)

语法

#include <libperfstat.h>
       int perfstat_partition_total(name, userbuff, sizeof_struct, desired_number)
       perfstat_id_t *name; 
       perfstat_partition_total_t *userbuff; 
       size_t sizeof_struct; 
       int desired_number;
       u_longlong_t reserved_pages;
       u_longlong_t reserved_pagesize.

描述

perfstat_partition_total 子例程返回 perfstat_partition_total_t 结构中的全局 Micro-Partitioning 使用情况统计信息。 要检索整个系统的全局统计信息,必须将 name 参数设置为 NULL ,必须分配 userbuff 参数,并且必须将 desired_number 参数设置为 1。

此子例程返回 工作负载分区 (WPAR) 内的分区范围度量。

参数

描述
名称 必须设置为 NULL。
用户缓冲区 指向要使用 perfstat_partition_total_t 结构填充的内存区域。
大小结构 指定 perfstat_partition_total_t 结构的大小: sizeof(perfstat_partition_total_t)
期望数 (desired_number) 必须设置为 1。
保留页面大小 指定保留内存的页面大小。 不用于 DR 操作。
保留页面 指定类型为 reserved_pagesize的页数。 可通过调用 vmgetinfo来检索此信息。 不用于 DR 操作。

返回值

成功完成后,将返回已填充的结构数。 如果不成功,则返回值为-1并设置errno全局变量。

错误代码

描述
EINVAL 其中一个参数无效。
Efault 内存不足。

文件

libperfstat.h 文件定义标准宏,数据类型和子例程。