Regarding curthread->td_runtime

abhishek kulkarni abhya007 at gmail.com
Thu Jul 23 01:53:00 UTC 2015


Hello,

I am trying to implement the last switch sorted feature which would display
the last 10 ten threads( as per the timestamp) that got the cpu. I want to
display the run time of the last 10 threads that got the cpu  as well. So,
I am printing the curthread->td_runtime in the on-cpu probe. So, is
curthread->td_runtime a cumulative value? or an incremental value which
denotes the time for which that thread got the cpu and was switched?
Looking forward to hear from you on this.

Thanks and Regards
Abhishek Kulkarni


More information about the freebsd-dtrace mailing list