From owner-p4-projects@FreeBSD.ORG Wed Dec 19 03:08:10 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4A44216A41B; Wed, 19 Dec 2007 03:08:10 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB12F16A417 for ; Wed, 19 Dec 2007 03:08:09 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id CC58A13C442 for ; Wed, 19 Dec 2007 03:08:09 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBJ3893r004991 for ; Wed, 19 Dec 2007 03:08:09 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBJ389QE004988 for perforce@freebsd.org; Wed, 19 Dec 2007 03:08:09 GMT (envelope-from jb@freebsd.org) Date: Wed, 19 Dec 2007 03:08:09 GMT Message-Id: <200712190308.lBJ389QE004988@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 131199 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2007 03:08:10 -0000 http://perforce.freebsd.org/chv.cgi?CH=131199 Change 131199 by jb@jb_freebsd1 on 2007/12/19 03:07:20 Let's keep all the DTrace hook definitions in one file: dtrace_bsd.h These *MUST* be BSD licensed to keep CDDL code quarantined. Even so, the KDTRACE_HOOKS option lets embedded developers ignore all things DTrace related. I just hope that _everyone_ will have KDTRACE_HOOKS defined. Affected files ... .. //depot/projects/dtrace/src/sys/sys/dtrace_bsd.h#3 edit .. //depot/projects/dtrace/src/sys/sys/systm.h#16 edit Differences ... ==== //depot/projects/dtrace/src/sys/sys/dtrace_bsd.h#3 (text+ko) ==== @@ -31,6 +31,12 @@ #ifndef _SYS_DTRACE_BSD_H #define _SYS_DTRACE_BSD_H +/* + * Cyclic clock function type definition used to hook the cyclic + * subsystem into the appropriate timer interrupt. + */ +typedef void (*cyclic_clock_func_t)(void); + /* Used by the machine dependent trap() code. */ typedef int (*dtrace_invop_func_t)(uintptr_t, uintptr_t *, uintptr_t); ==== //depot/projects/dtrace/src/sys/sys/systm.h#16 (text+ko) ==== @@ -217,12 +217,6 @@ void realitexpire(void *); -/* - * Cyclic clock function type definition used to hook the cyclic - * subsystem into the appropriate timer interrupt. - */ -typedef void (*cyclic_clock_func_t)(void); - void hardclock(int usermode, uintfptr_t pc); void hardclock_cpu(int usermode); void softclock(void *);