Bug 194593 - time unit wrong in Documentation/filesystems/proc.txt desc /proc/[pid]/stat
Summary: time unit wrong in Documentation/filesystems/proc.txt desc /proc/[pid]/stat
Status: NEW
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-15 03:12 UTC by hujunjie
Modified: 2019-01-26 08:18 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Updated with new Changes (89.02 KB, patch)
2019-01-26 08:18 UTC, Avanish.K.A
Details | Diff

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

Note You need to log in before you can comment on or make changes to this bug.