Atlas Runtime
log_configs.hpp
Go to the documentation of this file.
1 /*
2  * (c) Copyright 2016 Hewlett Packard Enterprise Development LP
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as
6  * published by the Free Software Foundation, either version 3 of the
7  * License, or (at your option) any later version. This program is
8  * distributed in the hope that it will be useful, but WITHOUT ANY
9  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11  * for more details. You should have received a copy of the GNU Lesser
12  * General Public License along with this program. If not, see
13  * <http://www.gnu.org/licenses/>.
14  */
15 
16 
17 #ifndef LOG_CONFIGS_HPP
18 #define LOG_CONFIGS_HPP
19 
20 #include <stdint.h>
21 
22 namespace Atlas {
23 
24 const uint64_t kHashTableSize = 1 << 10;
25 const uint64_t kHashTableMask = kHashTableSize - 1;
26 const uint32_t kShift = 3;
27 const uint32_t kWorkThreshold = 100;
28 const uint32_t kCircularBufferSize = 1024 * 16 - 1;
29 
30 // At limit for using 4 bits
31 // Combined strncat and strcat, strcpy and strncpy
32 enum LogType {
37 };
38 
39 } // namespace Atlas
40 
41 #endif
Definition: log_configs.hpp:36
Definition: log_configs.hpp:34
Definition: log_configs.hpp:35
const uint64_t kHashTableSize
Definition: log_configs.hpp:24
const uint64_t kHashTableMask
Definition: log_configs.hpp:25
Definition: log_configs.hpp:33
const uint32_t kCircularBufferSize
Definition: log_configs.hpp:28
Definition: log_configs.hpp:36
Definition: log_configs.hpp:33
LogType
Definition: log_configs.hpp:32
Definition: log_configs.hpp:34
const uint32_t kWorkThreshold
Definition: log_configs.hpp:27
Definition: log_configs.hpp:35
Definition: log_configs.hpp:33
Definition: log_configs.hpp:34
Definition: log_configs.hpp:35
Definition: log_configs.hpp:34
Definition: log_configs.hpp:36
const uint32_t kShift
Definition: log_configs.hpp:26
Definition: log_configs.hpp:33
Definition: log_configs.hpp:36
Definition: atlas_alloc_cpp.hpp:21
Definition: log_configs.hpp:35