Subversion Repositories shark

Rev

Rev 80 | 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
/*
22
 * Copyright (C) 1999 Massimiliano Giorgi
23
 *
24
 * This program is free software; you can redistribute it and/or modify
25
 * it under the terms of the GNU General Public License as published by
26
 * the Free Software Foundation; either version 2 of the License, or
27
 * (at your option) any later version.
28
 *
29
 * This program is distributed in the hope that it will be useful,
30
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32
 * GNU General Public License for more details.
33
 *
34
 * You should have received a copy of the GNU General Public License
35
 * along with this program; if not, write to the Free Software
36
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
37
 *
38
 */
39
 
40
/*
80 pj 41
 * CVS :        $Id: trace.h,v 1.3 2003-03-13 13:37:02 pj Exp $
2 pj 42
 *
43
 * File:        $File$
80 pj 44
 * Revision:    $Revision: 1.3 $
45
 * Last update: $Date: 2003-03-13 13:37:02 $
2 pj 46
 */
47
 
48
#ifndef __TRACE_TRACE_H
49
#define __TRACE_TRACE_H
50
 
80 pj 51
#include "ll/sys/cdefs.h"
52
 
53
__BEGIN_DECLS
54
 
2 pj 55
typedef struct trc_parms {
56
  char *path;
57
} TRC_PARMS;
58
 
59
#define trc_default_parms(m) (m).path="/temp"
60
#define trc_def_path(m,s) (m).path=(s)
61
 
62
int TRC_init_phase1(TRC_PARMS *p);
63
int TRC_init_phase2(void);
64
 
65
int trc_assign_event_to_queue(int event, int queue);
66
int trc_assign_class_to_queue(int class, int queue);
67
 
68
int trc_notrace_event(int event);
69
int trc_trace_event(int event);
70
int trc_notrace_class(int class);
71
int trc_trace_class(int class);
72
 
73
/* -- */
74
 
7 pj 75
/* Register a "standard" tracer configuration; requires FAT16 filesystem
76
   (see documentation) */
2 pj 77
int TRC_init_phase1_standard(void);
78
int TRC_init_phase2_standard(void);
79
 
80 pj 80
__END_DECLS
2 pj 81
#endif