warning: trace_dump_sched_switch unused because add SCHED_INSTRUMENTATION_SWITCH

https://github.com/apache/incubator-nuttx/pull/4998
note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH #4998
This commit is contained in:
zhanghu6 2021-12-06 12:05:41 +08:00 committed by Xiang Xiao
parent a2c8fa182a
commit a63aef8f02

View File

@ -308,6 +308,8 @@ static void trace_dump_header(FAR FILE *out,
); );
} }
#if (defined CONFIG_SCHED_INSTRUMENTATION_SWITCH) || \
(defined CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER)
/**************************************************************************** /****************************************************************************
* Name: trace_dump_sched_switch * Name: trace_dump_sched_switch
****************************************************************************/ ****************************************************************************/
@ -339,6 +341,7 @@ static void trace_dump_sched_switch(FAR FILE *out,
cctx->current_pid = cctx->next_pid; cctx->current_pid = cctx->next_pid;
cctx->pendingswitch = false; cctx->pendingswitch = false;
} }
#endif
/**************************************************************************** /****************************************************************************
* Name: trace_dump_one * Name: trace_dump_one