Changeset d70f530 in rtems


Ignore:
Timestamp:
Jul 22, 2015, 1:41:44 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
9780fa93
Parents:
0910e9d4
git-author:
Sebastian Huber <sebastian.huber@…> (07/22/15 13:41:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/24/15 07:09:18)
Message:

monitor: Add current CPU of thread

Location:
cpukit/libmisc/monitor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/monitor/mon-task.c

    r0910e9d4 rd70f530  
    99#include <rtems.h>
    1010#include <rtems/monitor.h>
     11#include <rtems/score/threadimpl.h>
    1112#include <rtems/score/threadqimpl.h>
    1213
     
    2930    canonical_task->stack = rtems_thread->Start.Initial_stack.area;
    3031    canonical_task->stack_size = rtems_thread->Start.Initial_stack.size;
     32    canonical_task->cpu = _Per_CPU_Get_index( _Thread_Get_CPU( rtems_thread ) );
    3133    canonical_task->priority = rtems_thread->current_priority;
    3234    canonical_task->state = rtems_thread->current_state;
     
    5860{
    5961    fprintf(stdout,"\
    60 ID         NAME           PRI STATE  MODES    EVENTS WAITID   WAITQUEUE\n"); /*
    61 0a010004   SHLL           100 READY  P:T:nA     NONE 00000000 00000000 [DFLT] */
     62ID         NAME       CPU PRI STATE  MODES    EVENTS WAITID   WAITQUEUE\n"); /*
     630a010004   SHLL         0 100 READY  P:T:nA     NONE 00000000 00000000 [DFLT] */
    6264
    6365    rtems_monitor_separator();
     
    7880    length += rtems_monitor_pad(11, length);
    7981    length += rtems_monitor_dump_name(monitor_task->id);
     82    length += rtems_monitor_pad(21, length);
     83    length += rtems_monitor_dump_decimal(monitor_task->cpu);
    8084    length += rtems_monitor_pad(26, length);
    8185    length += rtems_monitor_dump_priority(monitor_task->priority);
  • cpukit/libmisc/monitor/monitor.h

    r0910e9d4 rd70f530  
    100100    void                      *stack;
    101101    uint32_t                   stack_size;
     102    uint32_t                   cpu;
    102103    rtems_task_priority        priority;
    103104    States_Control             state;
Note: See TracChangeset for help on using the changeset viewer.