2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2020 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 * LTTng Counters Configuration
9 #ifndef _LTTNG_COUNTER_CONFIG_H
10 #define _LTTNG_COUNTER_CONFIG_H
14 enum lib_counter_config_alloc
{
15 COUNTER_ALLOC_PER_CPU
= (1 << 0),
16 COUNTER_ALLOC_GLOBAL
= (1 << 1),
19 enum lib_counter_config_sync
{
24 struct lib_counter_config
{
25 uint32_t alloc
; /* enum lib_counter_config_alloc flags */
26 enum lib_counter_config_sync sync
;
28 COUNTER_ARITHMETIC_MODULAR
,
29 COUNTER_ARITHMETIC_SATURATE
, /* TODO */
32 COUNTER_SIZE_8_BIT
= 1,
33 COUNTER_SIZE_16_BIT
= 2,
34 COUNTER_SIZE_32_BIT
= 4,
35 COUNTER_SIZE_64_BIT
= 8,
39 #endif /* _LTTNG_COUNTER_CONFIG_H */