diff options
author | 2020-11-20 23:36:23 +0900 | |
---|---|---|
committer | 2020-11-22 09:02:55 +0900 | |
commit | 17cf21bcf8a2e29d2cbcf0a313474d2a4ee44f5d (patch) | |
tree | 582a9768558d9eaf261ca5df6136e9de54c95816 /service/system/resource_manager/server/include/resm_cfg.h | |
parent | 9e86046cdb356913ae026f616e5bf17f6f238aa5 (diff) |
Re-organized sub-directory by category
Since all the sub-directories were placed in the
first level, created sub-directories, "hal", "module",
and "service" for classification and relocated each component.
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Change-Id: Ifdf743ac0d1893bd8e445455cf0d2c199a011d5c
Diffstat (limited to 'service/system/resource_manager/server/include/resm_cfg.h')
-rwxr-xr-x | service/system/resource_manager/server/include/resm_cfg.h | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/service/system/resource_manager/server/include/resm_cfg.h b/service/system/resource_manager/server/include/resm_cfg.h new file mode 100755 index 0000000..e48cdce --- /dev/null +++ b/service/system/resource_manager/server/include/resm_cfg.h @@ -0,0 +1,132 @@ +/* + * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/****************************************************************************** +File name : resm_cfg.h +******************************************************************************/ +#ifndef RESOURCE_MANAGER_SERVER_INCLUDE_RESM_CFG_H_ +#define RESOURCE_MANAGER_SERVER_INCLUDE_RESM_CFG_H_ + +/****************************************************************************** +Configuration +******************************************************************************/ +/************************************************* + * Delay time from process start to monitoring start (sec) + * def:60 max:- min:0 + * (0: stop timer) + *************************************************/ +#define MONITORING_START_DELAT_TIME (60) + + +/************************************************* + * Delay time until authentication service monitoring start (sec) + * def:30 max:- min:0 + * (0: stop timer) + * MONITORING_START_DELAT_TIME > set to this value + *************************************************/ +#define EUA_MONITORING_START_DELAT_TIME (30) + + +/************************************************* + * Delay from drop_caches process startup (sec) + * def:20 max:- min:0 + * (0: stop timer) + *************************************************/ +#define DROP_CACHES_START_DELAT_TIME (20) + + +///************************************************* +// * CPU load threshold (%) +// * def:70 max:100 min:0 +// *************************************************/ +//#define CPU_LOAD_THRESHOLD (70) +/************************************************* + * CPU load threshold(%:XX.X) + * threshold:875 max:1000 min:0 + *************************************************/ +#define CPU_LOAD_THRESHOLD (875) + + +/************************************************* + * Number of CPU overload processes to be logged (rows) + * def:5 max:- min:0 + *************************************************/ +#define CPU_HIGH_LOAD_P_LOG_NUM (5) + + +///************************************************* +// * Log output frequency during CPU overload continuation (sec) +// * def:30 max:- min:0 +// * +// * Specify as a multiple of the polling interval(WTC_CPU_INTERVAL) for CPU load monitoring +// *************************************************/ +//#define CPU_HIGH_LOAD_LOG_FREQ (30) +/************************************************* + * Log output frequency during CPU overload continuation (sec) + * def:60 max:- min:0 + * + * Specify as a multiple of the polling interval(WTC_CPU_INTERVAL) for CPU load monitoring + *************************************************/ +#define CPU_HIGH_LOAD_LOG_FREQ (60) + + +/************************************************* + * perf Profiling/Measurement Processes + * def:1 max:- min:1 + *************************************************/ +#define PERF_MAX_PROCS (1) + +/************************************************* + * perf profiling/Output rows (functions) + * def:5 max:- min:1 + *************************************************/ +#define PERF_MAX_LINES (5) + +/************************************************* + * perf pofiling/perf-record running time (sec) + * def:1 max:- min:1 + *************************************************/ +#define PERF_RECORD_SPAN (1) + +#define TOP_TIMEOUT (60) + +#define RESET_SEC (60) + + +#define WTC_CPU_INTERVAL (6) + +#define TASK_STAT_THRESHOLD (70) +#define FIFO_TIMER_LIMIT (6) +#define TSS_TIMER_LIMIT (60) + +#define CPU_TASK_INIT (1) +#define CPU_TASK_SHOW_BF (2) +#define CPU_TASK_SHOW_AF (3) +#define FIFO_TASK_SHOW (4) +#define TSS_TASK_SHOW (5) +#define CPU_FIFO_TASK_GET_ID (6) +#define CPU_TSS_TASK_GET_ID (7) +#define CPU_FIFO_TASK_GET_OCCUPANCY (8) +#define CPU_TSS_TASK_GET_OCCUPANCY (9) + +#define STATUS_IDOL (1) +#define STATUS_CHECK_CPU (2) +#define STATUS_WATCH_PROCESS (3) + +#define TASK_STAT_RANK_NUM (5) + + +#endif // RESOURCE_MANAGER_SERVER_INCLUDE_RESM_CFG_H_ |