Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* |
2 | * Project: S.Ha.R.K. |
||
3 | * |
||
4 | * Coordinators: |
||
5 | * Giorgio Buttazzo <giorgio@sssup.it> |
||
6 | * Paolo Gai <pj@gandalf.sssup.it> |
||
7 | * |
||
8 | * Authors : |
||
9 | * Paolo Gai <pj@gandalf.sssup.it> |
||
10 | * Massimiliano Giorgi <massy@gandalf.sssup.it> |
||
11 | * Luca Abeni <luca@gandalf.sssup.it> |
||
12 | * (see the web pages for full authors list) |
||
13 | * |
||
14 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
15 | * |
||
16 | * http://www.sssup.it |
||
17 | * http://retis.sssup.it |
||
18 | * http://shark.sssup.it |
||
19 | */ |
||
20 | |||
21 | #ifndef __TRACE_QCIRC_H |
||
22 | #define __TRACE_QCIRC_H |
||
23 | |||
24 | typedef struct TAGtrc_circular_queue_args_t { |
||
25 | char *filename; |
||
26 | int size; |
||
27 | |||
28 | long period; |
||
29 | long slice; |
||
30 | |||
31 | int flags; |
||
32 | } TRC_CIRCULAR_PARMS; |
||
33 | |||
34 | #define TRC_CIRCULAR_ONLINETASK 0x0001 |
||
35 | |||
36 | #define trc_circular_default_parms(m) (m).filename=NULL,\ |
||
37 | (m).size=8192,\ |
||
38 | (m).period=500000,\ |
||
39 | (m).slice=25000,\ |
||
40 | (m).flags=0 |
||
41 | #define trc_circular_def_filename(m,s) (m).filename=(s) |
||
42 | #define trc_circular_def_size(m,s) (m).size=(s) |
||
43 | |||
44 | #define trc_circular_def_onlinetask(m) (m).flags|=TRC_CIRCULAR_ONLINETASK |
||
45 | #define trc_circular_def_period(m,p) (m).period=p |
||
46 | #define trc_circular_def_slice(m,s) (m).slice=s |
||
47 | |||
48 | int trc_register_circular_queue(void); |
||
49 | |||
50 | #endif |