]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: add dtrace_gethrtime() and fix walltimestamp.
authorKris Van Hees <kris.van.hees@oracle.com>
Thu, 8 Sep 2011 15:13:26 +0000 (11:13 -0400)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:39:55 +0000 (22:39 +0100)
commit64ef4e504fd8cb46d3abe2e6c25df69b11379d5e
tree4c67072a43f7f0958609d7bc572f48c75ea904d3
parente61d708aa6cd6179fde3204358d2c36983952027
dtrace: add dtrace_gethrtime() and fix walltimestamp.

The walltimestamp is required to be the time in nanoseconds since the epoch,
not the time in nanoseconds since boot or since dtrace invocation.

So we no longer need dtrace_mstate.dtms_walltimestamp, nor the flag used to
track its updating: but we *do* need a new way to get the time that is safe
for non-GPL use.

This fixes test/act/time.d (which is the only test that checks if walltimestamp
not only exists but returns the right value).

Orabug: 18376038

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Acked-by: Jerry Snitselaar <jerry.snitselaar@oracle.com>
kernel/dtrace/dtrace_os.c