Skip to content

Rtems should show task names when typing cpuuse #1281

@thesamprice

Description

@thesamprice

Describe the bug
typing cpuuse in console should show rtems names.

Add the following bits to OS_TaskCreate_Impl in rtems

#include <rtems/score/threadimpl.h>
...
    ISR_lock_Context  lock_context_1;
    Thread_Control *the_thread;
...
    the_thread = _Thread_Get(impl->id, &lock_context_1 );
    _Thread_Set_name(the_thread, task->task_name);
    

Expected behavior
rtems should register its name, so it shows up when using rtems commands.

Code snips
If applicable, add references to the software.

System observed on:

  • Hardware microblaze
  • OS: rtems 6

Additional context
Better debug info in rtems

Reporter Info
Nasa

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions