OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [infra/] [current/] [cdl/] [debug.cdl] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      debug.cdl
4
#
5
#      Infrastructure debugging configuration data
6
#
7
# ====================================================================
8
## ####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on this file might be covered by the GNU General Public License.
37
## -------------------------------------------
38
## ####ECOSGPLCOPYRIGHTEND####
39
# ====================================================================
40
######DESCRIPTIONBEGIN####
41
#
42
# Author(s):      jskov
43
# Original data:  bartv,hmt
44
# Contributors:
45
# Date:           1999-07-02
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
# If global debugging is enabled then by default all assertions
52
# are enabled. Tracing is not enabled by default because it
53
# involves excessive overheads, for example on some targets
54
# it requires sending a string down a serial line for every
55
# function call. Both assertions and tracing are controlled
56
# by the following lines.
57
 
58
cdl_component CYGDBG_USE_ASSERTS {
59
    display       "Use asserts"
60
    default_value 1
61
    requires      { 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL }
62
    description   "
63
        If this option is defined, asserts in the code are tested.
64
        Assert functions (CYG_ASSERT()) are defined in
65
        'include/cyg/infra/cyg_ass.h' within the 'install' tree.
66
        If it is not defined, these result in no additional
67
        object code and no checking of the asserted conditions."
68
 
69
    script        assert.cdl
70
}
71
 
72
cdl_component CYGDBG_USE_TRACING {
73
    display       "Use tracing"
74
    default_value 0
75
    requires      { 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL }
76
    description   "
77
        If this option is defined, tracing operations
78
        result in output or logging, depending on other options.
79
        This may have adverse effects on performance, if the time
80
        taken to output message overwhelms the available CPU
81
        power or output bandwidth.
82
        Trace functions (CYG_TRACE()) are defined in
83
        'include/cyg/infra/cyg_trac.h' within the 'install' tree.
84
        If it is not defined, these result in no additional
85
        object code and no trace information."
86
 
87
 
88
    # The eCos system uses two types of tracing mechanisms. The most common
89
    # type traces events, for example an event could be logged whenever
90
    # an interrupt occurs or whenever a context switch takes place. The
91
    # second type of tracing mechanism records every function entry and
92
    # exit. It is possible to disable this second type of tracing while
93
    # leaving the main tracing facility enabled.
94
    cdl_option CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS {
95
        display       "Trace function reports"
96
        default_value 1
97
        description   "
98
            This option allows individual control of
99
            function entry/exit tracing, independent of
100
            more general tracing output.
101
            This may be useful to remove clutter from a
102
            trace log."
103
    }
104
 
105
    cdl_option CYGDBG_INFRA_DEBUG_TRACE_MESSAGE {
106
        display       "Use trace text"
107
        default_value 1
108
        description   "
109
            All trace calls within eCos contain a text message
110
            which should give some information about the circumstances.
111
            These text messages will end up being embedded in the
112
            application image and hence there is a significant penalty
113
            in terms of image size.
114
            It is possible to suppress the use of these messages by
115
            disabling this option.
116
            This results in smaller code size, but there is less
117
            human-readable information available in the trace output,
118
            possibly only filenames and line numbers."
119
    }
120
}
121
 
122
cdl_interface CYGINT_INFRA_DEBUG_TRACE_IMPL {
123
    display "Trace output implementations"
124
}
125
 
126
cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_NULL {
127
    display       "Null output"
128
    default_value 0
129
    implements    CYGINT_INFRA_DEBUG_TRACE_IMPL
130
    description   "
131
        A null output module which is useful when
132
        debugging interactively; the output routines
133
        can be breakpointed rather than have them actually
134
        'print' something."
135
}
136
cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_SIMPLE {
137
    display          "Simple output"
138
    default_value 0
139
    implements    CYGINT_INFRA_DEBUG_TRACE_IMPL
140
    description   "
141
        An output module which produces simple output
142
        from tracing and assertion events."
143
}
144
cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_FANCY {
145
    display       "Fancy output"
146
    default_value 0
147
    implements    CYGINT_INFRA_DEBUG_TRACE_IMPL
148
    description "
149
        An output module which produces fancy output
150
        from tracing and assertion events."
151
}
152
cdl_component CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER {
153
    display       "Buffered tracing"
154
    default_value 1
155
    implements    CYGINT_INFRA_DEBUG_TRACE_IMPL
156
    description   "
157
        An output module which buffers output
158
        from tracing and assertion events. The stored
159
        messages are output when an assert fires, or
160
        CYG_TRACE_PRINT() (defined in )
161
        is called.
162
        Of course, there will only be stored messages
163
        if tracing per se (CYGDBG_USE_TRACING)
164
        is enabled above."
165
 
166
    cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE {
167
        display       "Trace buffer size"
168
        flavor        data
169
        active_if     CYGDBG_USE_TRACING
170
        default_value 32
171
        legal_values  5 to 65535
172
        description   "
173
            The size of the trace buffer. This counts the number
174
            of trace records stored. When the buffer fills it
175
            either wraps, stops recording, or generates output."
176
    }
177
    # FIXME: The below options should be mutually exclusive.
178
    cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_WRAP {
179
        display       "Wrap trace buffer when full"
180
        active_if     CYGDBG_USE_TRACING
181
        default_value 1
182
        #          type             radio
183
        description   "
184
            When the trace buffer has filled with records it
185
            starts again at the beginning. Hence only the last
186
            CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE messages will
187
            be recorded."
188
    }
189
    cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_HALT {
190
        display       "Halt trace buffer when full"
191
        active_if     CYGDBG_USE_TRACING
192
        default_value 0
193
        #          type             radio
194
        description   "
195
            When the trace buffer has filled with records it
196
            stops recording. Hence only the first
197
            CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE messages will
198
            be recorded."
199
    }
200
    cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT {
201
        display       "Print trace buffer when full"
202
        active_if     CYGDBG_USE_TRACING
203
        default_value 0
204
        #          type             radio
205
        description   "
206
            When the trace buffer has filled with records it
207
            prints the contents of the buffer. The buffer is then
208
            emptied and the system continues."
209
    }
210
    cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT_ON_ASSERT {
211
        display       "Print trace buffer on assert fail"
212
        active_if     CYGDBG_USE_TRACING
213
        default_value 1
214
        description   "
215
            When an assertion fails the trace buffer will be
216
            printed to the default diagnostic device."
217
    }
218
}
219
 
220
cdl_option CYGDBG_INFRA_DEBUG_FUNCTION_PSEUDOMACRO {
221
    display       "Use function names"
222
    default_value 1
223
    description   "
224
        All trace and assert calls within eCos contain a
225
        reference to the builtin macro '__PRETTY_FUNCTION__',
226
        which evaluates to a string containing
227
        the name of the current function.
228
        This is useful when reading a trace log.
229
        It is possible to suppress the use of the function name
230
        by disabling this option.
231
        This results in smaller code size, but there is less
232
        human-readable information available in the trace output,
233
        possibly only filenames and line numbers."
234
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.