ContainerTracer  0.1
Data Structures | Macros | Typedefs | Enumerations | Functions
trace_replay.h File Reference
#include <stdio.h>
#include <libaio.h>
#include <flist.h>
Include dependency graph for trace_replay.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  io_stat_t
 
struct  trace_io_req
 
struct  trace_info_t
 
struct  thread_info_t
 
struct  io_job
 
struct  realtime_log
 
struct  realtime_msg
 
struct  trace
 
struct  config
 
struct  synthetic
 
struct  trace_stat
 
struct  trace_result
 
struct  aggr_result
 
struct  result
 
struct  total_results
 

Macros

#define USE_MAINWORKER   0
 
#define LINUX   0
 
#define TEST_OS   (LINUX)
 
#define KB   (1024)
 
#define MB   (1024 * 1024)
 
#define GB   (1024 * 1024 * 1024)
 
#define MAX_QDEPTH   (128 * 16)
 
#define MAX_THREADS   512
 
#define STR_SIZE   128
 
#define PAGE_SIZE   4096
 
#define SECTOR_SIZE   512
 
#define SPP   (PAGE_SIZE / SECTOR_SIZE)
 
#define MAX_BYTES   (1024 * 1024 * 1024)
 
#define PAGE_TO_MB(x)   (x * PAGE_SIZE / MB)
 
#define BASE_KEY_PATHNAME_LEN   PATH_MAX
 
#define MSGQ_KEY_PATHNAME   "/tmp/trace_replay_msgq"
 
#define SHM_KEY_PATHNAME   "/tmp/trace_replay_shm"
 
#define SEM_KEY_PATHNAME   "/tmp/trace_replay_sem"
 
#define PROJECT_ID   'M'
 
#define PROJECT_PERM   0640
 
#define _ASM_GENERIC_INT_LL64_H
 

Typedefs

typedef char __s8
 
typedef short __s16
 
typedef int __s32
 
typedef long long __s64
 
typedef unsigned char __u8
 
typedef unsigned short __u16
 
typedef unsigned int __u32
 
typedef unsigned long long __u64
 

Enumerations

enum  realtime_log_type { TIMEOUT = 0, WANTED_IO_COUNT, NONE, FIN }
 

Functions

long long get_total_bytes (int nr_trace, int nr_thread)
 
void synthetic_mix (struct trace_info_t *trace)
 

Macro Definition Documentation

◆ _ASM_GENERIC_INT_LL64_H

#define _ASM_GENERIC_INT_LL64_H

◆ BASE_KEY_PATHNAME_LEN

#define BASE_KEY_PATHNAME_LEN   PATH_MAX

◆ GB

#define GB   (1024 * 1024 * 1024)

◆ KB

#define KB   (1024)

◆ LINUX

#define LINUX   0

◆ MAX_BYTES

#define MAX_BYTES   (1024 * 1024 * 1024)

◆ MAX_QDEPTH

#define MAX_QDEPTH   (128 * 16)

◆ MAX_THREADS

#define MAX_THREADS   512

◆ MB

#define MB   (1024 * 1024)

◆ MSGQ_KEY_PATHNAME

#define MSGQ_KEY_PATHNAME   "/tmp/trace_replay_msgq"

◆ PAGE_SIZE

#define PAGE_SIZE   4096

◆ PAGE_TO_MB

#define PAGE_TO_MB (   x)    (x * PAGE_SIZE / MB)

◆ PROJECT_ID

#define PROJECT_ID   'M'

◆ PROJECT_PERM

#define PROJECT_PERM   0640

◆ SECTOR_SIZE

#define SECTOR_SIZE   512

◆ SEM_KEY_PATHNAME

#define SEM_KEY_PATHNAME   "/tmp/trace_replay_sem"

◆ SHM_KEY_PATHNAME

#define SHM_KEY_PATHNAME   "/tmp/trace_replay_shm"

◆ SPP

#define SPP   (PAGE_SIZE / SECTOR_SIZE)

◆ STR_SIZE

#define STR_SIZE   128

◆ TEST_OS

#define TEST_OS   (LINUX)

◆ USE_MAINWORKER

#define USE_MAINWORKER   0

Typedef Documentation

◆ __s16

typedef short __s16

◆ __s32

typedef int __s32

◆ __s64

typedef long long __s64

◆ __s8

typedef char __s8

◆ __u16

typedef unsigned short __u16

◆ __u32

typedef unsigned int __u32

◆ __u64

typedef unsigned long long __u64

◆ __u8

typedef unsigned char __u8

Enumeration Type Documentation

◆ realtime_log_type

Enumerator
TIMEOUT 
WANTED_IO_COUNT 
NONE 
FIN 

Function Documentation

◆ get_total_bytes()

long long get_total_bytes ( int  nr_trace,
int  nr_thread 
)

◆ synthetic_mix()

void synthetic_mix ( struct trace_info_t trace)
Here is the call graph for this function: