From owner-p4-projects@FreeBSD.ORG Fri Jun 2 06:39:33 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 4814216ABC0; Fri, 2 Jun 2006 06:39:33 +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 0D8BF16ABBC for ; Fri, 2 Jun 2006 06:39:33 +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 AEDCA43D66 for ; Fri, 2 Jun 2006 06:39:30 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k526c0UW044836 for ; Fri, 2 Jun 2006 06:38:00 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k526c0rV044831 for perforce@freebsd.org; Fri, 2 Jun 2006 06:38:00 GMT (envelope-from jb@freebsd.org) Date: Fri, 2 Jun 2006 06:38:00 GMT Message-Id: <200606020638.k526c0rV044831@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 98313 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: Fri, 02 Jun 2006 06:39:33 -0000 http://perforce.freebsd.org/chv.cgi?CH=98313 Change 98313 by jb@jb_freebsd2 on 2006/06/02 06:37:48 Add the memory barrier code. These functions require the dtrace_ prefix so that DTrace doesn't try to trace them. That would be anal retentive. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hacks.c#15 edit .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/i386/dtrace_asm.S#3 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hacks.c#15 (text+ko) ==== @@ -11,15 +11,11 @@ dtrace_helpers_destroy, dtrace_helpers_duplicate, dtrace_inscratch, - dtrace_istoxic, dtrace_module_loaded, dtrace_module_unloaded, dtrace_priv_proc_control, dtrace_speculation, - dtrace_speculation_clean, - dtrace_state_clean, - dtrace_state_deadman, - dtrace_toxrange_add + dtrace_speculation_clean }; void dtrace_sync(void) @@ -29,14 +25,6 @@ #endif } void -dtrace_membar_producer(void) -{ -} -void -dtrace_membar_consumer(void) -{ -} -void dtrace_vtime_enable(void) { printf("%s:\n",__FUNCTION__); ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/i386/dtrace_asm.S#3 (text+ko) ==== @@ -192,3 +192,20 @@ ret SET_SIZE(dtrace_probe_error) +/* +void dtrace_membar_producer(void) +*/ + + ENTRY(dtrace_membar_producer) + rep; ret /* use 2 byte return instruction when branch target */ + /* AMD Software Optimization Guide - Section 6.2 */ + SET_SIZE(dtrace_membar_producer) + +/* +void dtrace_membar_consumer(void) +*/ + + ENTRY(dtrace_membar_consumer) + rep; ret /* use 2 byte return instruction when branch target */ + /* AMD Software Optimization Guide - Section 6.2 */ + SET_SIZE(dtrace_membar_consumer)