Skip to content

Add RTEMS console and timebase task names #1421

@skliper

Description

@skliper

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions