[RTEMS Project] #4278: cpuusagetop.c
RTEMS trac
trac at rtems.org
Mon Mar 1 21:01:48 UTC 2021
#4278: cpuusagetop.c
------------------------+--------------------
Reporter: Ryan Long | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: lib | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
------------------------+--------------------
CID 1399726: Missing break in switch in task_usage().
CID 1399728: Missing break in switch in task_usage().
CID 1399742: Missing break in switch in task_usage().
CID 1399726
{{{
233 continue;
CID 1399726 (#1 of 1): Missing break in switch
(MISSING_BREAK)unterminated_case: The case for value 2U is not terminated
by a break statement.
234 case RTEMS_TOP_SORT_CURRENT_PRI:
235 if (
236 _Thread_Get_priority( thread )
237 > _Thread_Get_priority( data->tasks[j] )
238 ) {
239 continue;
240 }
fallthrough: The above case falls through to this one.
}}}
CID 1399728
{{{
230 continue;
CID 1399728 (#1 of 1): Missing break in switch
(MISSING_BREAK)unterminated_case: The case for value 1U is not terminated
by a break statement.
231 case RTEMS_TOP_SORT_REAL_PRI:
232 if (thread->Real_priority.priority >
data->tasks[j]->Real_priority.priority)
233 continue;
fallthrough: The above case falls through to this one.
234 case RTEMS_TOP_SORT_CURRENT_PRI:
}}}
CID 1399742
{{{
226 continue;
CID 1399742 (#1 of 1): Missing break in switch
(MISSING_BREAK)unterminated_case: The case for value 3U is not terminated
by a break statement.
227 case RTEMS_TOP_SORT_TOTAL:
228 if (CPU_usage_Equal_to(&usage, &data->zero) ||
229 CPU_usage_Less_than(&usage, &data->usage[j]))
230 continue;
fallthrough: The above case falls through to this one.
231 case RTEMS_TOP_SORT_REAL_PRI:
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4278>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list