multiple traces/tracefiles change
[lttv.git] / ltt / branches / poly / include / lttv / state.h
index bbebece0e0b9d4a88e261eff4bc3928a59183533..4205c27cf2fe107bb1c3df9f0bc5742c403bfded 100644 (file)
@@ -22,7 +22,7 @@
 #include <glib.h>
 #include <lttv/processTrace.h>
 
-/* The operating system state kept during the trace analysis
+/* The operating system state, kept during the trace analysis,
    contains a subset of the real operating system state, 
    sufficient for the analysis, and possibly organized quite differently.
 
@@ -64,7 +64,7 @@ void lttv_state_save_add_event_hooks(LttvTracesetState *self);
 
 void lttv_state_save_remove_event_hooks(LttvTracesetState *self);
 
-void lttv_state_restore_closest_state(LttvTracesetState *self, LttTime t);
+void lttv_state_traceset_seek_time_closest(LttvTracesetState *self, LttTime t);
 
 /* The LttvProcessState structure defines the current state for each process.
    A process can make system calls (in some rare cases nested) and receive
@@ -140,8 +140,9 @@ typedef struct _LttvProcessState {
   /* opened file descriptors, address map?... */
 } LttvProcessState;
 
-
+//FIXME : find by pid and birth time : both are necessary to be unique
 LttvProcessState *lttv_state_find_process(LttvTracefileState *tfs, guint pid);
+LttvProcessState *lttv_state_find_process_from_trace(LttvTraceState *ts, guint pid);
 
 
 /* The LttvTracesetState, LttvTraceState and LttvTracefileState types
@@ -182,6 +183,9 @@ struct _LttvTraceState {
   GQuark *syscall_names;
   GQuark *trap_names;
   GQuark *irq_names;
+  gboolean recompute_state_in_seek;
+  gboolean saved_state_ready;
+  gboolean saved_state_available;
 };
 
 struct _LttvTraceStateClass {
This page took 0.022781 seconds and 4 git commands to generate.