Date: Wed, 19 Mar 2008 23:00:28 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 138138 for review Message-ID: <200803192300.m2JN0SAF078070@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=138138 Change 138138 by jb@jb_freebsd8 on 2008/03/19 23:00:14 Filter the trap type to only those that DTrace uses to avoid calling the hook function when not necessary. Affected files ... .. //depot/projects/dtrace/src/sys/i386/i386/trap.c#30 edit Differences ... ==== //depot/projects/dtrace/src/sys/i386/i386/trap.c#30 (text+ko) ==== @@ -252,7 +252,8 @@ * handled the trap and modified the trap frame so that this * function can return normally. */ - if (dtrace_trap_func != NULL) + if ((type == T_PROTFLT || type == T_PAGEFLT) && + dtrace_trap_func != NULL) if ((*dtrace_trap_func)(frame, type)) goto out; #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803192300.m2JN0SAF078070>