/* * Copyright(c) 2012-2021 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause-Clear */ #ifndef __STAT_VIEW #define __STAT_VIEW #include /* each line of statistics may be assigned one fo these semantic formats, * to which it will be converted */ enum tag_type { FREEFORM, /**< free form text */ KV_PAIR, /**< key value pair. sequence of kv-pairs will be aligned to columns, but no table-styleborders will be drawn */ TABLE_ROW, /**< regular table row */ TABLE_HEADER, /**< table header */ TABLE_SECTION, /**< first row of a table section */ DATA_SET, /**< set of records */ RECORD, /**< one record of data */ TREE_HEADER, TREE_BRANCH, TREE_LEAF, UNDEFINED_TAG /**< occurence of this (or anything else out of above tags) will immediately break processing */ }; #define TAG(x) #x "," #define TAG_NAME(x) #x enum format { TEXT, /**< output in text (formatted tables) form */ CSV, /**< output in csv form */ RAW_CSV, /**< csv form without transformations */ PLAIN /**