-#ifndef TRACEFILE_H
-#define TRACEFILE_H
+#ifndef TRACE_H
+#define TRACE_H
#include <ltt/ltt.h>
/* The characteristics of the system on which the trace was obtained
is described in a LttSystemDescription structure. */
-typedef struct _LttSystemDescription {
+struct _LttSystemDescription {
char *description;
char *node_name;
- char *domainname;
+ char *domain_name;
unsigned nb_cpu;
LttArchSize size;
LttArchEndian endian;
unsigned ltt_block_size;
LttTime trace_start;
LttTime trace_end;
-} LttSystemDescription;
+};
-LttSystemDescription *ltt_trace_system_description(LttTrace *t)
+LttSystemDescription *ltt_trace_system_description(LttTrace *t);
/* Functions to discover the facilities in the trace. Once the number
LttTracefile *ltt_trace_per_cpu_tracefile_get(LttTrace *t, unsigned i);
+/* Get the start time and end time of the trace */
+
+void ltt_trace_time_span_get(LttTrace *t, LttTime *start, LttTime *end);
+
+
/* Get the name of a tracefile */
char *ltt_tracefile_name(LttTracefile *tf);
+/* Get the number of blocks in the tracefile */
+
+unsigned ltt_tracefile_block_number(LttTracefile *tf);
+
+
/* Seek to the first event of the trace with time larger or equal to time */
void ltt_tracefile_seek_time(LttTracefile *t, LttTime time);
+/* Seek to the first event with position equal or larger to ep */
+
+void ltt_tracefile_seek_position(LttTracefile *t,
+ LttEventPosition *ep);
/* Read the next event */