Rev 3 | Go to most recent revision | Details | Compare with Previous | 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 | |||
80 | pj | 24 | #include "ll/sys/cdefs.h" |
25 | |||
26 | __BEGIN_DECLS |
||
27 | |||
2 | pj | 28 | typedef struct TAGtrc_circular_queue_args_t { |
29 | char *filename; |
||
30 | int size; |
||
31 | |||
32 | long period; |
||
33 | long slice; |
||
34 | |||
35 | int flags; |
||
36 | } TRC_CIRCULAR_PARMS; |
||
37 | |||
38 | #define TRC_CIRCULAR_ONLINETASK 0x0001 |
||
39 | |||
40 | #define trc_circular_default_parms(m) (m).filename=NULL,\ |
||
41 | (m).size=8192,\ |
||
42 | (m).period=500000,\ |
||
43 | (m).slice=25000,\ |
||
44 | (m).flags=0 |
||
45 | #define trc_circular_def_filename(m,s) (m).filename=(s) |
||
46 | #define trc_circular_def_size(m,s) (m).size=(s) |
||
47 | |||
48 | #define trc_circular_def_onlinetask(m) (m).flags|=TRC_CIRCULAR_ONLINETASK |
||
49 | #define trc_circular_def_period(m,p) (m).period=p |
||
50 | #define trc_circular_def_slice(m,s) (m).slice=s |
||
51 | |||
52 | int trc_register_circular_queue(void); |
||
53 | |||
80 | pj | 54 | __END_DECLS |
2 | pj | 55 | #endif |