PERFORCE change 138138 for review

John Birrell jb at FreeBSD.org
Wed Mar 19 23:00:29 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=138138

Change 138138 by jb at 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


More information about the p4-projects mailing list