1 Star 0 Fork 3

gaoxuelong / fio

forked from HoperunHarmony / fio 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
blktrace.h 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
董森浩 提交于 2022-08-08 15:05 . 原版fio3.30
#ifndef FIO_BLKTRACE_H
#define FIO_BLKTRACE_H
#ifdef FIO_HAVE_BLKTRACE
#include <asm/types.h>
#include "blktrace_api.h"
struct blktrace_cursor {
struct fifo *fifo; // fifo queue for reading
FILE *f; // blktrace file
__u64 length; // length of trace
struct blk_io_trace t; // current io trace
int swap; // bitwise reverse required
int scalar; // scale percentage
int iter; // current iteration
int nr_iter; // number of iterations to run
};
bool is_blktrace(const char *, int *);
bool init_blktrace_read(struct thread_data *, const char *, int);
bool read_blktrace(struct thread_data* td);
int merge_blktrace_iologs(struct thread_data *td);
#else
static inline bool is_blktrace(const char *fname, int *need_swap)
{
return false;
}
static inline bool init_blktrace_read(struct thread_data *td, const char *fname,
int need_swap)
{
return false;
}
static inline bool read_blktrace(struct thread_data* td)
{
return false;
}
static inline int merge_blktrace_iologs(struct thread_data *td)
{
return false;
}
#endif
#endif
1
https://gitee.com/gaoxuelong/fio.git
git@gitee.com:gaoxuelong/fio.git
gaoxuelong
fio
fio
master

搜索帮助