add fsm checker by Gabriel Matni
[lttv.git] / contrib / fsm_checker / RT_CHECK / realtime.h
CommitLineData
e09e518e
GM
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
10struct 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};
21struct realtime * realtime_Init(int, long, long, long, long);
22
23void realtime_warning(struct realtime *, long, long);
24
25void realtime_report_insufficient_scheduling_time(struct realtime *, long, long);
26
27void realtime_save_ts(struct realtime *, long, long);
28
29int latency(struct realtime *, long, long);
30
31int running_enough(struct realtime *, long, long);
32
33void removefsm(struct realtime *rtstruct);
34
This page took 0.022853 seconds and 4 git commands to generate.