Subversion Repositories shark

Rev

Rev 1239 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1237 giacomo 1
#ifndef __LPARSER_H__
2
#define __LPARSER_H__
3
 
4
#define PAR_TOTAL_EXEC_TIME 0
5
#define PAR_TIME 1
6
#define PAR_ACT_TYPE 2
7
#define PAR_TASK_NUMBER 3
8
#define PAR_EXEC_TYPE 4
9
#define PAR_TASK_TYPE 5
10
#define PAR_NOTHING 6
11
#define PAR_DEADLINE 7
12
#define PAR_ERROR 8
13
#define PAR_FOUND 9
14
#define PAR_CRIT_SESSION 10
15
#define PAR_END 11
16
 
17
#define PAR_EXEC_CONST 12
18
#define PAR_EXEC_MEAN 13
19
 
20
#define PAR_ACT_SINGLE 16
21
#define PAR_ACT_PERIODIC 17
22
#define PAR_ACT_MEAN 18
23
 
24
#define PAR_TASK_OS 21
25
#define PAR_TASK_CT 22
26
#define PAR_TASK_BT 23
27
 
28
#define PAR_NO_CRIT 26
29
#define PAR_CRIT 27
30
 
31
#define PAR_LOCAL_SCHEDULER 29
32
#define PAR_POSIX 30
33
#define PAR_EDF 31
34
#define PAR_RM 32
35
 
36
#define PAR_FSF_SERVER 33
37
 
38
struct loader_task {
39
 
40
  char name[20];
41
  int number;
42
  int group;
43
  int server;
44
  int local_scheduler;
45
  int task_type;
46
 
47
  int act_type;
48
  struct timespec act_par_1;
49
  struct timespec act_par_2;
50
  struct timespec act_par_3;
51
  int exec_type;
52
  struct timespec exec_par_1;
53
  struct timespec exec_par_2;
54
  struct timespec exec_par_3;
55
 
56
  struct timespec deadline;
57
  struct timespec wcet;
58
 
59
  int act_number;
60
  struct timespec *act;
61
  struct timespec *exec;
62
 
63
  int crit_type;
64
  int resource;
65
  struct timespec crit_par_1;
66
  struct timespec crit_par_2;
67
  struct timespec crit_par_3;
68
  struct timespec crit_par_4;
69
 
70
  struct loader_task *next;
71
 
72
};
73
 
74
int line_parser(char **buf, int line_num, struct timespec *total, struct loader_task **last);
75
 
76
#endif
77