Bug 26397 - Modern kernels no longer use cputime for task->utime and task->stime
Summary: Modern kernels no longer use cputime for task->utime and task->stime
Status: UNCONFIRMED
Alias: None
Product: systemtap
Classification: Unclassified
Component: tapsets (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-16 20:09 UTC by agentzh
Modified: 2020-08-16 20:09 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description agentzh 2020-08-16 20:09:00 UTC
The task_time_string() tapset function assumes task->{utime,stime} to be cputime (or jiffies), which leads to very wrong results being returned. Modern kernels already use nanoseconds for these two fields.
Comment 1 agentzh 2020-08-16 20:09:55 UTC
Not sure how to add a stap feature test for this kernel change.