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

Dave Anderson anderson at redhat.com
Mon Jan 11 20:57:26 UTC 2016



----- Original Message -----
> 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.

A fix has been queued for crash-7.1.5:

  https://github.com/crash-utility/crash/commit/63f7707d2b534bab2a18c52db41daae7e9c5e505

Thanks again for the report,
  Dave


  




More information about the Crash-utility mailing list