Bug 194593

Summary: time unit wrong in Documentation/filesystems/proc.txt desc /proc/[pid]/stat
Product: Documentation Reporter: hujunjie (jj.net)
Component: man-pagesAssignee: documentation_man-pages (documentation_man-pages)
Status: NEW ---    
Severity: normal CC: k.a.avanish
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: Updated with new Changes

Description hujunjie 2017-02-15 03:12:15 UTC
FILE: Documentation/filesystems/proc.txt
---------------------------------------------------
 utime         user mode jiffies
 stime         kernel mode jiffies
 cutime        user mode jiffies with child's
 cstime        kernel mode jiffies with child's
 ...
 gtime         guest time of the task in jiffies
 cgtime        guest time of the task children in jiffies

this time unit change from jiffies to USER_HZ since 2.6, 
FILE: fs/proc/array.c
------------------------------
seq_put_decimal_ull(m, ' ', cputime_to_clock_t(utime));
seq_put_decimal_ull(m, ' ', cputime_to_clock_t(stime));
seq_put_decimal_ll(m, ' ', cputime_to_clock_t(cutime));
seq_put_decimal_ll(m, ' ', cputime_to_clock_t(cstime));
...
seq_put_decimal_ull(m, ' ', cputime_to_clock_t(gtime));
seq_put_decimal_ll(m, ' ', cputime_to_clock_t(cgtime));
Comment 1 Avanish.K.A 2019-01-26 08:18:53 UTC
Created attachment 280785 [details]
Updated with new Changes