when checking the version of jackd, concern ourselves only with the last line of...
[ffado.git] / libffado / config_debug.h.in
blobea053cf3ecbd00f71aff50556ca03330d3a7e36a
1 /* config_debug.h.in. */
2 #ifndef CONFIG_DEBUG_H
3 #define CONFIG_DEBUG_H
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
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
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
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
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
39 // lock debugging
40 #define DEBUG_LOCK_COLLISION_TRACING 0
42 // make this zero to disable the most extreme
43 // debug logging in the critical sections
44 #define DEBUG_EXTREME_ENABLE 0
46 #endif // CONFIG_DEBUG_H