lkcd
[Top] [All Lists]

new field in task command

To: lkcd@xxxxxxxxxxx
Subject: new field in task command
From: "Michael Holzheu" <HOLZHEU@xxxxxxxxxx>
Date: Thu, 20 Sep 2001 14:59:09 +0200
Cc: "Michael Geselbracht" <MGESEL@xxxxxxxxxx>
Importance: Normal
Sender: owner-lkcd@xxxxxxxxxxx
Hi,

Would have anybody here a problem, if we add a new field "CPU"
to the output of the "task" command of lcrash. This field should
show the cpu number of the actual running task

When developing the GUI (QLCRASH) for lcrash we found that it
would be very usefull to have this information. The state field alone is
not sufficient to identify running tasks since a "0" does only mean
"runnable"

This could be a possible output:

The CPU column should be obtained from the task_struct.processor:

      ADDR    UID    PID   PPID  STATE     CPU   FLAGS  NAME
===============================================================================
  0x1ac000      0      0      0      0       0       0  swapper
  0x5b4000      0      1      0      1       -   0x100  init
  0x59e000      0      2      1      1       -    0x40  kmcheck
  0x59c000      0      3      1      1       -    0x40  keventd
  0x59a000      0      4      0      0       1    0x40  ksoftirqd_CPU0
  0x598000      0      5      0      1       -    0x40  ksoftirqd_CPU1
  0x596000      0      6      0      1       -    0x40  ksoftirqd_CPU2
 0x7ffa000      0      7      0      0       -   0x840  kswapd


Regards

       Michael

------------------------------------------------------------------------
Linux/390 Development
Phone: +49-7031-16-2360,  Bld 71032-06-109
Email: holzheu@xxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>