提交 b60b2080 编写于 作者: J Jinliang Li 提交者: yilu.myl

debug: debug command print cpu information

[Detail]
Debug cli command prints cpu_binded/cpu_num/cpu_exec information on
multi-core cpu.

[Verified Cases]
Build Pass: <py_engine_demo>
Test Pass:  <py_engine_demo>
上级 c288b3f4
......@@ -101,7 +101,8 @@ static void debug_task_show(int (*print_func)(const char *fmt, ...), ktask_t *ta
const name_t *task_name;
char s_task_overview[] = " 0x 0x "
" 0x (0x )\r\n";
" 0x (0x ) "
" \r\n";
if (krhino_task_stack_min_free(task, &free_size) != RHINO_SUCCESS) {
free_size = 0;
......@@ -144,8 +145,8 @@ static void debug_task_show(int (*print_func)(const char *fmt, ...), ktask_t *ta
(void)cpu_idx;
#if (RHINO_CONFIG_CPU_NUM > 1)
s_task_overview[cpu_idx] = (uint8_t)('0' + task->cpu_binded);
s_task_overview[cpu_idx + 10] = (uint8_t)('0' + task->cpu_num);
s_task_overview[cpu_idx + 20] = (uint8_t)('0' + task->cur_exc);
s_task_overview[cpu_idx + 12] = (uint8_t)('0' + task->cpu_num);
s_task_overview[cpu_idx + 23] = (uint8_t)('0' + task->cur_exc);
#endif
/* print */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册