aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2016-08-02 14:03:22 -0700
committerLinus Torvalds <[email protected]>2016-08-02 17:31:41 -0400
commit519ded5a89ec0e46e5b0867ba9f5752239b73898 (patch)
tree59af01944e5b0abfe24e9b8cdf619f7875f7a08a /tools/perf/scripts/python/stat-cpi.py
parentef419398b68925f21fd3d8463c7bf6934d2ec926 (diff)
procfs: avoid 32-bit time_t in /proc/*/stat
/proc/stat shows (among lots of other things) the current boottime (i.e. number of seconds since boot). While a 32-bit number is sufficient for this particular case, we want to get rid of the 'struct timespec' suffers from a 32-bit overflow in 2038. This changes the code to use a struct timespec64, which is known to be safe in all cases. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions