PERFORCE change 131395 for review

John Birrell jb at FreeBSD.org
Fri Dec 21 15:59:08 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=131395

Change 131395 by jb at jb_freebsd1 on 2007/12/21 23:58:22

	Move a couple of function prototypes into a DTrace-specfic header
	so that they aren't visible to others. The functions are
	machine-specific and are only present if the KDTRACE_HOOKS
	kernel option is enabled.

Affected files ...

.. //depot/projects/dtrace/src/sys/sys/dtrace_bsd.h#5 edit
.. //depot/projects/dtrace/src/sys/sys/time.h#13 edit

Differences ...

==== //depot/projects/dtrace/src/sys/sys/dtrace_bsd.h#5 (text+ko) ====

@@ -58,4 +58,11 @@
 size_t	kdtrace_proc_size(void);
 size_t	kdtrace_thread_size(void);
 
+/*
+ * OpenSolaris compatible time functions returning nanoseconds.
+ * On OpenSolaris these return hrtime_t which we define as uint64_t.
+ */
+uint64_t	dtrace_gethrtime(void);
+uint64_t	dtrace_gethrestime(void);
+
 #endif /* _SYS_DTRACE_BSD_H */

==== //depot/projects/dtrace/src/sys/sys/time.h#13 (text+ko) ====

@@ -304,8 +304,6 @@
 void	timevaladd(struct timeval *t1, const struct timeval *t2);
 void	timevalsub(struct timeval *t1, const struct timeval *t2);
 int	tvtohz(struct timeval *tv);
-uint64_t	dtrace_gethrtime(void);
-uint64_t	dtrace_gethrestime(void);
 #else /* !_KERNEL */
 #include <time.h>
 


More information about the p4-projects mailing list