root/trunk/libffado/config_debug.h.in

Revision 1254, 1.7 kB (checked in by ppalmers, 16 years ago)

split config.h into config/version/debug_config to allow for faster compilation (splits dependencies)

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           512
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, but not
16 // recommended
17 #define DEBUG_MESSAGE_BUFFER_REALTIME        0
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
26 // support a debug backlog
27 // note that this does not influence non-debug builds
28 #define DEBUG_BACKLOG_SUPPORT                0
29 // number of messages in the backlog buffer (power of two)
30 #define DEBUG_BACKLOG_MB_BUFFERS            64
31
32 // support backtrace debugging
33 // note that this does not influence non-debug builds
34 #define DEBUG_BACKTRACE_SUPPORT              0
35 // max length of backtrace
36 #define DEBUG_MAX_BACKTRACE_LENGTH           8
37 // max amount of function pointers to keep track of
38 #define DEBUG_MAX_BACKTRACE_FUNCTIONS_SEEN  64
39
40 // lock debugging
41 #define DEBUG_LOCK_COLLISION_TRACING         0
42
43 // make this zero to disable the most extreme
44 // debug logging in the critical sections
45 #define DEBUG_EXTREME_ENABLE                 0
46
47 #endif // CONFIG_DEBUG_H
Note: See TracBrowser for help on using the browser.