/* @(#)rstat.x 2.2 88/08/01 4.0 RPCSRC */
/* @(#)rstat.x 1.2 87/09/18 Copyr 1987 Sun Micro */
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
* media and as a part of the software program in whole or part. Users
* may copy or modify Sun RPC without charge, but are not authorized
* to license or distribute it to anyone else except as part of a product or
* program developed by the user.
* SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
* WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
* PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
* Sun RPC is provided with no support and without any obligation on the
* part of Sun Microsystems, Inc. to assist in its use, correction,
* modification or enhancement.
* SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
* INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
* In no event will Sun Microsystems, Inc. be liable for any lost revenue
* or profits or other special, indirect and consequential damages, even if
* Sun has been advised of the possibility of such damages.
* Mountain View, California 94043
* Gather statistics on remote machines
% * Scale factor for scaled integers used to count load averages.
%#define FSHIFT 8 /* bits to right of fixed binary point */
%#define FSCALE (1<<FSHIFT)
%#endif /* ndef FSCALE */
* GMT since 0:00, January 1, 1970
unsigned int tv_sec; /* seconds */
unsigned int tv_usec; /* and microseconds */
struct statstime { /* RSTATVERS_TIME */
unsigned int v_pgpgin; /* these are cumulative sum */
int avenrun[3]; /* scaled by FSCALE */
struct statsswtch { /* RSTATVERS_SWTCH */
unsigned int v_pgpgin; /* these are cumulative sum */
unsigned int avenrun[3];/* scaled by FSCALE */
struct stats { /* RSTATVERS_ORIG */
unsigned int v_pgpgin; /* these are cumulative sum */
* Newest version includes current time and context switching info
RSTATPROC_STATS(void) = 1;
RSTATPROC_HAVEDISK(void) = 2;
* Does not have current time
version RSTATVERS_SWTCH {
RSTATPROC_STATS(void) = 1;
RSTATPROC_HAVEDISK(void) = 2;
* Old version has no info about current time or context switching
RSTATPROC_STATS(void) = 1;
RSTATPROC_HAVEDISK(void) = 2;