Date: Thu, 25 May 2006 01:40:11 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 97781 for review Message-ID: <200605250140.k4P1eB6A005228@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=97781 Change 97781 by jb@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605250140.k4P1eB6A005228>