X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fcounter-config.h;fp=include%2Flttng%2Fcounter-config.h;h=0000000000000000000000000000000000000000;hb=9f25e89278018f23d20882d559fdd6fefabee0f9;hp=f81fbfd2c0ff8addaf2bd16fcf1e6a6fe96c4e64;hpb=ea8efbbe07e4b524fb308963ff5b0868fa14806f;p=lttng-ust.git diff --git a/include/lttng/counter-config.h b/include/lttng/counter-config.h deleted file mode 100644 index f81fbfd2..00000000 --- a/include/lttng/counter-config.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * SPDX-License-Identifier: MIT - * - * Copyright (C) 2020 Mathieu Desnoyers - * - * LTTng Counters Configuration - */ - -#ifndef _LTTNG_COUNTER_CONFIG_H -#define _LTTNG_COUNTER_CONFIG_H - -#include - -enum lib_counter_config_alloc { - COUNTER_ALLOC_PER_CPU = (1 << 0), - COUNTER_ALLOC_GLOBAL = (1 << 1), -}; - -enum lib_counter_config_sync { - COUNTER_SYNC_PER_CPU, - COUNTER_SYNC_GLOBAL, -}; - -struct lib_counter_config { - uint32_t alloc; /* enum lib_counter_config_alloc flags */ - enum lib_counter_config_sync sync; - enum { - COUNTER_ARITHMETIC_MODULAR, - COUNTER_ARITHMETIC_SATURATE, /* TODO */ - } arithmetic; - enum { - COUNTER_SIZE_8_BIT = 1, - COUNTER_SIZE_16_BIT = 2, - COUNTER_SIZE_32_BIT = 4, - COUNTER_SIZE_64_BIT = 8, - } counter_size; -}; - -#endif /* _LTTNG_COUNTER_CONFIG_H */