Subversion Repositories shark

Rev

Rev 1063 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
352 giacomo 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
 
1063 tullio 21
/*
22
 * This program is free software; you can redistribute it and/or modify
23
 * it under the terms of the GNU General Public License as published by
24
 * the Free Software Foundation; either version 2 of the License, or
25
 * (at your option) any later version.
26
 *
27
 * This program is distributed in the hope that it will be useful,
28
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30
 * GNU General Public License for more details.
31
 *
32
 * You should have received a copy of the GNU General Public License
33
 * along with this program; if not, write to the Free Software
34
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
35
 *
36
 */
37
 
352 giacomo 38
#ifndef __TRACE_QCIRC_H
39
#define __TRACE_QCIRC_H
40
 
1689 fabio 41
#include <arch/sys/cdefs.h>
352 giacomo 42
 
43
__BEGIN_DECLS
44
 
45
typedef struct TAGtrc_circular_queue_args_t {
46
  char *filename;
47
  int size;
48
 
49
  long period;
50
  long slice;
51
 
52
  int flags;
53
} TRC_CIRCULAR_PARMS;
54
 
55
#define TRC_CIRCULAR_ONLINETASK          0x0001
56
 
57
#define trc_circular_default_parms(m)    (m).filename=NULL,\
58
                                         (m).size=8192,\
59
                                         (m).period=500000,\
60
                                         (m).slice=25000,\
61
                                         (m).flags=0
62
#define trc_circular_def_filename(m,s)   (m).filename=(s)
63
#define trc_circular_def_size(m,s)       (m).size=(s)
64
 
65
#define trc_circular_def_onlinetask(m)   (m).flags|=TRC_CIRCULAR_ONLINETASK
66
#define trc_circular_def_period(m,p)     (m).period=p
67
#define trc_circular_def_slice(m,s)      (m).slice=s
68
 
69
int trc_register_circular_queue(void);
70
 
71
__END_DECLS
72
#endif