This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gettimeofday_ns accuracy


Hi,

Is there any other kind of time measure other than gettimeofday_ns()?

Since gettimeofday_ns is not that accurate, and has the possibility (and
does) sometimes go backwards in time.

So if you're using it to measure syscall times for instance, between start
probe and .return probe, then sometimes (normally when the start probe is on
one CPU and it then switches to another CPU for the return) it gives a
negative duration for the call.

Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]