Date: Fri, 2 Jun 2006 06:38:00 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 98313 for review Message-ID: <200606020638.k526c0rV044831@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606020638.k526c0rV044831>