ROSS
Functions | Variables
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

void st_buffer_allocate ( )

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

References buffer_fh, g_st_engine_stats, g_st_ev_trace, g_st_model_stats, g_st_stats_path, g_st_use_analysis_lps, g_tw_masternode, g_tw_mynode, INST_MAX_LENGTH, MPI_COMM_ROSS, NUM_COL_TYPES, prev_offsets, stats_directory, tw_calloc(), and TW_LOC.

Referenced by tw_define_lps().

Here is the call graph for this function:

Here is the caller graph for this function:

void st_buffer_finalize ( int  type)

Definition at line 188 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().

Here is the call graph for this function:

Here is the caller graph for this function:

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 
)

Variable Documentation

MPI_File* buffer_fh = NULL
static
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().

const char* file_suffix[NUM_COL_TYPES]
static

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

Referenced by st_buffer_init().

st_stats_buffer** g_st_buffer
static

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

int g_st_buffer_free_percent = 15

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

Referenced by st_buffer_write().

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().

long missed_bytes = 0
static

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

Referenced by st_buffer_finalize(), and st_buffer_push().

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().

FILE * seq_analysis

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

Referenced by analysis_commit(), and st_buffer_init().

FILE* seq_ev_trace

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

Referenced by st_buffer_init(), and st_collect_event_data().

FILE * seq_model

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

Referenced by st_buffer_init(), and st_collect_model_data().

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().