Date: Fri, 21 Dec 2007 23:59:02 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 131395 for review Message-ID: <200712212359.lBLNx2tr046149@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=131395 Change 131395 by jb@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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712212359.lBLNx2tr046149>