PERFORCE change 97781 for review

John Birrell jb at FreeBSD.org
Thu May 25 01:41:05 UTC 2006


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

Change 97781 by jb at jb_freebsd2 on 2006/05/25 01:39:34

	Add a hook for the invalid opcode function that DTrace uses to
	locate the callsite of a (FBT or SDT) probe.

Affected files ...

.. //depot/projects/dtrace/src/sys/i386/i386/trap.c#6 edit

Differences ...

==== //depot/projects/dtrace/src/sys/i386/i386/trap.c#6 (text+ko) ====

@@ -105,18 +105,26 @@
 
 #ifdef KDTRACE
 #include <sys/cpuvar.h>
+#include <machine/dtrace.h>
 
 /*
- * This is a hook which is initialised by the dtrace module
+ * These are hooks which are  initialised by the dtrace module
  * when it is loaded. This keeps the DTrace implementation
- * opaque. All that the trap() function below needs to determine
- * is how many instruction bytes to osset the instruction
+ * opaque.
+ *
+ * All that the trap() function below needs to determine
+ * is how many instruction bytes to offset the instruction
  * pointer before returning from a trap that occured durin a
  * 'no-fault' DTrace probe.
  */
 dtrace_instr_size_func_t	dtrace_instr_size_func;
 
 /*
+ * This hook handles invalid opcodes.
+ */
+dtrace_invop_func_t	dtrace_invop_func;
+
+/*
  * This is a hook which is initialised by the systrace module
  * when it is loaded. This keeps the DTrace syscall provider
  * implementation opaque. 


More information about the p4-projects mailing list