convert from svn repository: remove tags directory
[lttv.git] / trunk / lttng-xenomai / LinuxTraceToolkitViewer-0.8.61-xenoltt / lttv / lttv / xenoltt_sim.h
CommitLineData
03d7fdf3 1/* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2003-2004 Michel Dagenais
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16 * MA 02111-1307, USA.
17 */
18
19#ifndef XENOLTT_SIM_H
20#define XENOLTT_SIM_H
21
22#include <glib.h>
23#include <lttv/state.h>
24#include <lttv/stats.h>
25
26// Hook wrapper. call_data is a trace context.
27gboolean lttv_xenoltt_sim_hook_add_event_hooks(void *hook_data, void *call_data);
28void lttv_xenoltt_sim_add_event_hooks(LttvTracesetStats *self);
29
30// Hook wrapper. call_data is a trace context.
31gboolean lttv_xenoltt_sim_hook_remove_event_hooks(void *hook_data, void *call_data);
32void lttv_xenoltt_sim_remove_event_hooks(LttvTracesetStats *self);
33
34
35typedef struct _ThreadEventData {
36 gulong address;
37 guint prio;
38 guint period;
39 LttTime creation_time;
40 GQuark name;
41 GArray* event_list;
42 GArray* new_event_list;
43} ThreadEventData;
44
45
46typedef struct _EventData {
47 LttTime event_time;
48 GQuark name;
49 LttEvent* event;
50} EventData;
51
52
53typedef struct _RunningThread {
54 ThreadEventData* thread;
55 LttTime begin_time;
56 LttTime end_time;
57} RunningThread;
58
59static GArray *thread_event_list;
60static GArray *running_thread;
61
62void compute_simulation(guint index,guint period,FILE *a_file);
63
64GArray* get_thread_list();
65
66#endif // XENOLTT_SIM_H
This page took 0.030286 seconds and 4 git commands to generate.