Date: Tue, 6 Jun 2006 03:16:19 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 98627 for review Message-ID: <200606060316.k563GJiD088900@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=98627 Change 98627 by jb@jb_freebsd2 on 2006/06/06 03:16:09 Use the new built-in dtrace_gethrtime(). Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_freebsd.c#2 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_freebsd.c#2 (text+ko) ==== @@ -31,15 +31,6 @@ hrtime_t dtrace_gethrestime(void) { - struct timespec ts; - getnanouptime(&ts); - return (((u_int64_t) ts.tv_sec) * 1000000000 + ts.tv_nsec); -} - -hrtime_t -dtrace_gethrtime(void) -{ - struct timespec ts; - getnanouptime(&ts); - return (((u_int64_t) ts.tv_sec) * 1000000000 + ts.tv_nsec); + /* XXX This should get the walltimestamp */ + return (dtrace_gethrtime()); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606060316.k563GJiD088900>