Motr  M0
st.c File Reference
#include "lib/trace.h"
#include "lib/memory.h"
#include "lib/assert.h"
#include "lib/types.h"
#include "lib/time.h"
#include "lib/misc.h"
#include "be/ut/helper.h"
#include "be/tool/common.h"
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for st.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE
 

Enumerations

enum  { BETOOL_ST_SEG_SIZE = 0x4000000, BETOOL_ST_TX_STEP = 0x400000, BETOOL_ST_CAPTURE_STEP = 0x20000, BETOOL_ST_CAPTURE_BLOCK = 0x1F000 }
 
enum  betool_st_event {
  BETOOL_ST_TIME_BEGIN, BETOOL_ST_TIME_TX_OPEN, BETOOL_ST_TIME_SEG_FILL, BETOOL_ST_TIME_TX_CAPTURE,
  BETOOL_ST_TIME_TX_CLOSE_WAIT, BETOOL_ST_TIME_END, BETOOL_ST_TIME_NR
}
 

Functions

int m0_betool_st_mkfs (void)
 
static void betool_st_data_check (struct m0_be_ut_backend *ut_be, struct m0_be_seg *seg, uint64_t *fill)
 
 M0_BASSERT (ARRAY_SIZE(betool_st_event_descr)==BETOOL_ST_TIME_NR)
 
static void betool_st_event_time (m0_time_t *time, enum betool_st_event event)
 
static void betool_st_event_time_print (m0_time_t *time, const char *info, uint64_t fill)
 
static void betool_st_data_write (struct m0_be_ut_backend *ut_be, struct m0_be_seg *seg, uint64_t fill, uint64_t fill_end)
 
int m0_betool_st_run (void)
 

Variables

static const char * betool_st_event_descr []