From owner-p4-projects@FreeBSD.ORG Sat Apr 22 23:31:25 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 71E6916A406; Sat, 22 Apr 2006 23:31:25 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 393F216A401 for ; Sat, 22 Apr 2006 23:31:25 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C10C443D46 for ; Sat, 22 Apr 2006 23:31:24 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3MNVOWB016043 for ; Sat, 22 Apr 2006 23:31:24 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3MNVOP4016037 for perforce@freebsd.org; Sat, 22 Apr 2006 23:31:24 GMT (envelope-from jb@freebsd.org) Date: Sat, 22 Apr 2006 23:31:24 GMT Message-Id: <200604222331.k3MNVOP4016037@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 95903 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: Sat, 22 Apr 2006 23:31:25 -0000 http://perforce.freebsd.org/chv.cgi?CH=95903 Change 95903 by jb@jb_freebsd2 on 2006/04/22 23:30:37 Another day. Another hack. Or two. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hacks.c#3 edit .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hacks.h#3 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hacks.c#3 (text+ko) ==== @@ -180,3 +180,8 @@ { return 0; } +int +kdi_dtrace_set(kdi_dtrace_set_t a) +{ + return 0; +} ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hacks.h#3 (text+ko) ==== @@ -128,3 +128,17 @@ void kmem_cache_free(kmem_cache_t *, void *); uint64_t kmem_cache_stat(kmem_cache_t *, char *); void kmem_cache_reap_now(kmem_cache_t *); + +typedef enum kdi_dtrace_set { + KDI_DTSET_DTRACE_ACTIVATE, + KDI_DTSET_DTRACE_DEACTIVATE, + KDI_DTSET_KMDB_BPT_ACTIVATE, + KDI_DTSET_KMDB_BPT_DEACTIVATE +} kdi_dtrace_set_t; + +typedef enum { + KDI_DTSTATE_DTRACE_ACTIVE, + KDI_DTSTATE_IDLE, + KDI_DTSTATE_KMDB_BPT_ACTIVE +} kdi_dtrace_state_t; +int kdi_dtrace_set(kdi_dtrace_set_t);