/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include "rstat.h"
#define FSHIFT 8 /* bits to right of fixed binary point */
#define FSCALE (1<<FSHIFT)
bool_t
xdr_rstat_timeval (XDR *xdrs, rstat_timeval *objp)
{
register int32_t *buf;
if (!xdr_u_int (xdrs, &objp->tv_sec))
return FALSE;
if (!xdr_u_int (xdrs, &objp->tv_usec))
return FALSE;
return TRUE;
}
bool_t
xdr_statsusers (XDR *xdrs, statsusers *objp)
{
register int32_t *buf;
int i;
if (xdrs->x_op == XDR_ENCODE) {
buf = XDR_INLINE (xdrs, (10 + ( CPUSTATES + DK_NDRIVE + 3 )) * BYTES_PER_XDR_UNIT);
if (buf == NULL) {
if (!xdr_vector (xdrs, (char *)objp->cp_time, CPUSTATES,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->dk_xfer, DK_NDRIVE,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pgpgin))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pgpgout))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pswpin))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pswpout))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_intr))
return FALSE;
if (!xdr_int (xdrs, &objp->if_ipackets))
return FALSE;
if (!xdr_int (xdrs, &objp->if_ierrors))
return FALSE;
if (!xdr_int (xdrs, &objp->if_oerrors))
return FALSE;
if (!xdr_int (xdrs, &objp->if_collisions))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_swtch))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->avenrun, 3,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
} else {
{
register int *genp;
for (i = 0, genp = objp->cp_time;
i < CPUSTATES; ++i) {
IXDR_PUT_LONG(buf, *genp++);
}
}
{
register int *genp;
for (i = 0, genp = objp->dk_xfer;
i < DK_NDRIVE; ++i) {
IXDR_PUT_LONG(buf, *genp++);
}
}
IXDR_PUT_U_LONG(buf, objp->v_pgpgin);
IXDR_PUT_U_LONG(buf, objp->v_pgpgout);
IXDR_PUT_U_LONG(buf, objp->v_pswpin);
IXDR_PUT_U_LONG(buf, objp->v_pswpout);
IXDR_PUT_U_LONG(buf, objp->v_intr);
IXDR_PUT_LONG(buf, objp->if_ipackets);
IXDR_PUT_LONG(buf, objp->if_ierrors);
IXDR_PUT_LONG(buf, objp->if_oerrors);
IXDR_PUT_LONG(buf, objp->if_collisions);
IXDR_PUT_U_LONG(buf, objp->v_swtch);
{
register int *genp;
for (i = 0, genp = objp->avenrun;
i < 3; ++i) {
IXDR_PUT_LONG(buf, *genp++);
}
}
}
if (!xdr_rstat_timeval (xdrs, &objp->boottime))
return FALSE;
if (!xdr_rstat_timeval (xdrs, &objp->curtime))
return FALSE;
if (!xdr_int (xdrs, &objp->if_opackets))
return FALSE;
if (!xdr_u_int (xdrs, &objp->users))
return FALSE;
return TRUE;
} else if (xdrs->x_op == XDR_DECODE) {
buf = XDR_INLINE (xdrs, (10 + ( CPUSTATES + DK_NDRIVE + 3 )) * BYTES_PER_XDR_UNIT);
if (buf == NULL) {
if (!xdr_vector (xdrs, (char *)objp->cp_time, CPUSTATES,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->dk_xfer, DK_NDRIVE,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pgpgin))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pgpgout))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pswpin))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pswpout))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_intr))
return FALSE;
if (!xdr_int (xdrs, &objp->if_ipackets))
return FALSE;
if (!xdr_int (xdrs, &objp->if_ierrors))
return FALSE;
if (!xdr_int (xdrs, &objp->if_oerrors))
return FALSE;
if (!xdr_int (xdrs, &objp->if_collisions))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_swtch))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->avenrun, 3,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
} else {
{
register int *genp;
for (i = 0, genp = objp->cp_time;
i < CPUSTATES; ++i) {
*genp++ = IXDR_GET_LONG(buf);
}
}
{
register int *genp;
for (i = 0, genp = objp->dk_xfer;
i < DK_NDRIVE; ++i) {
*genp++ = IXDR_GET_LONG(buf);
}
}
objp->v_pgpgin = IXDR_GET_U_LONG(buf);
objp->v_pgpgout = IXDR_GET_U_LONG(buf);
objp->v_pswpin = IXDR_GET_U_LONG(buf);
objp->v_pswpout = IXDR_GET_U_LONG(buf);
objp->v_intr = IXDR_GET_U_LONG(buf);
objp->if_ipackets = IXDR_GET_LONG(buf);
objp->if_ierrors = IXDR_GET_LONG(buf);
objp->if_oerrors = IXDR_GET_LONG(buf);
objp->if_collisions = IXDR_GET_LONG(buf);
objp->v_swtch = IXDR_GET_U_LONG(buf);
{
register int *genp;
for (i = 0, genp = objp->avenrun;
i < 3; ++i) {
*genp++ = IXDR_GET_LONG(buf);
}
}
}
if (!xdr_rstat_timeval (xdrs, &objp->boottime))
return FALSE;
if (!xdr_rstat_timeval (xdrs, &objp->curtime))
return FALSE;
if (!xdr_int (xdrs, &objp->if_opackets))
return FALSE;
if (!xdr_u_int (xdrs, &objp->users))
return FALSE;
return TRUE;
}
if (!xdr_vector (xdrs, (char *)objp->cp_time, CPUSTATES,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->dk_xfer, DK_NDRIVE,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pgpgin))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pgpgout))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pswpin))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pswpout))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_intr))
return FALSE;
if (!xdr_int (xdrs, &objp->if_ipackets))
return FALSE;
if (!xdr_int (xdrs, &objp->if_ierrors))
return FALSE;
if (!xdr_int (xdrs, &objp->if_oerrors))
return FALSE;
if (!xdr_int (xdrs, &objp->if_collisions))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_swtch))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->avenrun, 3,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_rstat_timeval (xdrs, &objp->boottime))
return FALSE;
if (!xdr_rstat_timeval (xdrs, &objp->curtime))
return FALSE;
if (!xdr_int (xdrs, &objp->if_opackets))
return FALSE;
if (!xdr_u_int (xdrs, &objp->users))
return FALSE;
return TRUE;
}
bool_t
xdr_statsvar (XDR *xdrs, statsvar *objp)
{
register int32_t *buf;
int i;
if (xdrs->x_op == XDR_ENCODE) {
buf = XDR_INLINE (xdrs, (11 + ( CPUSTATES + DK_NDRIVE + 3 )) * BYTES_PER_XDR_UNIT);
if (buf == NULL) {
if (!xdr_vector (xdrs, (char *)objp->cp_time, CPUSTATES,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->dk_xfer, DK_NDRIVE,
sizeof (int), (xdrproc_t) xdr_int))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pgpgin))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pgpgout))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pswpin))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_pswpout))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_intr))
return FALSE;
if (!xdr_int (xdrs, &objp->if_ipackets))
return FALSE;
if (!xdr_int (xdrs, &objp->if_ierrors))
return FALSE;
if (!xdr_int (xdrs, &objp->if_opackets))
return FALSE;
if (!xdr_int (xdrs, &objp->if_oerrors))
return FALSE;
if (!xdr_int (xdrs, &objp->if_collisions))
return FALSE;
if (!xdr_u_int (xdrs, &objp->v_swtch))
return FALSE;
if (!xdr_vector (xdrs, (char *)objp->avenrun, 3,
sizeof (long), (xdrproc_t) xdr_long))
return FALSE;
} else {
{
register int *genp;
for (i = 0, genp = objp->cp_time;
i < CPUSTATES; ++i) {
IXDR_PUT_LONG(buf, *genp++);
}
}
{
register int *genp;
for (i = 0, genp = objp->dk_xfer;
i < DK_NDRIVE; ++i) {
IXDR_PUT_LONG(buf, *genp++);
}
}
IXDR_PUT_U_LONG(buf, objp->v_pgpgin);
IXDR_PUT_U_LONG(buf, objp->v_pgpgout);
IXDR_PUT_U_LONG(buf, objp->v_pswpin);
IXDR_PUT_U_LONG(buf, objp->v_pswpout);
IXDR_PUT_U_LONG(buf, objp->v_intr);
IXDR_PUT_LONG(buf, objp->if_ipackets);
IXDR_PUT_LONG(buf, objp->if_ierrors);
IXDR_PUT_LONG(buf, objp->if_opackets);
I
没有合适的资源?快使用搜索试试~ 我知道了~
rpc.rstatd linux监控工具
4星 · 超过85%的资源 需积分: 31 49 下载量 109 浏览量
2008-08-29
15:43:24
上传
评论
收藏 84KB GZ 举报
温馨提示
linux性能测试系统资源监控工具.......
资源推荐
资源详情
资源评论
收起资源包目录
rpc.rstatd-4.0.tar.gz (37个子文件)
rpc.rstatd-4.0
missing 6KB
getdata.h 1KB
getdata22.h 461B
getdata26.h 456B
rstat_proc.h 2KB
COPYING 18KB
rstat_clnt.c 4KB
rstatd.8 1KB
aclocal.m4 34KB
INSTALL 8KB
rstat.x 5KB
config.h 120B
config.h.in 78B
rpc.rstatd.8 18B
mkinstalldirs 724B
rup.1 2KB
rstat_proc.c 6KB
rstat_xdr.c 26KB
configure 158KB
ChangeLog 609B
install-sh 5KB
Makefile.in 24KB
depcomp 14KB
configure.in 859B
AUTHORS 153B
rsysinfo.c 6KB
getdata26.c 2KB
README 4KB
rup.c 9KB
rsysinfo.1 2KB
getdata.c 8KB
Makefile.am 1KB
rstat_svc.c 6KB
getdata24.c 2KB
getdata24.h 461B
getdata22.c 1KB
rstat_main.c 4KB
共 37 条
- 1
资源评论
- sacksack1232021-09-02make的时候提示出错
- pyhan_net2015-03-10还行,可以用
- gnipnehc2014-10-24实用工具,系统资源监控。
linkyou
- 粉丝: 585
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功