CohereSim: A Bus-based Cache Simulator  v3.3
A tool for education in computing - learn about coherence protocols, replacement policies, and SMP vs DSM
Macros | Functions
run_modes.cc File Reference

Implementation of the three modes of operation: Single Metrics, Batch Metrics, and Interactive. More...

#include <barrier>
#include <csignal>
#include <fstream>
#include <mutex>
#include <thread>
#include "main.h"
#include "memory_system.h"
#include "interactive_mode_coherence.h"
#include "interactive_mode_replacer.h"
Include dependency graph for run_modes.cc:

Macros

#define N_TRACE_BUF   1000000
 The number of traces to buffer at a time.
 

Functions

void runBatchMetrics (int argc, char *argv[])
 Run the program in batch mode. More...
 
void runSingleMetrics (int argc, char *argv[])
 Process a trace file from a single config run (config from cmd args) More...
 
void runInteractiveMode (char *name_of_showcased)
 Run the program in interactive mode (aka interactive mode) More...
 

Detailed Description

Implementation of the three modes of operation: Single Metrics, Batch Metrics, and Interactive.

Function Documentation

◆ runBatchMetrics()

void runBatchMetrics ( int  argc,
char *  argv[] 
)

Run the program in batch mode.

Parameters
argcThe number of command line arguments
argvAn array to the command line arguments

◆ runInteractiveMode()

void runInteractiveMode ( char *  name_of_showcased)

Run the program in interactive mode (aka interactive mode)

Parameters
name_of_showcasedThe selected policy/protocol

◆ runSingleMetrics()

void runSingleMetrics ( int  argc,
char *  argv[] 
)

Process a trace file from a single config run (config from cmd args)

Parameters
argcThe number of program arguments
argvThe array of program arguments