+/* This file is part of the Linux Trace Toolkit viewer
+ * Copyright (C) 2003-2004 Michel Dagenais
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License Version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA.
+ */
+
#ifndef STATE_H
#define STATE_H
#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.
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
/* 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
GQuark *syscall_names;
GQuark *trap_names;
GQuark *irq_names;
+ gboolean recompute_state_in_seek;
+ gboolean saved_state_ready;
+ gboolean saved_state_available;
};
struct _LttvTraceStateClass {