Date: Fri, 28 Apr 2006 06:58:59 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96296 for review Message-ID: <200604280658.k3S6wx4j050799@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96296 Change 96296 by jb@jb_freebsd2 on 2006/04/28 06:58:58 Remove a lot of hacks. The functions removed are now implemented in ASM code as on Solaris. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hacks.c#12 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hacks.c#12 (text+ko) ==== @@ -68,52 +68,21 @@ void *hack_refs[] = { - dtrace_toxrange_add, dtrace_cpu_setup_initial, - dtrace_module_unloaded, - dtrace_module_loaded, - dtrace_dof_create, - dtrace_enabling_matchstate, - dtrace_enabling_replicate, - dtrace_buffer_polish, - dtrace_buffer_switch, - dtrace_aggid2agg, - dtrace_epid2ecb, - dtrace_state_deadman, - dtrace_state_clean, + dtrace_getustack_common, + dtrace_helper, + dtrace_helper_slurp, + dtrace_helpers_destroy, dtrace_helpers_duplicate, - dtrace_helpers_destroy, - dtrace_state_stop, - dtrace_state_go, - dtrace_helper_slurp, - dtrace_dof_copyin, - dtrace_speculation_buffer, - dtrace_speculation, - dtrace_helper, - dtrace_speculation_discard, - dtrace_error, dtrace_inscratch, - dtrace_canstore, - dtrace_strncmp, - dtrace_strlen, dtrace_istoxic, - dtrace_vcopy, - dtrace_bzero, - dtrace_priv_proc_destructive, + dtrace_module_loaded, + dtrace_module_unloaded, dtrace_priv_proc_control, - dtrace_priv_kernel_destructive, - dtrace_aggregate, - dtrace_dif_variable, - dtrace_dif_subr, - dtrace_action_breakpoint, - dtrace_action_panic, - dtrace_action_raise, - dtrace_action_stop, - dtrace_action_chill, - dtrace_action_ustack, - dtrace_strncmp, - dtrace_strlen, - dtrace_istoxic + dtrace_speculation, + dtrace_state_clean, + dtrace_state_deadman, + dtrace_toxrange_add }; void dtrace_sync(void) @@ -146,55 +115,12 @@ kdb_backtrace(); vprintf(fmt,args); } -uint32_t -dtrace_cas32(uint32_t *target, uint32_t cmp, uint32_t new) -{ - uint32_t old; - - if ((old = *target) == cmp) - *target = new; - return (old); - -} -void *dtrace_casptr(void *a, void *b, void *c) -{ - printf("%s:\n",__FUNCTION__); - return NULL; -} -void -dtrace_getpcstack(pc_t *a, int b, int c, uint32_t *d) -{ - printf("%s:\n",__FUNCTION__); -} -void -dtrace_getupcstack(uint64_t *a, int b) -{ - printf("%s:\n",__FUNCTION__); -} int -dtrace_getstackdepth(int a) -{ - printf("%s:\n",__FUNCTION__); - return 0; -} -uint64_t -dtrace_getarg(int a, int b) -{ - printf("%s:\n",__FUNCTION__); - return 0; -} -int dtrace_getipl(void) { printf("%s:\n",__FUNCTION__); return 0; } -uintptr_t -dtrace_caller(int a) -{ - printf("%s:\n",__FUNCTION__); - return 0; -} boolean_t priv_policy_only(const cred_t *a, int b, boolean_t c) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604280658.k3S6wx4j050799>