File: config_debug.h.in

package info (click to toggle)
libffado 2.4.9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,604 kB
  • sloc: cpp: 77,151; python: 8,997; ansic: 2,951; sh: 1,429; xml: 855; makefile: 29
file content (46 lines) | stat: -rw-r--r-- 1,718 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* config_debug.h.in. */
#ifndef CONFIG_DEBUG_H
#define CONFIG_DEBUG_H

// use a RT-safe message buffer for debug output
// useful to disable this when the code aborts/segfaults to
// not lose debug output. should be enabled though.
#define DEBUG_USE_MESSAGE_BUFFER             1
// max message length in the debug messagebuffer
#define DEBUG_MAX_MESSAGE_LENGTH          2048
// number of messages in the debug messagebuffer (power of two)
#define DEBUG_MB_BUFFERS                  1024

// use an RT thread for reading out the messagebuffer.
// can reduce the number of buffer xruns, and
// avoids priority inversion issues
#define DEBUG_MESSAGE_BUFFER_REALTIME        1
#define DEBUG_MESSAGE_BUFFER_REALTIME_PRIO   1

// When a write can't get the buffer lock, how many times
// should it retry, and wait how long between retries?
#define DEBUG_MESSAGE_BUFFER_COLLISION_WAIT_NTRIES      2
#define DEBUG_MESSAGE_BUFFER_COLLISION_WAIT_NSEC    50000

// support a debug backlog
// note that this does not influence non-debug builds
#define DEBUG_BACKLOG_SUPPORT                0
// number of messages in the backlog buffer (power of two)
#define DEBUG_BACKLOG_MB_BUFFERS            64

// support backtrace debugging
// note that this does not influence non-debug builds
#define DEBUG_BACKTRACE_SUPPORT              0
// max length of backtrace
#define DEBUG_MAX_BACKTRACE_LENGTH           8
// max amount of function pointers to keep track of
#define DEBUG_MAX_BACKTRACE_FUNCTIONS_SEEN  64

// lock debugging
#define DEBUG_LOCK_COLLISION_TRACING         0

// make this zero to disable the most extreme
// debug logging in the critical sections
#define DEBUG_EXTREME_ENABLE                 0

#endif // CONFIG_DEBUG_H