Is your feature request related to a problem? Please describe.
OS_TaskCreate_Impl for RTEMS now adds task names here (as of #1407):
|
pthread_setname_np(impl->id, task->task_name); |
But OS_ConsoleCreate_Impl and OS_TimeBaseCreate_Impl call rtems_task_create directly and don't set the posix task name:
|
status = rtems_task_create(r_name, OS_CONSOLE_TASK_PRIORITY, OS_CONSOLE_TASK_STACKSIZE, |
|
RTEMS_PREEMPT | RTEMS_NO_ASR | RTEMS_NO_TIMESLICE | RTEMS_INTERRUPT_LEVEL(0), |
|
RTEMS_LOCAL, &r_task_id); |
|
rtems_sc = rtems_task_create(r_name, RTEMS_MINIMUM_PRIORITY + 1, 0, |
|
RTEMS_PREEMPT | RTEMS_NO_ASR | RTEMS_NO_TIMESLICE | RTEMS_INTERRUPT_LEVEL(0), |
|
RTEMS_LOCAL, &local->handler_task); |
This results in the names showing up as blank when reported by cpuuse.
Describe the solution you'd like
Set posix task names
Describe alternatives you've considered
None
Additional context
None
Requester Info
Jacob Hageman - NASA/GSFC
Is your feature request related to a problem? Please describe.
OS_TaskCreate_Implfor RTEMS now adds task names here (as of #1407):osal/src/os/rtems/src/os-impl-tasks.c
Line 132 in b5dd01c
But
OS_ConsoleCreate_ImplandOS_TimeBaseCreate_Implcallrtems_task_createdirectly and don't set the posix task name:osal/src/os/rtems/src/os-impl-console.c
Lines 159 to 161 in b5dd01c
osal/src/os/rtems/src/os-impl-timebase.c
Lines 378 to 380 in b5dd01c
This results in the names showing up as blank when reported by
cpuuse.Describe the solution you'd like
Set posix task names
Describe alternatives you've considered
None
Additional context
None
Requester Info
Jacob Hageman - NASA/GSFC