Motr  M0
workload.h File Reference
#include <sys/param.h>
#include "lib/memory.h"
#include "motr/m0crate/crate_utils.h"
Include dependency graph for workload.h:

Go to the source code of this file.

Data Structures

struct  workload
 
struct  workload_task
 
struct  workload_op
 
struct  workload_type_ops
 

Macros

#define __MOTR_M0CRATE_WORKLOAD_H__
 

Enumerations

enum  { CR_WORKLOAD_MAX = 32, CR_CSUM_DEV_MAX = 8 }
 
enum  cr_workload_type {
  CWT_HPCS, CWT_CSUM, CWT_IO, CWT_INDEX,
  CWT_NR
}
 
enum  swab_type {
  ST_NONE = 0, ST_32 = 1, ST_32W = 2, ST_64 = 3,
  ST_64W = 4, ST_NR
}
 
enum  csum_op_type { COT_READ, COT_WRITE, COT_NR }
 

Functions

int workload_init (struct workload *w, enum cr_workload_type wtype)
 
void workload_start (struct workload *w, struct workload_task *task)
 
void workload_join (struct workload *w, struct workload_task *task)
 

Macro Definition Documentation

◆ __MOTR_M0CRATE_WORKLOAD_H__

#define __MOTR_M0CRATE_WORKLOAD_H__

Definition at line 26 of file workload.h.