Re: [PATCH] procfs: Fix process creation time in /proc/pid/stat

2023-04-18 Thread Samuel Thibault
Applied, thanks! Sergey Bugaev, le mar. 18 avril 2023 13:49:02 +0300, a ecrit: > This was always showing up as 0, because apparently we need to query > creation_time for the task, not a thread. > > Here's a before vs after comparison: > > $ cat /proc/self/stat ~/procfs/self/stat > 11151 (cat) S

[PATCH] procfs: Fix process creation time in /proc/pid/stat

2023-04-18 Thread Sergey Bugaev
This was always showing up as 0, because apparently we need to query creation_time for the task, not a thread. Here's a before vs after comparison: $ cat /proc/self/stat ~/procfs/self/stat 11151 (cat) S 26571 11151 26571 0 0 0 0 0 0 0 1 0 0 0 20 0 2 0 0 154783744 251 0 134443008 134477480 0 0 0