litl  0.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Functions
litl_read.c File Reference
#include <stdlib.h>
#include <sys/stat.h>
#include <math.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include "litl_tools.h"
#include "litl_read.h"

Go to the source code of this file.

Functions

litl_read_trace_tlitl_read_open_trace (const char *filename)
 Opens a trace and reads the first portion of data (trace header) to the buffer. More...
 
void litl_read_init_processes (litl_read_trace_t *trace)
 Initializes the event reading structure. More...
 
litl_general_header_tlitl_read_get_trace_header (litl_read_trace_t *trace)
 Returns a pointer to the trace header. More...
 
litl_process_header_tlitl_read_get_process_header (litl_read_process_t *process)
 Returns a pointer to the process header. More...
 
void litl_read_set_buffer_size (litl_read_trace_t *trace, const litl_size_t buf_size)
 Sets the buffer size. More...
 
litl_size_t litl_read_get_buffer_size (litl_read_trace_t *trace)
 Returns the buffer size. More...
 
void litl_read_reset_process (litl_read_process_t *process)
 Resets the trace pointer. More...
 
litl_read_event_tlitl_read_next_process_event (litl_read_trace_t *trace, litl_read_process_t *process)
 Reads the next event from a trace. More...
 
litl_read_event_tlitl_read_next_event (litl_read_trace_t *trace)
 Reads the next event from a trace file. More...
 
void litl_read_finalize_trace (litl_read_trace_t *trace)
 Closes the trace and frees the allocated memory. More...