Bug 26397

Summary: Modern kernels no longer use cputime for task->utime and task->stime
Product: systemtap Reporter: agentzh <agentzh>
Component: tapsetsAssignee: Unassigned <systemtap>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

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.