Motr  M0
cc_cp_cat.c File Reference
#include <getopt.h>
#include "lib/memory.h"
#include "lib/trace.h"
#include "motr/client_internal.h"
#include "motr/st/utils/helper.h"
Include dependency graph for cc_cp_cat.c:

Go to the source code of this file.

Functions

static void writer_thread_launch (struct m0_cc_io_args *args)
 
static void reader_thread_launch (struct m0_cc_io_args *args)
 
static void mt_io (struct m0_thread *writer_t, struct m0_cc_io_args writer_args, struct m0_thread *reader_t, struct m0_cc_io_args reader_args, int writer_numb, int reader_numb)
 
static void usage (FILE *file, char *prog_name)
 
int main (int argc, char **argv)
 

Variables

static struct m0_clientinstance = NULL
 
static struct m0_container container
 
static struct m0_config conf
 
static struct m0_idx_dix_config dix_conf
 
static struct m0_cc_io_args writer_args
 
static struct m0_cc_io_args reader_args
 
struct m0_addb_ctx m0_addb_ctx
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 105 of file cc_cp_cat.c.

Here is the call graph for this function:

◆ mt_io()

static void mt_io ( struct m0_thread writer_t,
struct m0_cc_io_args  writer_args,
struct m0_thread reader_t,
struct m0_cc_io_args  reader_args,
int  writer_numb,
int  reader_numb 
)
static

Definition at line 52 of file cc_cp_cat.c.

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

◆ reader_thread_launch()

static void reader_thread_launch ( struct m0_cc_io_args args)
static

Definition at line 45 of file cc_cp_cat.c.

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

◆ usage()

static void usage ( FILE *  file,
char *  prog_name 
)
static

Definition at line 81 of file cc_cp_cat.c.

Here is the caller graph for this function:

◆ writer_thread_launch()

static void writer_thread_launch ( struct m0_cc_io_args args)
static

Definition at line 38 of file cc_cp_cat.c.

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

Variable Documentation

◆ conf

struct m0_config conf
static

Definition at line 31 of file cc_cp_cat.c.

◆ container

struct m0_container container
static

Definition at line 30 of file cc_cp_cat.c.

◆ dix_conf

struct m0_idx_dix_config dix_conf
static

Definition at line 32 of file cc_cp_cat.c.

◆ instance

struct m0_client* instance = NULL
static

Definition at line 29 of file cc_cp_cat.c.

◆ m0_addb_ctx

struct m0_addb_ctx m0_addb_ctx

◆ reader_args

struct m0_cc_io_args reader_args
static

Definition at line 34 of file cc_cp_cat.c.

◆ writer_args

struct m0_cc_io_args writer_args
static

Definition at line 33 of file cc_cp_cat.c.