PERFORCE change 135401 for review

John Birrell jb at FreeBSD.org
Thu Feb 14 12:47:47 PST 2008


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

Change 135401 by jb at jb_freebsd1 on 2008/02/14 20:47:19

	Add the malloc probe definitions.

Affected files ...

.. //depot/projects/dtrace/src/sys/sys/dtrace_bsd.h#13 edit

Differences ...

==== //depot/projects/dtrace/src/sys/sys/dtrace_bsd.h#13 (text+ko) ====

@@ -85,6 +85,12 @@
 /* Global variable in kern_exit.c */
 extern dtrace_execexit_func_t	dtrace_fasttrap_exit;
 
+/* The dtmalloc provider hooks into malloc. */
+typedef	void (*dtrace_malloc_probe_func_t)(u_int32_t, uintptr_t arg0,
+    uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4);
+
+extern dtrace_malloc_probe_func_t   dtrace_malloc_probe;
+
 /*
  * Functions which allow the dtrace module to check that the kernel 
  * hooks have been compiled with sufficient space for it's private


More information about the p4-projects mailing list