ROSS
st-stats-buffer.c File Reference
#include <ross.h>
#include <time.h>
#include <sys/stat.h>

Go to the source code of this file.

Functions

void st_buffer_allocate ()
void st_buffer_init (int type)
void st_buffer_push (int type, char *data, int size)
void st_buffer_write (int end_of_sim, int type)
void st_buffer_finalize (int type)

Variables

static long missed_bytes = 0
static MPI_Offset * prev_offsets = NULL
static MPI_File * buffer_fh = NULL
char stats_directory [INST_MAX_LENGTH]
int g_st_buffer_size = 8000000
int g_st_buffer_free_percent = 15
static int buffer_overflow_warned = 0
static const char * file_suffix [NUM_COL_TYPES]
FILE * seq_ev_trace
FILE * seq_model
FILE * seq_analysis
static st_stats_buffer ** g_st_buffer

Function Documentation

◆ st_buffer_allocate()

◆ st_buffer_finalize()

void st_buffer_finalize ( int type)

Definition at line 200 of file st-stats-buffer.c.

References buffer_fh, g_st_disable_out, g_tw_mynode, missed_bytes, and st_buffer_write().

Referenced by st_inst_finalize().

◆ st_buffer_init()

◆ st_buffer_push()

◆ st_buffer_write()

Variable Documentation

◆ buffer_fh

MPI_File* buffer_fh = NULL
static

◆ buffer_overflow_warned

int buffer_overflow_warned = 0
static

Definition at line 11 of file st-stats-buffer.c.

Referenced by st_buffer_push(), and st_buffer_write().

◆ file_suffix

const char* file_suffix[NUM_COL_TYPES]
static

Definition at line 12 of file st-stats-buffer.c.

Referenced by st_buffer_init().

◆ g_st_buffer

st_stats_buffer** g_st_buffer
static

◆ g_st_buffer_free_percent

int g_st_buffer_free_percent = 15

Definition at line 10 of file st-stats-buffer.c.

Referenced by st_buffer_write().

◆ g_st_buffer_size

int g_st_buffer_size = 8000000

Definition at line 9 of file st-stats-buffer.c.

Referenced by st_buffer_init(), and st_buffer_write().

◆ missed_bytes

long missed_bytes = 0
static

Definition at line 5 of file st-stats-buffer.c.

Referenced by st_buffer_finalize(), and st_buffer_push().

◆ prev_offsets

MPI_Offset* prev_offsets = NULL
static

Definition at line 6 of file st-stats-buffer.c.

Referenced by st_buffer_allocate(), and st_buffer_write().

◆ seq_analysis

FILE * seq_analysis

Definition at line 13 of file st-stats-buffer.c.

◆ seq_ev_trace

FILE* seq_ev_trace

Definition at line 13 of file st-stats-buffer.c.

Referenced by st_buffer_init(), and st_collect_event_data().

◆ seq_model

FILE * seq_model

Definition at line 13 of file st-stats-buffer.c.

◆ stats_directory

char stats_directory[INST_MAX_LENGTH]

Definition at line 8 of file st-stats-buffer.c.

Referenced by st_buffer_allocate(), and st_buffer_init().