5 Star 14 Fork 0

Gitee 极速下载/sysstat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/sysstat/sysstat/releases
克隆/下载
cifsiostat.h 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
/*
* cifsiostat: Report CIFS statistics
* Copyright (C) 2010 Red Hat, Inc. All Rights Reserved
* Written by Ivana Varekova <varekova@redhat.com>
*/
#ifndef _CIFSIOSTAT_H
#define _CIFSIOSTAT_H
#include "common.h"
#define CIFSSTATS PRE "/proc/fs/cifs/Stats"
/* I_: cifsiostat - D_: Display - F_: Flag */
#define I_D_TIMESTAMP 0x001
#define I_D_KILOBYTES 0x002
#define I_D_MEGABYTES 0x004
#define I_D_ISO 0x008
#define I_D_PRETTY 0x010
#define I_D_DEBUG 0x020
#define I_D_UNIT 0x040
#define DISPLAY_TIMESTAMP(m) (((m) & I_D_TIMESTAMP) == I_D_TIMESTAMP)
#define DISPLAY_KILOBYTES(m) (((m) & I_D_KILOBYTES) == I_D_KILOBYTES)
#define DISPLAY_MEGABYTES(m) (((m) & I_D_MEGABYTES) == I_D_MEGABYTES)
#define DISPLAY_ISO(m) (((m) & I_D_ISO) == I_D_ISO)
#define DISPLAY_PRETTY(m) (((m) & I_D_PRETTY) == I_D_PRETTY)
#define DISPLAY_DEBUG(m) (((m) & I_D_DEBUG) == I_D_DEBUG)
#define DISPLAY_UNIT(m) (((m) & I_D_UNIT) == I_D_UNIT)
struct cifs_st {
unsigned long long rd_bytes __attribute__ ((aligned (8)));
unsigned long long wr_bytes __attribute__ ((packed));
unsigned long long rd_ops __attribute__ ((packed));
unsigned long long wr_ops __attribute__ ((packed));
unsigned long long fopens __attribute__ ((packed));
unsigned long long fcloses __attribute__ ((packed));
unsigned long long fdeletes __attribute__ ((packed));
};
#define CIFS_ST_SIZE (sizeof(struct cifs_st))
struct io_cifs {
char name[MAX_NAME_LEN];
int exist;
struct cifs_st *cifs_stats[2];
struct io_cifs *next;
};
#define IO_CIFS_SIZE (sizeof(struct io_cifs))
#endif /* _CIFSIOSTAT_H */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/sysstat.git
git@gitee.com:mirrors/sysstat.git
mirrors
sysstat
sysstat
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385