PERFORCE change 207115 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Wed Feb 29 21:26:05 UTC 2012


http://p4web.freebsd.org/@@207115?ac=10

Change 207115 by gonzo at gonzo_thinkpad on 2012/02/29 21:25:21

	- Implement dtrace_gethrestime using getnanotime

Affected files ...

.. //depot/projects/dtrace-mips/sys/cddl/dev/dtrace/mips/dtrace_subr.c#3 edit

Differences ...

==== //depot/projects/dtrace-mips/sys/cddl/dev/dtrace/mips/dtrace_subr.c#3 (text+ko) ====

@@ -202,8 +202,11 @@
 uint64_t
 dtrace_gethrestime(void)
 {
-	printf("%s(%d): XXX\n",__func__,__LINE__);
-	return (0);
+	struct      timespec curtime;
+
+	getnanotime(&curtime);
+
+	return (curtime.tv_sec * 1000000000UL + curtime.tv_nsec);
 }
 
 /* Function to handle DTrace traps during probes. See amd64/amd64/trap.c */


More information about the p4-projects mailing list