root/trunk/libffado/config_debug.h.in

Revision 1550, 1.7 kB (checked in by ppalmers, 11 years ago)

- Implement basic HSS1394 support for the Stanton SCS devices
- Start of the implementation of a generic TCAT DICE EAP control
- Reworked part of the busreset / ARM handler code

Line 
1 /* config_debug.h.in. */
2 #ifndef CONFIG_DEBUG_H
3 #define CONFIG_DEBUG_H
4
5 // use a RT-safe message buffer for debug output
6 // useful to disable this when the code aborts/segfaults to
7 // not lose debug output. should be enabled though.
8 #define DEBUG_USE_MESSAGE_BUFFER             1
9 // max message length in the debug messagebuffer
10 #define DEBUG_MAX_MESSAGE_LENGTH          2048
11 // number of messages in the debug messagebuffer (power of two)
12 #define DEBUG_MB_BUFFERS                  1024
13
14 // use an RT thread for reading out the messagebuffer.
15 // can reduce the number of buffer xruns, and
16 // avoids priority inversion issues
17 #define DEBUG_MESSAGE_BUFFER_REALTIME        1
18 #define DEBUG_MESSAGE_BUFFER_REALTIME_PRIO   1
19
20 // When a write can't get the buffer lock, how many times
21 // should it retry, and wait how long between retries?
22 #define DEBUG_MESSAGE_BUFFER_COLLISION_WAIT_NTRIES      2
23 #define DEBUG_MESSAGE_BUFFER_COLLISION_WAIT_NSEC    50000
24
25 // support a debug backlog
26 // note that this does not influence non-debug builds
27 #define DEBUG_BACKLOG_SUPPORT                0
28 // number of messages in the backlog buffer (power of two)
29 #define DEBUG_BACKLOG_MB_BUFFERS            64
30
31 // support backtrace debugging
32 // note that this does not influence non-debug builds
33 #define DEBUG_BACKTRACE_SUPPORT              0
34 // max length of backtrace
35 #define DEBUG_MAX_BACKTRACE_LENGTH           8
36 // max amount of function pointers to keep track of
37 #define DEBUG_MAX_BACKTRACE_FUNCTIONS_SEEN  64
38
39 // lock debugging
40 #define DEBUG_LOCK_COLLISION_TRACING         0
41
42 // make this zero to disable the most extreme
43 // debug logging in the critical sections
44 #define DEBUG_EXTREME_ENABLE                 0
45
46 #endif // CONFIG_DEBUG_H
Note: See TracBrowser for help on using the browser.