Motr  M0
Crate_workload

Data Structures

struct  workload
 
struct  workload_task
 
struct  workload_op
 
struct  workload_type_ops
 

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)
 

Detailed Description

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CR_WORKLOAD_MAX 
CR_CSUM_DEV_MAX 

Definition at line 49 of file workload.h.

◆ cr_workload_type

Enumerator
CWT_HPCS 
CWT_CSUM 
CWT_IO 
CWT_INDEX 
CWT_NR 

Definition at line 54 of file workload.h.

◆ csum_op_type

Enumerator
COT_READ 
COT_WRITE 
COT_NR 

Definition at line 121 of file workload.h.

◆ swab_type

enum swab_type
Enumerator
ST_NONE 
ST_32 
ST_32W 
ST_64 
ST_64W 
ST_NR 

Definition at line 63 of file workload.h.

Function Documentation

◆ workload_init()

int workload_init ( struct workload w,
enum cr_workload_type  wtype 
)

Definition at line 216 of file crate.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ workload_join()

void workload_join ( struct workload w,
struct workload_task task 
)

Definition at line 363 of file crate.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ workload_start()

void workload_start ( struct workload w,
struct workload_task task 
)

Definition at line 340 of file crate.c.

Here is the call graph for this function:
Here is the caller graph for this function: