Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RTEMS console and timebase task names #1421

Closed
skliper opened this issue Sep 25, 2023 · 0 comments · Fixed by #1422
Closed

Add RTEMS console and timebase task names #1421

skliper opened this issue Sep 25, 2023 · 0 comments · Fixed by #1422
Assignees

Comments

@skliper
Copy link
Contributor

skliper commented Sep 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant