Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2014 01:41:19 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266826 - head/sys/sys
Message-ID:  <201405290141.s4T1fJfQ091369@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Thu May 29 01:41:19 2014
New Revision: 266826
URL: http://svnweb.freebsd.org/changeset/base/266826

Log:
  Move some duplicated hook definitions from machine-dependent files to
  kern_dtrace.c.
  
  Reviewed by:	rpaulo
  MFC after:	1 week

Modified:
  head/sys/sys/dtrace_bsd.h

Modified: head/sys/sys/dtrace_bsd.h
==============================================================================
--- head/sys/sys/dtrace_bsd.h	Thu May 29 01:01:54 2014	(r266825)
+++ head/sys/sys/dtrace_bsd.h	Thu May 29 01:41:19 2014	(r266826)
@@ -59,10 +59,12 @@ int	dtrace_trap(struct trapframe *, u_in
 
 extern dtrace_trap_func_t	dtrace_trap_func;
 
-/* Used by the machine dependent trap() code. */
+/*
+ * A hook which removes active FBT probes before executing the double fault
+ * handler. We want to ensure that DTrace doesn't trigger another trap, which
+ * would result in a reset.
+ */
 typedef void (*dtrace_doubletrap_func_t)(void);
-
-/* Global variables in trap.c */
 extern	dtrace_doubletrap_func_t	dtrace_doubletrap_func;
 
 /* Pid provider hooks */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405290141.s4T1fJfQ091369>