Configuration #defines

The configuration UI configures the following defines, which are stored in barman.h. They can be overridden at compile time as compiler parameters.

Defines available for configuration:

BM_CONFIG_ENABLE_LOGGING

Enables logging of messages when set to true.

BM_CONFIG_ENABLE_DEBUG_LOGGING

If BM_CONFIG_ENABLE_LOGGING is true, enables debug messages when set to true.

BM_CONFIG_ENABLE_BUILTIN_MEMFUNCS

Enables the use of built-in memory functions such as __builtin_memset and __builtin_memcpy when set to true.

BM_CONFIG_MAX_CORES

The maximum number of processor elements supported.

BM_CONFIG_MAX_MMAP_LAYOUTS

The maximum number of mmap layout entries to be stored in the data header. Configure to reflect the number of sections to be mapped for any process images.

BM_CONFIG_MAX_TASK_INFOS

The maximum number of distinct task entries that will be stored in the data. For single-threaded applications, this number can be zero, indicating that no information is provided.

For multi-threaded applications or RTOS, this value indicates the maximum number of entries to store in the data header for describing processes, threads, and tasks.

BM_CONFIG_MIN_SAMPLE_PERIOD

The minimum period between samples in nanoseconds. If this value is greater than zero, calls to sampling functions are rate limited to ensure that there is a minimum interval of nanoseconds between samples.

BARMAN_DISABLED

Disables the Barman entry points at compile time when defined to a nonzero value. Use to conditionally disable calls to Barman, for example in production code.