add fsm checker by Gabriel Matni
[lttv.git] / contrib / fsm_checker / RT_CHECK / realtime.h
1 #include <glib.h>
2 #define DEFAULT_PERIOD_SEC 0
3 #define DEFAULT_PERIOD_NSEC 500000000 //500ms
4
5 #define DEFAULT_RUNNING_TIME_SEC 0
6 #define DEFAULT_RUNNING_TIME_NSEC 500000000 //500ms
7
8
9
10 struct realtime{
11 int pid; //set by checker
12 long period_sec; //tolerable period
13 long period_nsec;
14 long running_time_sec; //needed time to execute per scheduling cycle
15 long running_time_nsec;
16 long schedin_ts_sec;
17 long schedin_ts_nsec;
18 struct realtimeContext _fsm;
19
20 };
21 struct realtime * realtime_Init(int, long, long, long, long);
22
23 void realtime_warning(struct realtime *, long, long);
24
25 void realtime_report_insufficient_scheduling_time(struct realtime *, long, long);
26
27 void realtime_save_ts(struct realtime *, long, long);
28
29 int latency(struct realtime *, long, long);
30
31 int running_enough(struct realtime *, long, long);
32
33 void removefsm(struct realtime *rtstruct);
34
This page took 0.030287 seconds and 4 git commands to generate.