Motr  M0
crate_client.h File Reference
#include "fid/fid.h"
#include "motr/client.h"
#include "motr/m0crate/workload.h"
#include "motr/m0crate/crate_utils.h"
Include dependency graph for crate_client.h:

Go to the source code of this file.

Data Structures

struct  crate_conf
 
struct  m0_workload_index
 
struct  m0_workload_task
 
struct  cwi_global
 
struct  m0_workload_io
 
struct  cti_global
 
struct  m0_task_io
 

Macros

#define __MOTR_M0CRATE_CRATE_H__
 

Enumerations

enum  m0_operation_type { INDEX, IO }
 
enum  cr_opcode {
  CRATE_OP_PUT, CRATE_OP_GET, CRATE_OP_NEXT, CRATE_OP_DEL,
  CRATE_OP_TYPES, CRATE_OP_NR = CRATE_OP_TYPES, CRATE_OP_START = CRATE_OP_PUT, CRATE_OP_INVALID = CRATE_OP_TYPES
}
 
enum  m0_operations {
  CR_CREATE, CR_OPEN, CR_WRITE, CR_READ,
  CR_DELETE, CR_POPULATE, CR_CLEANUP, CR_READ_ONLY,
  CR_OPS_NR
}
 
enum  m0_operation_status { CR_OP_NEW, CR_OP_EXECUTING, CR_OP_COMPLETE }
 
enum  thread_operation { CR_WRITE_TO_SAME = 0, CR_WRITE_TO_DIFF }
 

Functions

int parse_crate (int argc, char **argv, struct workload *w)
 
void run (struct workload *w, struct workload_task *task)
 
void m0_op_run (struct workload *w, struct workload_task *task, const struct workload_op *op)
 
void run_index (struct workload *w, struct workload_task *tasks)
 
void m0_op_run_index (struct workload *w, struct workload_task *task, const struct workload_op *op)
 

Macro Definition Documentation

◆ __MOTR_M0CRATE_CRATE_H__

#define __MOTR_M0CRATE_CRATE_H__

Definition at line 26 of file crate_client.h.