]> rtime.felk.cvut.cz Git - frescor/fna.git/blob - src_frescan/frescan_debug.h
add group negotiations to frescan and change all the requests and messages to map...
[frescor/fna.git] / src_frescan / frescan_debug.h
1 /*!
2  * @file frecan_debug.h
3  *
4  * @brief debuggin macros and flags for the frescan protocol
5  *
6  * @version 0.01
7  *
8  * @date 21-Feb-2008
9  *
10  * @author
11  *      Daniel Sangorrin
12  *
13  * @comments
14  *
15  * This module contains macros and flags to enable debugging in the
16  * frescan protocol for MaRTE OS
17  *
18  * @license
19  *
20  * -----------------------------------------------------------------------
21  *  Copyright (C) 2006 - 2008 FRESCOR consortium partners:
22  *
23  *    Universidad de Cantabria,              SPAIN
24  *    University of York,                    UK
25  *    Scuola Superiore Sant'Anna,            ITALY
26  *    Kaiserslautern University,             GERMANY
27  *    Univ. Politécnica  Valencia,           SPAIN
28  *    Czech Technical University in Prague,  CZECH REPUBLIC
29  *    ENEA                                   SWEDEN
30  *    Thales Communication S.A.              FRANCE
31  *    Visual Tools S.A.                      SPAIN
32  *    Rapita Systems Ltd                     UK
33  *    Evidence                               ITALY
34  *
35  *    See http://www.frescor.org for a link to partners' websites
36  *
37  *           FRESCOR project (FP6/2005/IST/5-034026) is funded
38  *        in part by the European Union Sixth Framework Programme
39  *        The European Union is not liable of any use that may be
40  *        made of this code.
41  *
42  *  This file is part of FRESCAN
43  *
44  *  FRESCAN is free software; you can  redistribute it and/or  modify
45  *  it under the terms of  the GNU General Public License as published by
46  *  the Free Software Foundation;  either  version 2, or (at  your option)
47  *  any later version.
48  *
49  *  FRESCAN  is distributed  in  the hope  that  it  will  be useful,  but
50  *  WITHOUT  ANY  WARRANTY;     without  even the   implied   warranty  of
51  *  MERCHANTABILITY  or  FITNESS FOR  A  PARTICULAR PURPOSE. See  the  GNU
52  *  General Public License for more details.
53  *
54  *  You should have  received a  copy of  the  GNU  General Public License
55  *  distributed  with  FRESCAN;  see file COPYING.   If not,  write to the
56  *  Free Software  Foundation,  59 Temple Place  -  Suite 330,  Boston, MA
57  *  02111-1307, USA.
58  *
59  * As a special exception, including FRESCAN header files in a file,
60  * instantiating FRESCAN generics or templates, or linking other files
61  * with FRESCAN objects to produce an executable application, does not
62  * by itself cause the resulting executable application to be covered
63  * by the GNU General Public License. This exception does not
64  * however invalidate any other reasons why the executable file might be
65  * covered by the GNU Public License.
66  * -----------------------------------------------------------------------
67  *
68  */
69
70 #ifndef _MARTE_FRESCAN_DEBUG_H_
71 #define _MARTE_FRESCAN_DEBUG_H_
72
73 #include <stdio.h>
74 #include <stdbool.h>
75 #include <stdlib.h>
76
77 /**
78  * DEBUG macros
79  **/
80
81 #define DEBUG(enable,x,args...) if(enable) printc("DEBUG (%s): " x, __func__ , ##args)
82 #define FRESCAN_ERROR(x,args...) {printe("ERROR (%s:%u): " x, __func__ , __LINE__ , ##args); exit(-1);}
83 #define FRESCAN_WARNING(x,args...) printe("WARNING (%s): " x, __func__ , ##args)
84
85 /**
86  * DEBUGGING FLAGS to enable/disable debugging messages
87  **/
88
89 #define FRESCAN_SERVERS_ENABLE_DEBUG    false
90 #define FRESCAN_PACKETPOOL_ENABLE_DEBUG false
91 #define FRESCAN_FRAG_ENABLE_DEBUG       false
92 #define FRESCAN_INIT_ENABLE_DEBUG       false
93 #define FRESCAN_SEND_ENABLE_DEBUG       false
94 #define FRESCAN_RECV_ENABLE_DEBUG       false
95 #define FRESCAN_RX_HOOK_ENABLE_DEBUG    false
96 #define FRESCAN_SENT_HOOK_ENABLE_DEBUG  false
97 #define FRESCAN_QUEUES_ENABLE_DEBUG     false
98 #define FRESCAN_HW_BUFFER_ENABLE_DEBUG  false
99 #define FRESCAN_REPLENSH_ENABLE_DEBUG   false
100
101 #define FRESCAN_BWRES_ENABLE_DEBUG            false
102 #define FRESCAN_BWRES_ROBJS_ENABLE_DEBUG      false
103 #define FRESCAN_BWRES_REQUESTS_ENABLE_DEBUG   false
104 #define FRESCAN_BWRES_MANAGER_ENABLE_DEBUG    false
105 #define FRESCAN_BWRES_ACCEPTOR_ENABLE_DEBUG   false
106 #define FRESCAN_BWRES_MC_ENABLE_DEBUG         false
107 #define FRESCAN_BWRES_FNA_ENABLE_DEBUG        false
108 #define FRESCAN_BWRES_MESSAGES_ENABLE_DEBUG   false
109 #define FRESCAN_BWRES_SA_ENABLE_DEBUG         false
110
111 /**
112  * MEASUREMENT FLAGS
113  */
114 #define FRESCAN_MEASURE_REPL_TH         false
115 #define FRESCAN_MEASURE_REPL_PROGRAM    false
116
117 #endif // _MARTE_FRESCAN_DEBUG_H_