URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [infra/] [v2_0/] [cdl/] [debug.cdl] - Rev 174
Compare with Previous | Blame | View Log
# ====================================================================## debug.cdl## Infrastructure debugging configuration data## ====================================================================#####ECOSGPLCOPYRIGHTBEGIN###### -------------------------------------------## This file is part of eCos, the Embedded Configurable Operating System.## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.#### eCos is free software; you can redistribute it and/or modify it under## the terms of the GNU General Public License as published by the Free## Software Foundation; either version 2 or (at your option) any later version.#### eCos is distributed in the hope that it will be useful, but WITHOUT ANY## WARRANTY; without even the implied warranty of MERCHANTABILITY or## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License## for more details.#### You should have received a copy of the GNU General Public License along## with eCos; if not, write to the Free Software Foundation, Inc.,## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.#### As a special exception, if other files instantiate templates or use macros## or inline functions from this file, or you compile this file and link it## with other works to produce a work based on this file, this file does not## by itself cause the resulting work to be covered by the GNU General Public## License. However the source code for this file must still be made available## in accordance with section (3) of the GNU General Public License.#### This exception does not invalidate any other reasons why a work based on## this file might be covered by the GNU General Public License.#### Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.## at http://sources.redhat.com/ecos/ecos-license/## -------------------------------------------#####ECOSGPLCOPYRIGHTEND##### ====================================================================######DESCRIPTIONBEGIN###### Author(s): jskov# Original data: bartv,hmt# Contributors:# Date: 1999-07-02######DESCRIPTIONEND###### ====================================================================# If global debugging is enabled then by default all assertions# are enabled. Tracing is not enabled by default because it# involves excessive overheads, for example on some targets# it requires sending a string down a serial line for every# function call. Both assertions and tracing are controlled# by the following lines.cdl_component CYGDBG_USE_ASSERTS {display "Use asserts"default_value 1requires { 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL }description "If this option is defined, asserts in the code are tested.Assert functions (CYG_ASSERT()) are defined in'include/cyg/infra/cyg_ass.h' within the 'install' tree.If it is not defined, these result in no additionalobject code and no checking of the asserted conditions."script assert.cdl}cdl_component CYGDBG_USE_TRACING {display "Use tracing"default_value 0requires { 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL }description "If this option is defined, tracing operationsresult in output or logging, depending on other options.This may have adverse effects on performance, if the timetaken to output message overwhelms the available CPUpower or output bandwidth.Trace functions (CYG_TRACE()) are defined in'include/cyg/infra/cyg_trac.h' within the 'install' tree.If it is not defined, these result in no additionalobject code and no trace information."# The eCos system uses two types of tracing mechanisms. The most common# type traces events, for example an event could be logged whenever# an interrupt occurs or whenever a context switch takes place. The# second type of tracing mechanism records every function entry and# exit. It is possible to disable this second type of tracing while# leaving the main tracing facility enabled.cdl_option CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS {display "Trace function reports"default_value 1description "This option allows individual control offunction entry/exit tracing, independent ofmore general tracing output.This may be useful to remove clutter from atrace log."}cdl_option CYGDBG_INFRA_DEBUG_TRACE_MESSAGE {display "Use trace text"default_value 1description "All trace calls within eCos contain a text messagewhich should give some information about the circumstances.These text messages will end up being embedded in theapplication image and hence there is a significant penaltyin terms of image size.It is possible to suppress the use of these messages bydisabling this option.This results in smaller code size, but there is lesshuman-readable information available in the trace output,possibly only filenames and line numbers."}}cdl_interface CYGINT_INFRA_DEBUG_TRACE_IMPL {display "Trace output implementations"}cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_NULL {display "Null output"default_value 0implements CYGINT_INFRA_DEBUG_TRACE_IMPLdescription "A null output module which is useful whendebugging interactively; the output routinescan be breakpointed rather than have them actually'print' something."}cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_SIMPLE {display "Simple output"default_value 0implements CYGINT_INFRA_DEBUG_TRACE_IMPLdescription "An output module which produces simple outputfrom tracing and assertion events."}cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_FANCY {display "Fancy output"default_value 0implements CYGINT_INFRA_DEBUG_TRACE_IMPLdescription "An output module which produces fancy outputfrom tracing and assertion events."}cdl_component CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER {display "Buffered tracing"default_value 1implements CYGINT_INFRA_DEBUG_TRACE_IMPLdescription "An output module which buffers outputfrom tracing and assertion events. The storedmessages are output when an assert fires, orCYG_TRACE_PRINT() (defined in <cyg/infra/cyg_trac.h>)is called.Of course, there will only be stored messagesif tracing per se (CYGDBG_USE_TRACING)is enabled above."cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE {display "Trace buffer size"flavor dataactive_if CYGDBG_USE_TRACINGdefault_value 32legal_values 5 to 65535description "The size of the trace buffer. This counts the numberof trace records stored. When the buffer fills iteither wraps, stops recording, or generates output."}# FIXME: The below options should be mutually exclusive.cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_WRAP {display "Wrap trace buffer when full"active_if CYGDBG_USE_TRACINGdefault_value 1# type radiodescription "When the trace buffer has filled with records itstarts again at the beginning. Hence only the lastCYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE messages willbe recorded."}cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_HALT {display "Halt trace buffer when full"active_if CYGDBG_USE_TRACINGdefault_value 0# type radiodescription "When the trace buffer has filled with records itstops recording. Hence only the firstCYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE messages willbe recorded."}cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT {display "Print trace buffer when full"active_if CYGDBG_USE_TRACINGdefault_value 0# type radiodescription "When the trace buffer has filled with records itprints the contents of the buffer. The buffer is thenemptied and the system continues."}cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT_ON_ASSERT {display "Print trace buffer on assert fail"active_if CYGDBG_USE_TRACINGdefault_value 1description "When an assertion fails the trace buffer will beprinted to the default diagnostic device."}}cdl_option CYGDBG_INFRA_DEBUG_FUNCTION_PSEUDOMACRO {display "Use function names"default_value 1description "All trace and assert calls within eCos contain areference to the builtin macro '__PRETTY_FUNCTION__',which evaluates to a string containingthe name of the current function.This is useful when reading a trace log.It is possible to suppress the use of the function nameby disabling this option.This results in smaller code size, but there is lesshuman-readable information available in the trace output,possibly only filenames and line numbers."}
