17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5c10ab1c0SAlan Hargreaves * Common Development and Distribution License (the "License"). 6c10ab1c0SAlan Hargreaves * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 227c478bd9Sstevel@tonic-gate /* All Rights Reserved */ 237c478bd9Sstevel@tonic-gate 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gate /* 26*c65c9cdcSDonghai Qiao * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 277c478bd9Sstevel@tonic-gate * Use is subject to license terms. 287c478bd9Sstevel@tonic-gate */ 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate #ifndef _SYS_SYSINFO_H 317c478bd9Sstevel@tonic-gate #define _SYS_SYSINFO_H 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate #include <sys/types.h> 347c478bd9Sstevel@tonic-gate #include <sys/t_lock.h> 357c478bd9Sstevel@tonic-gate #include <sys/kstat.h> 367c478bd9Sstevel@tonic-gate #include <sys/machlock.h> 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gate #ifdef __cplusplus 397c478bd9Sstevel@tonic-gate extern "C" { 407c478bd9Sstevel@tonic-gate #endif 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gate /* 437c478bd9Sstevel@tonic-gate * System Information. 447c478bd9Sstevel@tonic-gate */ 457c478bd9Sstevel@tonic-gate #define CPU_IDLE 0 467c478bd9Sstevel@tonic-gate #define CPU_USER 1 477c478bd9Sstevel@tonic-gate #define CPU_KERNEL 2 487c478bd9Sstevel@tonic-gate #define CPU_WAIT 3 497c478bd9Sstevel@tonic-gate #define CPU_STATES 4 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gate #define W_IO 0 527c478bd9Sstevel@tonic-gate #define W_SWAP 1 537c478bd9Sstevel@tonic-gate #define W_PIO 2 547c478bd9Sstevel@tonic-gate #define W_STATES 3 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate typedef struct cpu_sysinfo { 577c478bd9Sstevel@tonic-gate uint_t cpu[CPU_STATES]; /* CPU utilization */ 587c478bd9Sstevel@tonic-gate uint_t wait[W_STATES]; /* CPU wait time breakdown */ 59c10ab1c0SAlan Hargreaves /* 60c10ab1c0SAlan Hargreaves * The two stats lwrite and bwrite are used by sar(1) to 61c10ab1c0SAlan Hargreaves * generate the write cache hit percentage (%wcache value). 62c10ab1c0SAlan Hargreaves * 63c10ab1c0SAlan Hargreaves * The value is calculated as follows (unless lwrite < 0.5 and 64c10ab1c0SAlan Hargreaves * then %wcache is coded to 100%): 65c10ab1c0SAlan Hargreaves * 66c10ab1c0SAlan Hargreaves * (lwrite - bwrite)/lwrite * 100.0 67c10ab1c0SAlan Hargreaves * 68c10ab1c0SAlan Hargreaves * This calculation assumes that when a physical write occurs 69c10ab1c0SAlan Hargreaves * (bwrite incremented), that a logical write (lwrite 70c10ab1c0SAlan Hargreaves * incremented) has also occured. Note that a logical write 71c10ab1c0SAlan Hargreaves * (lwrite incremented) my occur on its own. 72c10ab1c0SAlan Hargreaves * 73c10ab1c0SAlan Hargreaves * Similar for lread/bread and %rcache. 74c10ab1c0SAlan Hargreaves */ 757c478bd9Sstevel@tonic-gate uint_t bread; /* physical block reads */ 767c478bd9Sstevel@tonic-gate uint_t bwrite; /* physical block writes (sync+async) */ 777c478bd9Sstevel@tonic-gate uint_t lread; /* logical block reads */ 787c478bd9Sstevel@tonic-gate uint_t lwrite; /* logical block writes */ 797c478bd9Sstevel@tonic-gate uint_t phread; /* raw I/O reads */ 807c478bd9Sstevel@tonic-gate uint_t phwrite; /* raw I/O writes */ 817c478bd9Sstevel@tonic-gate uint_t pswitch; /* context switches */ 827c478bd9Sstevel@tonic-gate uint_t trap; /* traps */ 837c478bd9Sstevel@tonic-gate uint_t intr; /* device interrupts */ 847c478bd9Sstevel@tonic-gate uint_t syscall; /* system calls */ 857c478bd9Sstevel@tonic-gate uint_t sysread; /* read() + readv() system calls */ 867c478bd9Sstevel@tonic-gate uint_t syswrite; /* write() + writev() system calls */ 877c478bd9Sstevel@tonic-gate uint_t sysfork; /* forks */ 887c478bd9Sstevel@tonic-gate uint_t sysvfork; /* vforks */ 897c478bd9Sstevel@tonic-gate uint_t sysexec; /* execs */ 907c478bd9Sstevel@tonic-gate uint_t readch; /* bytes read by rdwr() */ 917c478bd9Sstevel@tonic-gate uint_t writech; /* bytes written by rdwr() */ 927c478bd9Sstevel@tonic-gate uint_t rcvint; /* XXX: UNUSED */ 937c478bd9Sstevel@tonic-gate uint_t xmtint; /* XXX: UNUSED */ 947c478bd9Sstevel@tonic-gate uint_t mdmint; /* XXX: UNUSED */ 957c478bd9Sstevel@tonic-gate uint_t rawch; /* terminal input characters */ 967c478bd9Sstevel@tonic-gate uint_t canch; /* chars handled in canonical mode */ 977c478bd9Sstevel@tonic-gate uint_t outch; /* terminal output characters */ 987c478bd9Sstevel@tonic-gate uint_t msg; /* msg count (msgrcv()+msgsnd() calls) */ 997c478bd9Sstevel@tonic-gate uint_t sema; /* semaphore ops count (semop() calls) */ 1007c478bd9Sstevel@tonic-gate uint_t namei; /* pathname lookups */ 1017c478bd9Sstevel@tonic-gate uint_t ufsiget; /* ufs_iget() calls */ 1027c478bd9Sstevel@tonic-gate uint_t ufsdirblk; /* directory blocks read */ 1037c478bd9Sstevel@tonic-gate uint_t ufsipage; /* inodes taken with attached pages */ 1047c478bd9Sstevel@tonic-gate uint_t ufsinopage; /* inodes taked with no attached pages */ 1057c478bd9Sstevel@tonic-gate uint_t inodeovf; /* inode table overflows */ 1067c478bd9Sstevel@tonic-gate uint_t fileovf; /* file table overflows */ 1077c478bd9Sstevel@tonic-gate uint_t procovf; /* proc table overflows */ 1087c478bd9Sstevel@tonic-gate uint_t intrthread; /* interrupts as threads (below clock) */ 1097c478bd9Sstevel@tonic-gate uint_t intrblk; /* intrs blkd/prempted/released (swtch) */ 1107c478bd9Sstevel@tonic-gate uint_t idlethread; /* times idle thread scheduled */ 1117c478bd9Sstevel@tonic-gate uint_t inv_swtch; /* involuntary context switches */ 1127c478bd9Sstevel@tonic-gate uint_t nthreads; /* thread_create()s */ 1137c478bd9Sstevel@tonic-gate uint_t cpumigrate; /* cpu migrations by threads */ 1147c478bd9Sstevel@tonic-gate uint_t xcalls; /* xcalls to other cpus */ 1157c478bd9Sstevel@tonic-gate uint_t mutex_adenters; /* failed mutex enters (adaptive) */ 1167c478bd9Sstevel@tonic-gate uint_t rw_rdfails; /* rw reader failures */ 1177c478bd9Sstevel@tonic-gate uint_t rw_wrfails; /* rw writer failures */ 1187c478bd9Sstevel@tonic-gate uint_t modload; /* times loadable module loaded */ 1197c478bd9Sstevel@tonic-gate uint_t modunload; /* times loadable module unloaded */ 1207c478bd9Sstevel@tonic-gate uint_t bawrite; /* physical block writes (async) */ 1217c478bd9Sstevel@tonic-gate /* Following are gathered only under #ifdef STATISTICS in source */ 1227c478bd9Sstevel@tonic-gate uint_t rw_enters; /* tries to acquire rw lock */ 1237c478bd9Sstevel@tonic-gate uint_t win_uo_cnt; /* reg window user overflows */ 1247c478bd9Sstevel@tonic-gate uint_t win_uu_cnt; /* reg window user underflows */ 1257c478bd9Sstevel@tonic-gate uint_t win_so_cnt; /* reg window system overflows */ 1267c478bd9Sstevel@tonic-gate uint_t win_su_cnt; /* reg window system underflows */ 1277c478bd9Sstevel@tonic-gate uint_t win_suo_cnt; /* reg window system user overflows */ 1287c478bd9Sstevel@tonic-gate } cpu_sysinfo_t; 1297c478bd9Sstevel@tonic-gate 1307c478bd9Sstevel@tonic-gate typedef struct sysinfo { /* (update freq) update action */ 1317c478bd9Sstevel@tonic-gate uint_t updates; /* (1 sec) ++ */ 1327c478bd9Sstevel@tonic-gate uint_t runque; /* (1 sec) += num runnable procs */ 1337c478bd9Sstevel@tonic-gate uint_t runocc; /* (1 sec) ++ if num runnable procs > 0 */ 1347c478bd9Sstevel@tonic-gate uint_t swpque; /* (1 sec) += num swapped procs */ 1357c478bd9Sstevel@tonic-gate uint_t swpocc; /* (1 sec) ++ if num swapped procs > 0 */ 1367c478bd9Sstevel@tonic-gate uint_t waiting; /* (1 sec) += jobs waiting for I/O */ 1377c478bd9Sstevel@tonic-gate } sysinfo_t; 1387c478bd9Sstevel@tonic-gate 1397c478bd9Sstevel@tonic-gate typedef struct cpu_syswait { 1407c478bd9Sstevel@tonic-gate int iowait; /* procs waiting for block I/O */ 1417c478bd9Sstevel@tonic-gate int swap; /* XXX: UNUSED */ 1427c478bd9Sstevel@tonic-gate int physio; /* XXX: UNUSED */ 1437c478bd9Sstevel@tonic-gate } cpu_syswait_t; 1447c478bd9Sstevel@tonic-gate 1457c478bd9Sstevel@tonic-gate typedef struct cpu_vminfo { 1467c478bd9Sstevel@tonic-gate uint_t pgrec; /* page reclaims (includes pageout) */ 1477c478bd9Sstevel@tonic-gate uint_t pgfrec; /* page reclaims from free list */ 1487c478bd9Sstevel@tonic-gate uint_t pgin; /* pageins */ 1497c478bd9Sstevel@tonic-gate uint_t pgpgin; /* pages paged in */ 1507c478bd9Sstevel@tonic-gate uint_t pgout; /* pageouts */ 1517c478bd9Sstevel@tonic-gate uint_t pgpgout; /* pages paged out */ 1527c478bd9Sstevel@tonic-gate uint_t swapin; /* swapins */ 1537c478bd9Sstevel@tonic-gate uint_t pgswapin; /* pages swapped in */ 1547c478bd9Sstevel@tonic-gate uint_t swapout; /* swapouts */ 1557c478bd9Sstevel@tonic-gate uint_t pgswapout; /* pages swapped out */ 1567c478bd9Sstevel@tonic-gate uint_t zfod; /* pages zero filled on demand */ 1577c478bd9Sstevel@tonic-gate uint_t dfree; /* pages freed by daemon or auto */ 1587c478bd9Sstevel@tonic-gate uint_t scan; /* pages examined by pageout daemon */ 1597c478bd9Sstevel@tonic-gate uint_t rev; /* revolutions of the page daemon hand */ 1607c478bd9Sstevel@tonic-gate uint_t hat_fault; /* minor page faults via hat_fault() */ 1617c478bd9Sstevel@tonic-gate uint_t as_fault; /* minor page faults via as_fault() */ 1627c478bd9Sstevel@tonic-gate uint_t maj_fault; /* major page faults */ 1637c478bd9Sstevel@tonic-gate uint_t cow_fault; /* copy-on-write faults */ 1647c478bd9Sstevel@tonic-gate uint_t prot_fault; /* protection faults */ 1657c478bd9Sstevel@tonic-gate uint_t softlock; /* faults due to software locking req */ 1667c478bd9Sstevel@tonic-gate uint_t kernel_asflt; /* as_fault()s in kernel addr space */ 1677c478bd9Sstevel@tonic-gate uint_t pgrrun; /* times pager scheduled */ 1687c478bd9Sstevel@tonic-gate uint_t execpgin; /* executable pages paged in */ 1697c478bd9Sstevel@tonic-gate uint_t execpgout; /* executable pages paged out */ 1707c478bd9Sstevel@tonic-gate uint_t execfree; /* executable pages freed */ 1717c478bd9Sstevel@tonic-gate uint_t anonpgin; /* anon pages paged in */ 1727c478bd9Sstevel@tonic-gate uint_t anonpgout; /* anon pages paged out */ 1737c478bd9Sstevel@tonic-gate uint_t anonfree; /* anon pages freed */ 1747c478bd9Sstevel@tonic-gate uint_t fspgin; /* fs pages paged in */ 1757c478bd9Sstevel@tonic-gate uint_t fspgout; /* fs pages paged out */ 1767c478bd9Sstevel@tonic-gate uint_t fsfree; /* fs pages free */ 1777c478bd9Sstevel@tonic-gate } cpu_vminfo_t; 1787c478bd9Sstevel@tonic-gate 1797c478bd9Sstevel@tonic-gate typedef struct vminfo { /* (update freq) update action */ 1807c478bd9Sstevel@tonic-gate uint64_t freemem; /* (1 sec) += freemem in pages */ 1817c478bd9Sstevel@tonic-gate uint64_t swap_resv; /* (1 sec) += reserved swap in pages */ 1827c478bd9Sstevel@tonic-gate uint64_t swap_alloc; /* (1 sec) += allocated swap in pages */ 1837c478bd9Sstevel@tonic-gate uint64_t swap_avail; /* (1 sec) += unreserved swap in pages */ 1847c478bd9Sstevel@tonic-gate uint64_t swap_free; /* (1 sec) += unallocated swap in pages */ 185*c65c9cdcSDonghai Qiao uint64_t updates; /* (1 sec) ++ */ 1867c478bd9Sstevel@tonic-gate } vminfo_t; 1877c478bd9Sstevel@tonic-gate 1887c478bd9Sstevel@tonic-gate typedef struct cpu_stat { 1897c478bd9Sstevel@tonic-gate uint_t __cpu_stat_lock[2]; /* 32-bit kstat compat. */ 1907c478bd9Sstevel@tonic-gate cpu_sysinfo_t cpu_sysinfo; 1917c478bd9Sstevel@tonic-gate cpu_syswait_t cpu_syswait; 1927c478bd9Sstevel@tonic-gate cpu_vminfo_t cpu_vminfo; 1937c478bd9Sstevel@tonic-gate } cpu_stat_t; 1947c478bd9Sstevel@tonic-gate 1957c478bd9Sstevel@tonic-gate typedef struct cpu_sys_stats { 1967c478bd9Sstevel@tonic-gate uint64_t cpu_ticks_idle; /* CPU utilization */ 1977c478bd9Sstevel@tonic-gate uint64_t cpu_ticks_user; 1987c478bd9Sstevel@tonic-gate uint64_t cpu_ticks_kernel; 1997c478bd9Sstevel@tonic-gate uint64_t cpu_ticks_wait; 2007c478bd9Sstevel@tonic-gate uint64_t wait_ticks_io; /* CPU wait time breakdown */ 2017c478bd9Sstevel@tonic-gate uint64_t bread; /* physical block reads */ 2027c478bd9Sstevel@tonic-gate uint64_t bwrite; /* physical block writes (sync+async) */ 2037c478bd9Sstevel@tonic-gate uint64_t lread; /* logical block reads */ 2047c478bd9Sstevel@tonic-gate uint64_t lwrite; /* logical block writes */ 2057c478bd9Sstevel@tonic-gate uint64_t phread; /* raw I/O Reads */ 2067c478bd9Sstevel@tonic-gate uint64_t phwrite; /* raw I/O writes */ 2077c478bd9Sstevel@tonic-gate uint64_t pswitch; /* context switches */ 2087c478bd9Sstevel@tonic-gate uint64_t trap; /* traps */ 2097c478bd9Sstevel@tonic-gate uint64_t intr[PIL_MAX]; /* device interrupts per PIL */ 2107c478bd9Sstevel@tonic-gate uint64_t syscall; /* system calls */ 2117c478bd9Sstevel@tonic-gate uint64_t sysread; /* read() + readv() system calls */ 2127c478bd9Sstevel@tonic-gate uint64_t syswrite; /* write() + writev() system calls */ 2137c478bd9Sstevel@tonic-gate uint64_t sysfork; /* forks */ 2147c478bd9Sstevel@tonic-gate uint64_t sysvfork; /* vforks */ 2157c478bd9Sstevel@tonic-gate uint64_t sysexec; /* execs */ 2167c478bd9Sstevel@tonic-gate uint64_t readch; /* bytes read by rdwr() */ 2177c478bd9Sstevel@tonic-gate uint64_t writech; /* bytes written by rdwr() */ 2187c478bd9Sstevel@tonic-gate uint64_t rcvint; /* XXX: unused (mostly) */ 2197c478bd9Sstevel@tonic-gate uint64_t xmtint; /* XXX: unused */ 2207c478bd9Sstevel@tonic-gate uint64_t mdmint; /* XXX: unused */ 2217c478bd9Sstevel@tonic-gate uint64_t rawch; /* terminal input characters */ 2227c478bd9Sstevel@tonic-gate uint64_t canch; /* chars handled in canonical mode */ 2237c478bd9Sstevel@tonic-gate uint64_t outch; /* terminal output characters */ 2247c478bd9Sstevel@tonic-gate uint64_t msg; /* msg count (msgrcv() + msgsnd()) */ 2257c478bd9Sstevel@tonic-gate uint64_t sema; /* semaphore ops count (semop()) */ 2267c478bd9Sstevel@tonic-gate uint64_t namei; /* pathname lookups */ 2277c478bd9Sstevel@tonic-gate uint64_t ufsiget; /* ufs_iget() calls */ 2287c478bd9Sstevel@tonic-gate uint64_t ufsdirblk; /* directory blocks read */ 2297c478bd9Sstevel@tonic-gate uint64_t ufsipage; /* inodes taken with attached pages */ 2307c478bd9Sstevel@tonic-gate uint64_t ufsinopage; /* inodes taken with no attached pgs */ 2317c478bd9Sstevel@tonic-gate uint64_t procovf; /* failed forks */ 2327c478bd9Sstevel@tonic-gate uint64_t intrblk; /* ints blkd/prempted/rel'd (swtch) */ 2337c478bd9Sstevel@tonic-gate uint64_t intrunpin; /* intr thread unpins pinned thread */ 2347c478bd9Sstevel@tonic-gate uint64_t idlethread; /* times idle thread scheduled */ 2357c478bd9Sstevel@tonic-gate uint64_t inv_swtch; /* involuntary context switches */ 2367c478bd9Sstevel@tonic-gate uint64_t nthreads; /* thread_create()s */ 2377c478bd9Sstevel@tonic-gate uint64_t cpumigrate; /* cpu migrations by threads */ 2387c478bd9Sstevel@tonic-gate uint64_t xcalls; /* xcalls to other cpus */ 2397c478bd9Sstevel@tonic-gate uint64_t mutex_adenters; /* failed mutex enters (adaptive) */ 2407c478bd9Sstevel@tonic-gate uint64_t rw_rdfails; /* rw reader failures */ 2417c478bd9Sstevel@tonic-gate uint64_t rw_wrfails; /* rw writer failures */ 2427c478bd9Sstevel@tonic-gate uint64_t modload; /* times loadable module loaded */ 2437c478bd9Sstevel@tonic-gate uint64_t modunload; /* times loadable module unloaded */ 2447c478bd9Sstevel@tonic-gate uint64_t bawrite; /* physical block writes (async) */ 2457c478bd9Sstevel@tonic-gate uint64_t iowait; /* count of waiters for block I/O */ 2467c478bd9Sstevel@tonic-gate } cpu_sys_stats_t; 2477c478bd9Sstevel@tonic-gate 2487c478bd9Sstevel@tonic-gate typedef struct cpu_vm_stats { 2497c478bd9Sstevel@tonic-gate uint64_t pgrec; /* page reclaims (includes pageout) */ 2507c478bd9Sstevel@tonic-gate uint64_t pgfrec; /* page reclaims from free list */ 2517c478bd9Sstevel@tonic-gate uint64_t pgin; /* pageins */ 2527c478bd9Sstevel@tonic-gate uint64_t pgpgin; /* pages paged in */ 2537c478bd9Sstevel@tonic-gate uint64_t pgout; /* pageouts */ 2547c478bd9Sstevel@tonic-gate uint64_t pgpgout; /* pages paged out */ 2557c478bd9Sstevel@tonic-gate uint64_t swapin; /* swapins */ 2567c478bd9Sstevel@tonic-gate uint64_t pgswapin; /* pages swapped in */ 2577c478bd9Sstevel@tonic-gate uint64_t swapout; /* swapouts */ 2587c478bd9Sstevel@tonic-gate uint64_t pgswapout; /* pages swapped out */ 2597c478bd9Sstevel@tonic-gate uint64_t zfod; /* pages zero filled on demand */ 2607c478bd9Sstevel@tonic-gate uint64_t dfree; /* pages freed by daemon or auto */ 2617c478bd9Sstevel@tonic-gate uint64_t scan; /* pages examined by pageout daemon */ 2627c478bd9Sstevel@tonic-gate uint64_t rev; /* revolutions of page daemon hand */ 2637c478bd9Sstevel@tonic-gate uint64_t hat_fault; /* minor page faults via hat_fault() */ 2647c478bd9Sstevel@tonic-gate uint64_t as_fault; /* minor page faults via as_fault() */ 2657c478bd9Sstevel@tonic-gate uint64_t maj_fault; /* major page faults */ 2667c478bd9Sstevel@tonic-gate uint64_t cow_fault; /* copy-on-write faults */ 2677c478bd9Sstevel@tonic-gate uint64_t prot_fault; /* protection faults */ 2687c478bd9Sstevel@tonic-gate uint64_t softlock; /* faults due to software locking req */ 2697c478bd9Sstevel@tonic-gate uint64_t kernel_asflt; /* as_fault()s in kernel addr space */ 2707c478bd9Sstevel@tonic-gate uint64_t pgrrun; /* times pager scheduled */ 2717c478bd9Sstevel@tonic-gate uint64_t execpgin; /* executable pages paged in */ 2727c478bd9Sstevel@tonic-gate uint64_t execpgout; /* executable pages paged out */ 2737c478bd9Sstevel@tonic-gate uint64_t execfree; /* executable pages freed */ 2747c478bd9Sstevel@tonic-gate uint64_t anonpgin; /* anon pages paged in */ 2757c478bd9Sstevel@tonic-gate uint64_t anonpgout; /* anon pages paged out */ 2767c478bd9Sstevel@tonic-gate uint64_t anonfree; /* anon pages freed */ 2777c478bd9Sstevel@tonic-gate uint64_t fspgin; /* fs pages paged in */ 2787c478bd9Sstevel@tonic-gate uint64_t fspgout; /* fs pages paged out */ 2797c478bd9Sstevel@tonic-gate uint64_t fsfree; /* fs pages free */ 2807c478bd9Sstevel@tonic-gate } cpu_vm_stats_t; 2817c478bd9Sstevel@tonic-gate 2827c478bd9Sstevel@tonic-gate typedef struct cpu_stats { 2837c478bd9Sstevel@tonic-gate cpu_sys_stats_t sys; 2847c478bd9Sstevel@tonic-gate cpu_vm_stats_t vm; 2857c478bd9Sstevel@tonic-gate } cpu_stats_t; 2867c478bd9Sstevel@tonic-gate 2877c478bd9Sstevel@tonic-gate #ifdef __cplusplus 2887c478bd9Sstevel@tonic-gate } 2897c478bd9Sstevel@tonic-gate #endif 2907c478bd9Sstevel@tonic-gate 2917c478bd9Sstevel@tonic-gate #endif /* _SYS_SYSINFO_H */ 292