Cosmetic changes for "ps, heapinfo and stkmon" command output
authorpradeep.ns <pradeep.ns@samsung.com>
Mon, 29 May 2017 16:41:33 +0000 (22:11 +0530)
committerpradeep.ns <pradeep.ns@samsung.com>
Tue, 30 May 2017 15:24:21 +0000 (20:54 +0530)
commitc1faa592e08364f7ae16334051ae62126e0deeaf
tree8be47b18d165e0f16436e38d1516c4ae461f10a2
parent90fadbfd8c1872a47ff668f5d516b8b3aa76ed0c
Cosmetic changes for "ps, heapinfo and stkmon" command output

New changes can be verified using TASH
1) with CONFIG_TASK_NAME_SIZE=0
TASH>>ps

  PID | PRIO | FLAG |  TYPE   | NP |  STATUS
------|------|------|---------|----|--------
    0 |    0 | FIFO | KTHREAD |    | READY
    1 |  224 | RR   | KTHREAD |    | WAITSIG
    3 |  125 | RR   | TASK    |    | RUNNING

2) with CONFIG_TASK_NAME_SIZE=31

TASH>>ps
PID | PRIO | FLAG |  TYPE   | NP |  STATUS  | NAME
----|------|------|---------|----|----------|----------
  0 |    0 | FIFO | KTHREAD |    | READY    | Idle Task
  1 |  224 | RR   | KTHREAD |    | WAITSIG  | hpwork
  3 |  125 | RR   | TASK    |    | RUNNING  | tash

heap output can be verified as follows

TASH>>heapinfo -a
TASH>>heapinfo -f
TASH>>heapinfo -p

stack monitor output can be verified as follows
TASH>>stkmon
TASH>>Stack Monitor: Running
=============================================================================
  PID |   STATUS |     SIZE | PEAK_STACK |  PEAK_HEAP |    TIME | THREAD NAME
------|----------|----------|------------|------------|---------|------------
   44 | INACTIVE |     2028 |        556 |          0 |    4390 | waiter
   46 | INACTIVE |     2044 |        500 |          0 |    6639 | <pthread>
   45 | INACTIVE |     2044 |        500 |          0 |    6639 | <pthread>
   58 | INACTIVE |     2044 |        452 |          0 |    6795 | <pthread>
   47 | INACTIVE |     2044 |        452 |          0 |    6795 | <pthread>
------|----------|----------|------------|------------|---------|------------
    0 |   ACTIVE |     1024 |       1024 |      59504 |   20740 | Idle Task
    1 |   ACTIVE |     2028 |        156 |          0 |   20742 | hpwork
    3 |   ACTIVE |     4076 |        876 |       3584 |   20742 | tash
   71 |   ACTIVE |     1020 |        524 |          0 |   20743 | StackMonitor

Signed-off-by: pradeep.ns <pradeep.ns@samsung.com>
apps/system/utils/kdbg_heapinfo.c
apps/system/utils/kdbg_ps.c
apps/system/utils/kdbg_stackmonitor.c
os/mm/mm_heap/mm_heapinfo.c