This program will intercept the output of gem5 and redirect the traces to a binary file.
More...
#include <endian.h>
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
|
|
#define | NCPU 16 |
| | The number of CPU cores in the current gem5 run (defined externally)
|
| |
|
| void | fprintfcomma (FILE *file, uint64_t n, int width) |
| | Like fprintf, but specifically for integers and with the standard thousands separator. More...
|
| |
| int | main (int argc, char const *argv[]) |
| | The main function intercepts the output of gem5, saving the memory traces to a binary file and memory operation statistics to a stat file. More...
|
| |
This program will intercept the output of gem5 and redirect the traces to a binary file.
◆ fprintfcomma()
| void fprintfcomma |
( |
FILE * |
file, |
|
|
uint64_t |
n, |
|
|
int |
width |
|
) |
| |
Like fprintf, but specifically for integers and with the standard thousands separator.
- Parameters
-
| file | The file to print to |
| n | The number to print to the file |
| width | The character width of the number, like the n in nd |
◆ main()
| int main |
( |
int |
argc, |
|
|
char const * |
argv[] |
|
) |
| |
The main function intercepts the output of gem5, saving the memory traces to a binary file and memory operation statistics to a stat file.
- Parameters
-
| argc | The number of command line arguments |
| argv | An array to the ocmmand line arguments |
- Returns
- The program exit code