reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
trace_util.h File Reference

Header file for common utilities used in converting Lingua Franca trace files into other formats. More...

#include "reactor.h"
#include "trace.h"

Go to the source code of this file.

Macros

#define _LF_TRACE_FAILURE(trace_file)
 Macro to use when access to trace file fails.
#define BUFFER_SIZE   1024
 Buffer size for reading object descriptions.
#define LF_TRACE

Functions

char * get_object_description (void *reactor, int *index)
 Get the description of the object pointed to by the specified pointer.
char * get_trigger_name (void *trigger, int *index)
 Get the trigger name for the specified pointer.
FILE * open_file (const char *path, const char *mode)
 Open the specified file for reading or writing.
void print_table ()
 Print the object to description table.
size_t read_header ()
 Read header information.
int read_trace ()
 Read the trace from the trace_file and put it in the trace global variable.
char * root_name (const char *path)
 Return the root file name from the given path.
void usage ()
 Print a usage message.

Variables

object_description_tobject_table
int object_table_size
FILE * output_file
instant_t start_time
FILE * summary_file
char * top_level
trace_record_t trace []
const char * trace_event_names []
FILE * trace_file

Detailed Description

Header file for common utilities used in converting Lingua Franca trace files into other formats.

Author
Edward A. Lee

Macro Definition Documentation

◆ LF_TRACE

#define LF_TRACE

Variable Documentation

◆ object_table

object_description_t* object_table
extern

◆ object_table_size

int object_table_size
extern

◆ output_file

FILE* output_file
extern

◆ start_time

instant_t start_time
extern

◆ summary_file

FILE* summary_file
extern

◆ top_level

char* top_level
extern

◆ trace

trace_record_t trace[]
extern

◆ trace_event_names

const char* trace_event_names[]
extern

◆ trace_file

FILE* trace_file
extern