forked from heishv/vxworks-realtime-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
realtime_debug_config.h
52 lines (35 loc) · 1.96 KB
/
realtime_debug_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* Copyright (c) 2019, heishv
* All rights reserved.
*
* SPDX-License-Identifier: Apache License 2.0
*/
/* Default configuration for task_switch_trace */
/* Maximum core number, if real core number greater than it, initialization will be failed. */
/* If real core number less than it, record info by real core number */
#define TRACE_CORE_NUM 32
/* Maximum number of records that can be recorded for each core */
#define TRACE_RECORD_NUM 2000
/* Worker task priority, should higher than idle task, but lower than realtime task */
#define TRACE_WORKER_TASK_PRIORITY 200
/* If defined, loop layover, layover from start when reach max record number */
/* Or finish when reach max record number. */
/*#define TRACE_LAYOVER_ENABLE*/
/* If define TRACE_SAVE_FILE_ENABLE, need enable dosfs related components */
/* TRACE_TARGET_FILE should include full path and file name, suchu as "/sd0:1/trace" or "host:/trace" */
/*#define TRACE_SAVE_FILE_ENABLE*/
#define TRACE_TARGET_FILE "host:/trace"
/* Print all info after tr_stop() invoked */
#define TRACE_PRINT_ENABLE
/* Summarize all task info */
#define TRACE_AUTO_ANALYSIS_ENABLE
/* If system is not 100% busy, task will not switch out when there no other task is ready, */
/* so the result is not real. Create a task with 255 priority, it will occupy spare time. */
/* To let test result more accurate. */
/* For multi-core cpu, vxWorks will create idle task automatically, don't need enable it again. */
/*#define TRACE_IDLE_TASK_ENABLE*/
/* Default configuration for task_preemt_analysis */
/* If target task was preempted, save as a event. How many events are allowed to be save */
/* Reach this number, recording will be stopped automatically */
#define PREEMPT_EVENT_MAX_NUMBER 1000
/* If enabled, record all events related to the target task. Otherwise, only preemption events are recorded */
/*#define PREEMPT_SAVE_ALL_ENABLE*/