[Crash-utility] [BUG] ps -t pid

John Blackwood john.blackwood at ccur.com
Thu Jan 7 22:09:56 UTC 2016


Hi Dave,

I just wanted to report a minor issue.

The -t option on the 'ps' command will return invalid values for newer
kernels.

I believe that this has to do with newer kernels around the 3.17
timeframe having the 'start_time' field in the task_struct structure
changed from being a 'struct timespec' to being a 'u64' value.

I'm using a 4.1 based kernel. (The 3.16 based kernel that I also tried
it on does not exhibit this issue.)

For example:

crash> ps -t 1
PID: 1      TASK: ffff88046d688000  CPU: 8   COMMAND: "systemd"
     RUN TIME: 213503982286 days, 08:28:04
   START TIME: 126000000
        UTIME: 486536482
        STIME: 8484707060

I'm afraid that I do not possess the skill to suggest a fix,
but I thought that I would mention it.

Thanks for reading this.




More information about the Crash-utility mailing list