]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/machine/sdt.h
xnu-6153.11.26.tar.gz
[apple/xnu.git] / osfmk / mach / machine / sdt.h
index 551f2b0fc496d1f385198742030e67577c84642c..9c24d5db7bbde841e3b84e30f9fe07d38e00d40f 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2007 Apple Inc. All rights reserved.
+ * Copyright (c) 2007-2019 Apple Inc. All rights reserved.
  */
 /*
  * CDDL HEADER START
  */
 /*
  * CDDL HEADER START
@@ -28,7 +28,7 @@
  */
 
 #ifndef _MACH_MACHINE_SYS_SDT_H
  */
 
 #ifndef _MACH_MACHINE_SYS_SDT_H
-#define        _MACH_MACHINE_SYS_SDT_H
+#define _MACH_MACHINE_SYS_SDT_H
 
 #include <mach/machine/sdt_isa.h>
 
 
 #include <mach/machine/sdt_isa.h>
 
  * types is undefined.
  */
 
  * types is undefined.
  */
 
-#define DTRACE_PROBE(provider, name) {                                                         \
-       DTRACE_CALL0ARGS(provider, name)                                                        \
+#define DTRACE_PROBE(provider, name) {                                                          \
+       DTRACE_CALL0ARGS(provider, name)                                                        \
 }
 
 }
 
-#define DTRACE_PROBE1(provider, name, arg0) {                                                  \
-       uintptr_t __dtrace_args[ARG1_EXTENT] __attribute__ ((aligned (16)));                    \
-       __dtrace_args[0] = (uintptr_t)arg0;                                                             \
-       DTRACE_CALL1ARG(provider, name)                                                         \
+#define DTRACE_PROBE1(provider, name, arg0) {                                                   \
+       uintptr_t __dtrace_args[ARG1_EXTENT] __attribute__ ((aligned (16)));                    \
+       __dtrace_args[0] = (uintptr_t)(arg0);                                                             \
+       DTRACE_CALL1ARG(provider, name)                                                         \
 }
 
 }
 
-#define DTRACE_PROBE2(provider, name, arg0, arg1) {                                            \
-       uintptr_t __dtrace_args[ARGS2_EXTENT] __attribute__ ((aligned (16)));                   \
-       __dtrace_args[0] = (uintptr_t)arg0;                                                             \
-       __dtrace_args[1] = (uintptr_t)arg1;                                                             \
-       DTRACE_CALL2ARGS(provider, name)                                                        \
+#define DTRACE_PROBE2(provider, name, arg0, arg1) {                                             \
+       uintptr_t __dtrace_args[ARGS2_EXTENT] __attribute__ ((aligned (16)));                   \
+       __dtrace_args[0] = (uintptr_t)(arg0);                                                             \
+       __dtrace_args[1] = (uintptr_t)(arg1);                                                             \
+       DTRACE_CALL2ARGS(provider, name)                                                        \
 }
 
 }
 
-#define DTRACE_PROBE3(provider, name, arg0, arg1, arg2) {                                      \
-       uintptr_t __dtrace_args[ARGS3_EXTENT] __attribute__ ((aligned (16)));                   \
-       __dtrace_args[0] = (uintptr_t)arg0;                                                             \
-       __dtrace_args[1] = (uintptr_t)arg1;                                                             \
-       __dtrace_args[2] = (uintptr_t)arg2;                                                             \
-       DTRACE_CALL3ARGS(provider, name)                                                        \
+#define DTRACE_PROBE3(provider, name, arg0, arg1, arg2) {                                       \
+       uintptr_t __dtrace_args[ARGS3_EXTENT] __attribute__ ((aligned (16)));                   \
+       __dtrace_args[0] = (uintptr_t)(arg0);                                                             \
+       __dtrace_args[1] = (uintptr_t)(arg1);                                                             \
+       __dtrace_args[2] = (uintptr_t)(arg2);                                                             \
+       DTRACE_CALL3ARGS(provider, name)                                                        \
 }
 
 }
 
-#define DTRACE_PROBE4(provider, name, arg0, arg1, arg2, arg3) {                                        \
-       uintptr_t __dtrace_args[ARGS4_EXTENT] __attribute__ ((aligned (16)));                   \
-       __dtrace_args[0] = (uintptr_t)arg0;                                                             \
-       __dtrace_args[1] = (uintptr_t)arg1;                                                             \
-       __dtrace_args[2] = (uintptr_t)arg2;                                                             \
-       __dtrace_args[3] = (uintptr_t)arg3;                                                             \
-       DTRACE_CALL4ARGS(provider, name)                                                        \
+#define DTRACE_PROBE4(provider, name, arg0, arg1, arg2, arg3) {                                 \
+       uintptr_t __dtrace_args[ARGS4_EXTENT] __attribute__ ((aligned (16)));                   \
+       __dtrace_args[0] = (uintptr_t)(arg0);                                                             \
+       __dtrace_args[1] = (uintptr_t)(arg1);                                                             \
+       __dtrace_args[2] = (uintptr_t)(arg2);                                                             \
+       __dtrace_args[3] = (uintptr_t)(arg3);                                                             \
+       DTRACE_CALL4ARGS(provider, name)                                                        \
 }
 
 }
 
-#define DTRACE_PROBE5(provider, name, arg0, arg1, arg2, arg3, arg4) {                          \
-       uintptr_t __dtrace_args[ARGS5_EXTENT] __attribute__ ((aligned (16)));                   \
-       __dtrace_args[0] = (uintptr_t)arg0;                                                             \
-       __dtrace_args[1] = (uintptr_t)arg1;                                                             \
-       __dtrace_args[2] = (uintptr_t)arg2;                                                             \
-       __dtrace_args[3] = (uintptr_t)arg3;                                                             \
-       __dtrace_args[4] = (uintptr_t)arg4;                                                             \
-       DTRACE_CALL5ARGS(provider, name)                                                        \
+#define DTRACE_PROBE5(provider, name, arg0, arg1, arg2, arg3, arg4) {                           \
+       uintptr_t __dtrace_args[ARGS5_EXTENT] __attribute__ ((aligned (16)));                   \
+       __dtrace_args[0] = (uintptr_t)(arg0);                                                             \
+       __dtrace_args[1] = (uintptr_t)(arg1);                                                             \
+       __dtrace_args[2] = (uintptr_t)(arg2);                                                             \
+       __dtrace_args[3] = (uintptr_t)(arg3);                                                             \
+       __dtrace_args[4] = (uintptr_t)(arg4);                                                             \
+       DTRACE_CALL5ARGS(provider, name)                                                        \
 }
 
 }
 
-#define DTRACE_PROBE6(provider, name, arg0, arg1, arg2, arg3, arg4, arg5) {                    \
-       uintptr_t __dtrace_args[ARGS6_EXTENT] __attribute__ ((aligned (16)));                   \
-       __dtrace_args[0] = (uintptr_t)arg0;                                                             \
-       __dtrace_args[1] = (uintptr_t)arg1;                                                             \
-       __dtrace_args[2] = (uintptr_t)arg2;                                                             \
-       __dtrace_args[3] = (uintptr_t)arg3;                                                             \
-       __dtrace_args[4] = (uintptr_t)arg4;                                                             \
-       __dtrace_args[5] = (uintptr_t)arg5;                                                             \
-       DTRACE_CALL6ARGS(provider, name)                                                        \
+#define DTRACE_PROBE6(provider, name, arg0, arg1, arg2, arg3, arg4, arg5) {                     \
+       uintptr_t __dtrace_args[ARGS6_EXTENT] __attribute__ ((aligned (16)));                   \
+       __dtrace_args[0] = (uintptr_t)(arg0);                                                             \
+       __dtrace_args[1] = (uintptr_t)(arg1);                                                             \
+       __dtrace_args[2] = (uintptr_t)(arg2);                                                             \
+       __dtrace_args[3] = (uintptr_t)(arg3);                                                             \
+       __dtrace_args[4] = (uintptr_t)(arg4);                                                             \
+       __dtrace_args[5] = (uintptr_t)(arg5);                                                             \
+       DTRACE_CALL6ARGS(provider, name)                                                        \
 }
 
 }
 
-#define DTRACE_PROBE7(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6) {              \
-       uintptr_t __dtrace_args[ARGS7_EXTENT] __attribute__ ((aligned (16)));                   \
-       __dtrace_args[0] = (uintptr_t)arg0;                                                             \
-       __dtrace_args[1] = (uintptr_t)arg1;                                                             \
-       __dtrace_args[2] = (uintptr_t)arg2;                                                             \
-       __dtrace_args[3] = (uintptr_t)arg3;                                                             \
-       __dtrace_args[4] = (uintptr_t)arg4;                                                             \
-       __dtrace_args[5] = (uintptr_t)arg5;                                                             \
-       __dtrace_args[6] = (uintptr_t)arg6;                                                             \
-       DTRACE_CALL7ARGS(provider, name)                                                        \
+#define DTRACE_PROBE7(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6) {               \
+       uintptr_t __dtrace_args[ARGS7_EXTENT] __attribute__ ((aligned (16)));                   \
+       __dtrace_args[0] = (uintptr_t)(arg0);                                                             \
+       __dtrace_args[1] = (uintptr_t)(arg1);                                                             \
+       __dtrace_args[2] = (uintptr_t)(arg2);                                                             \
+       __dtrace_args[3] = (uintptr_t)(arg3);                                                             \
+       __dtrace_args[4] = (uintptr_t)(arg4);                                                             \
+       __dtrace_args[5] = (uintptr_t)(arg5);                                                             \
+       __dtrace_args[6] = (uintptr_t)(arg6);                                                             \
+       DTRACE_CALL7ARGS(provider, name)                                                        \
 }
 
 }
 
-#define DTRACE_PROBE8(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {                \
-       uintptr_t __dtrace_args[ARGS8_EXTENT] __attribute__ ((aligned (16)));                   \
-       __dtrace_args[0] = (uintptr_t)arg0;                                                             \
-       __dtrace_args[1] = (uintptr_t)arg1;                                                             \
-       __dtrace_args[2] = (uintptr_t)arg2;                                                             \
-       __dtrace_args[3] = (uintptr_t)arg3;                                                             \
-       __dtrace_args[4] = (uintptr_t)arg4;                                                             \
-       __dtrace_args[5] = (uintptr_t)arg5;                                                             \
-       __dtrace_args[6] = (uintptr_t)arg6;                                                             \
-       __dtrace_args[7] = (uintptr_t)arg7;                                                             \
-       DTRACE_CALL8ARGS(provider, name)                                                        \
+#define DTRACE_PROBE8(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {         \
+       uintptr_t __dtrace_args[ARGS8_EXTENT] __attribute__ ((aligned (16)));                   \
+       __dtrace_args[0] = (uintptr_t)(arg0);                                                             \
+       __dtrace_args[1] = (uintptr_t)(arg1);                                                             \
+       __dtrace_args[2] = (uintptr_t)(arg2);                                                             \
+       __dtrace_args[3] = (uintptr_t)(arg3);                                                             \
+       __dtrace_args[4] = (uintptr_t)(arg4);                                                             \
+       __dtrace_args[5] = (uintptr_t)(arg5);                                                             \
+       __dtrace_args[6] = (uintptr_t)(arg6);                                                             \
+       __dtrace_args[7] = (uintptr_t)(arg7);                                                             \
+       DTRACE_CALL8ARGS(provider, name)                                                        \
 }
 
 }
 
-#define DTRACE_PROBE9(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {  \
-       uintptr_t __dtrace_args[ARGS9_EXTENT] __attribute__ ((aligned (16)));                   \
-       __dtrace_args[0] = (uintptr_t)arg0;                                                             \
-       __dtrace_args[1] = (uintptr_t)arg1;                                                             \
-       __dtrace_args[2] = (uintptr_t)arg2;                                                             \
-       __dtrace_args[3] = (uintptr_t)arg3;                                                             \
-       __dtrace_args[4] = (uintptr_t)arg4;                                                             \
-       __dtrace_args[5] = (uintptr_t)arg5;                                                             \
-       __dtrace_args[6] = (uintptr_t)arg6;                                                             \
-       __dtrace_args[7] = (uintptr_t)arg7;                                                             \
-       __dtrace_args[8] = (uintptr_t)arg8;                                                             \
-       DTRACE_CALL9ARGS(provider, name)                                                        \
+#define DTRACE_PROBE9(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {   \
+       uintptr_t __dtrace_args[ARGS9_EXTENT] __attribute__ ((aligned (16)));                   \
+       __dtrace_args[0] = (uintptr_t)(arg0);                                                             \
+       __dtrace_args[1] = (uintptr_t)(arg1);                                                             \
+       __dtrace_args[2] = (uintptr_t)(arg2);                                                             \
+       __dtrace_args[3] = (uintptr_t)(arg3);                                                             \
+       __dtrace_args[4] = (uintptr_t)(arg4);                                                             \
+       __dtrace_args[5] = (uintptr_t)(arg5);                                                             \
+       __dtrace_args[6] = (uintptr_t)(arg6);                                                             \
+       __dtrace_args[7] = (uintptr_t)(arg7);                                                             \
+       __dtrace_args[8] = (uintptr_t)(arg8);                                                             \
+       DTRACE_CALL9ARGS(provider, name)                                                        \
 }
 
 }
 
-#define DTRACE_PROBE10(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {   \
-       uintptr_t __dtrace_args[ARGS10_EXTENT] __attribute__ ((aligned (16)));                          \
-       __dtrace_args[0] = (uintptr_t)arg0;                                                                     \
-       __dtrace_args[1] = (uintptr_t)arg1;                                                                     \
-       __dtrace_args[2] = (uintptr_t)arg2;                                                                     \
-       __dtrace_args[3] = (uintptr_t)arg3;                                                                     \
-       __dtrace_args[4] = (uintptr_t)arg4;                                                                     \
-       __dtrace_args[5] = (uintptr_t)arg5;                                                                     \
-       __dtrace_args[6] = (uintptr_t)arg6;                                                                     \
-       __dtrace_args[7] = (uintptr_t)arg7;                                                                     \
-       __dtrace_args[8] = (uintptr_t)arg8;                                                                     \
-       __dtrace_args[9] = (uintptr_t)arg9;                                                                     \
-       DTRACE_CALL10ARGS(provider, name)                                                               \
+#define DTRACE_PROBE10(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {    \
+       uintptr_t __dtrace_args[ARGS10_EXTENT] __attribute__ ((aligned (16)));                          \
+       __dtrace_args[0] = (uintptr_t)(arg0);                                                                     \
+       __dtrace_args[1] = (uintptr_t)(arg1);                                                                     \
+       __dtrace_args[2] = (uintptr_t)(arg2);                                                                     \
+       __dtrace_args[3] = (uintptr_t)(arg3);                                                                     \
+       __dtrace_args[4] = (uintptr_t)(arg4);                                                                     \
+       __dtrace_args[5] = (uintptr_t)(arg5);                                                                     \
+       __dtrace_args[6] = (uintptr_t)(arg6);                                                                     \
+       __dtrace_args[7] = (uintptr_t)(arg7);                                                                     \
+       __dtrace_args[8] = (uintptr_t)(arg8);                                                                     \
+       __dtrace_args[9] = (uintptr_t)(arg9);                                                                     \
+       DTRACE_CALL10ARGS(provider, name)                                                               \
 }
 
 }
 
+#else
+#define DTRACE_PROBE(provider, name) do {} while(0)
+#define DTRACE_PROBE1(provider, name, arg0) do {} while(0)
+#define DTRACE_PROBE2(provider, name, arg0, arg1) do {} while(0)
+#define DTRACE_PROBE3(provider, name, arg0, arg1, arg2) do {} while(0)
+#define DTRACE_PROBE4(provider, name, arg0, arg1, arg2, arg3) do {} while(0)
+#define DTRACE_PROBE5(provider, name, arg0, arg1, arg2, arg3, arg4) do {} while(0)
+#define DTRACE_PROBE6(provider, name, arg0, arg1, arg2, arg3, arg4, arg5) do {} while(0)
+#define DTRACE_PROBE7(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6) do {} while(0)
+#define DTRACE_PROBE8(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) do {} while(0)
+#define DTRACE_PROBE9(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) do {} while(0)
+#define DTRACE_PROBE10(provider, name, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) do {} while(0)
 
 
+#endif /* CONFIG_DTRACE */
 
 
-#define        DTRACE_SCHED(name)                                              \
+#define DTRACE_SCHED(name)                                              \
        DTRACE_PROBE(__sched_, name);
 
        DTRACE_PROBE(__sched_, name);
 
-#define        DTRACE_SCHED1(name, type1, arg1)                                \
+#define DTRACE_SCHED1(name, type1, arg1)                                \
        DTRACE_PROBE1(__sched_, name, arg1);
 
        DTRACE_PROBE1(__sched_, name, arg1);
 
-#define        DTRACE_SCHED2(name, type1, arg1, type2, arg2)                   \
+#define DTRACE_SCHED2(name, type1, arg1, type2, arg2)                   \
        DTRACE_PROBE2(__sched_, name, arg1, arg2);
 
        DTRACE_PROBE2(__sched_, name, arg1, arg2);
 
-#define        DTRACE_SCHED3(name, type1, arg1, type2, arg2, type3, arg3)      \
+#define DTRACE_SCHED3(name, type1, arg1, type2, arg2, type3, arg3)      \
        DTRACE_PROBE3(__sched_, name, arg1, arg2, arg3);
 
        DTRACE_PROBE3(__sched_, name, arg1, arg2, arg3);
 
-#define        DTRACE_SCHED4(name, type1, arg1, type2, arg2,                   \
-    type3, arg3, type4, arg4)                                          \
+#define DTRACE_SCHED4(name, type1, arg1, type2, arg2,                   \
+           type3, arg3, type4, arg4)                                           \
        DTRACE_PROBE4(__sched_, name, arg1, arg2, arg3, arg4);
 
        DTRACE_PROBE4(__sched_, name, arg1, arg2, arg3, arg4);
 
-#define        DTRACE_PROC(name)                                               \
+#define DTRACE_PROC(name)                                               \
        DTRACE_PROBE(__proc_, name);
 
        DTRACE_PROBE(__proc_, name);
 
-#define        DTRACE_PROC1(name, type1, arg1)                                 \
+#define DTRACE_PROC1(name, type1, arg1)                                 \
        DTRACE_PROBE1(__proc_, name, arg1);
 
        DTRACE_PROBE1(__proc_, name, arg1);
 
-#define        DTRACE_PROC2(name, type1, arg1, type2, arg2)                    \
+#define DTRACE_PROC2(name, type1, arg1, type2, arg2)                    \
        DTRACE_PROBE2(__proc_, name, arg1, arg2);
 
        DTRACE_PROBE2(__proc_, name, arg1, arg2);
 
-#define        DTRACE_PROC3(name, type1, arg1, type2, arg2, type3, arg3)       \
+#define DTRACE_PROC3(name, type1, arg1, type2, arg2, type3, arg3)       \
        DTRACE_PROBE3(__proc_, name, arg1, arg2, arg3);
 
        DTRACE_PROBE3(__proc_, name, arg1, arg2, arg3);
 
-#define        DTRACE_PROC4(name, type1, arg1, type2, arg2,                    \
-    type3, arg3, type4, arg4)                                          \
+#define DTRACE_PROC4(name, type1, arg1, type2, arg2,                    \
+           type3, arg3, type4, arg4)                                           \
        DTRACE_PROBE4(__proc_, name, arg1, arg2, arg3, arg4);
 
        DTRACE_PROBE4(__proc_, name, arg1, arg2, arg3, arg4);
 
-#define        DTRACE_IO(name)                                                 \
+#define DTRACE_IO(name)                                                 \
        DTRACE_PROBE(__io_, name);
 
        DTRACE_PROBE(__io_, name);
 
-#define        DTRACE_IO1(name, type1, arg1)                                   \
+#define DTRACE_IO1(name, type1, arg1)                                   \
        DTRACE_PROBE1(__io_, name, arg1);
 
        DTRACE_PROBE1(__io_, name, arg1);
 
-#define        DTRACE_IO2(name, type1, arg1, type2, arg2)                      \
-       DTRACE_PROBE2(__io_, name, type1, arg1, type2, arg2);
+#define DTRACE_IO2(name, type1, arg1, type2, arg2)                      \
+       DTRACE_PROBE2(__io_, name, arg1, arg2);
 
 
-#define        DTRACE_IO3(name, type1, arg1, type2, arg2, type3, arg3)         \
+#define DTRACE_IO3(name, type1, arg1, type2, arg2, type3, arg3)         \
        DTRACE_PROBE3(__io_, name, arg1, arg2, arg3);
 
        DTRACE_PROBE3(__io_, name, arg1, arg2, arg3);
 
-#define        DTRACE_IO4(name, type1, arg1, type2, arg2,                      \
-    type3, arg3, type4, arg4)                                          \
+#define DTRACE_IO4(name, type1, arg1, type2, arg2,                      \
+           type3, arg3, type4, arg4)                                           \
        DTRACE_PROBE4(__io_, name, arg1, arg2, arg3, arg4);
 
        DTRACE_PROBE4(__io_, name, arg1, arg2, arg3, arg4);
 
-#define        DTRACE_INT5(name, type1, arg1, type2, arg2,                     \
-    type3, arg3, type4, arg4, type5, arg5)                                             \
+#define DTRACE_INT5(name, type1, arg1, type2, arg2,                     \
+           type3, arg3, type4, arg4, type5, arg5)                                              \
        DTRACE_PROBE5(__sdt_, name, arg1, arg2, arg3, arg4, arg5);
 
        DTRACE_PROBE5(__sdt_, name, arg1, arg2, arg3, arg4, arg5);
 
-#define        DTRACE_TMR3(name, type1, arg1, type2, arg2, type3, arg3)                \
+#define DTRACE_MEMORYSTATUS2(name, type1, arg1, type2, arg2)            \
+       DTRACE_PROBE2(__sdt_, name, arg1, arg2);
+
+#define DTRACE_MEMORYSTATUS3(name, type1, arg1, type2, arg2, type3, arg3)               \
+       DTRACE_PROBE3(__sdt_, name, arg1, arg2, arg3);
+
+#define DTRACE_MEMORYSTATUS4(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4)  \
+       DTRACE_PROBE4(__sdt_, name, arg1, arg2, arg3, arg4);
+
+#define DTRACE_MEMORYSTATUS6(name, type1, arg1, type2, arg2,                    \
+           type3, arg3, type4, arg4, type5, arg5, type6, arg6) \
+       DTRACE_PROBE6(__vminfo_, name, arg1, arg2, arg3, arg4, arg5, arg6)
+
+#define DTRACE_TMR3(name, type1, arg1, type2, arg2, type3, arg3)                \
+       DTRACE_PROBE3(__sdt_, name, arg1, arg2, arg3);
+
+#define DTRACE_TMR4(name, type1, arg1, arg2, arg3, arg4)                        \
+       DTRACE_PROBE4(__sdt_, name, arg1, arg2, arg3, arg4);
+
+#define DTRACE_TMR5(name, type1, arg1, type2, arg2, type3, arg3, arg4, arg5)    \
+       DTRACE_PROBE5(__sdt_, name, arg1, arg2, arg3, arg4, arg5);
+
+#define DTRACE_TMR6(name, type1, arg1, type2, arg2, type3, arg3, arg4, arg5, arg6) \
+       DTRACE_PROBE6(__sdt_, name, arg1, arg2, arg3, arg4, arg5, arg6);
+
+#define DTRACE_TMR7(name, type1, arg1, type2, arg2, type3, arg3, arg4, arg5, arg6, arg7) \
+       DTRACE_PROBE7(__sdt_, name, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
+
+#define DTRACE_PHYSLAT3(name, type1, arg1, type2, arg2, type3, arg3)            \
        DTRACE_PROBE3(__sdt_, name, arg1, arg2, arg3);
 
        DTRACE_PROBE3(__sdt_, name, arg1, arg2, arg3);
 
-#define        DTRACE_VM(name)                                                 \
+#define DTRACE_PHYSLAT4(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4)        \
+       DTRACE_PROBE4(__sdt_, name, arg1, arg2, arg3, arg4);
+
+#define DTRACE_PHYSLAT5(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5)  \
+       DTRACE_PROBE5(__sdt_, name, arg1, arg2, arg3, arg4, arg5);
+
+#define DTRACE_VM(name)                                                 \
        DTRACE_PROBE(__vminfo_, name)
 
        DTRACE_PROBE(__vminfo_, name)
 
-#define        DTRACE_VM1(name, type1, arg1)                                   \
+#define DTRACE_VM1(name, type1, arg1)                                   \
        DTRACE_PROBE1(__vminfo_, name, arg1)
 
        DTRACE_PROBE1(__vminfo_, name, arg1)
 
-#define        DTRACE_VM2(name, type1, arg1, type2, arg2)                      \
+#define DTRACE_VM2(name, type1, arg1, type2, arg2)                      \
        DTRACE_PROBE2(__vminfo_, name, arg1, arg2)
 
        DTRACE_PROBE2(__vminfo_, name, arg1, arg2)
 
-#define        DTRACE_VM3(name, type1, arg1, type2, arg2, type3, arg3)         \
+#define DTRACE_VM3(name, type1, arg1, type2, arg2, type3, arg3)         \
        DTRACE_PROBE3(__vminfo_, name, arg1, arg2, arg3)
 
        DTRACE_PROBE3(__vminfo_, name, arg1, arg2, arg3)
 
-#define        DTRACE_VM4(name, type1, arg1, type2, arg2,                      \
-    type3, arg3, type4, arg4)                                          \
+#define DTRACE_VM4(name, type1, arg1, type2, arg2,                      \
+           type3, arg3, type4, arg4)                                           \
        DTRACE_PROBE4(__vminfo_, name, arg1, arg2, arg3, arg4)
 
        DTRACE_PROBE4(__vminfo_, name, arg1, arg2, arg3, arg4)
 
-#define DTRACE_IP(name)                                                        \
+#define DTRACE_VM5(name, type1, arg1, type2, arg2,                      \
+           type3, arg3, type4, arg4, type5, arg5)                              \
+       DTRACE_PROBE5(__vminfo_, name, arg1, arg2, arg3, arg4, arg5)
+
+#define DTRACE_VM6(name, type1, arg1, type2, arg2,                      \
+           type3, arg3, type4, arg4, type5, arg5, type6, arg6) \
+       DTRACE_PROBE6(__vminfo_, name, arg1, arg2, arg3, arg4, arg5, arg6)
+
+#define DTRACE_VM7(name, type1, arg1, type2, arg2,                      \
+           type3, arg3, type4, arg4, type5, arg5, type6, arg6, type7, arg7) \
+       DTRACE_PROBE7(__vminfo_, name, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
+
+#define DTRACE_IP(name)                                                 \
        DTRACE_PROBE(__ip_, name)
 
        DTRACE_PROBE(__ip_, name)
 
-#define DTRACE_IP1(name, type1, arg1)                                  \
+#define DTRACE_IP1(name, type1, arg1)                                   \
        DTRACE_PROBE1(__ip_, name, arg1)
 
        DTRACE_PROBE1(__ip_, name, arg1)
 
-#define DTRACE_IP2(name, type1, arg1, type2, arg2)                     \
+#define DTRACE_IP2(name, type1, arg1, type2, arg2)                      \
        DTRACE_PROBE2(__ip_, name, arg1, arg2)
 
        DTRACE_PROBE2(__ip_, name, arg1, arg2)
 
-#define DTRACE_IP3(name, type1, arg1, type2, arg2, type3, arg3)                \
+#define DTRACE_IP3(name, type1, arg1, type2, arg2, type3, arg3)         \
        DTRACE_PROBE3(__ip_, name, arg1, arg2, arg3)
 
        DTRACE_PROBE3(__ip_, name, arg1, arg2, arg3)
 
-#define DTRACE_IP4(name, type1, arg1, type2, arg2,                     \
-    type3, arg3, type4, arg4)                                          \
+#define DTRACE_IP4(name, type1, arg1, type2, arg2,                      \
+           type3, arg3, type4, arg4)                                           \
        DTRACE_PROBE4(__ip_, name, arg1, arg2, arg3, arg4)
 
        DTRACE_PROBE4(__ip_, name, arg1, arg2, arg3, arg4)
 
-#define DTRACE_IP5(name, typ1, arg1, type2, arg2, type3, arg3,         \
-    type4, arg4, type5, arg5)                                          \
+#define DTRACE_IP5(name, typ1, arg1, type2, arg2, type3, arg3,          \
+           type4, arg4, type5, arg5)                                           \
        DTRACE_PROBE5(__ip_, name, arg1, arg2, arg3, arg4, arg5)
 
        DTRACE_PROBE5(__ip_, name, arg1, arg2, arg3, arg4, arg5)
 
-#define DTRACE_IP6(name, type1, arg1, type2, arg2, type3, arg3,                \
-    type4,arg4, type5, arg5, type6, arg6)                              \
+#define DTRACE_IP6(name, type1, arg1, type2, arg2, type3, arg3,         \
+           type4, arg4, type5, arg5, type6, arg6)                               \
        DTRACE_PROBE6(__ip_, name, arg1, arg2, arg3, arg4, arg5, arg6)
 
        DTRACE_PROBE6(__ip_, name, arg1, arg2, arg3, arg4, arg5, arg6)
 
-#define DTRACE_IP7(name, type1, arg1, type2, arg2, type3, arg3,                \
-    type4, arg4, type5, arg5, type6, arg6, type7, arg7)                        \
+#define DTRACE_IP7(name, type1, arg1, type2, arg2, type3, arg3,         \
+           type4, arg4, type5, arg5, type6, arg6, type7, arg7)                 \
        DTRACE_PROBE7(__ip_, name, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
 
        DTRACE_PROBE7(__ip_, name, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
 
+#define DTRACE_ROUTE(name)                                              \
+       DTRACE_PROBE(__route_, name)
+
+#define DTRACE_ROUTE1(name, type1, arg1)                                \
+       DTRACE_PROBE1(__route_, name, arg1)
+
+#define DTRACE_ROUTE2(name, type1, arg1, type2, arg2)                   \
+       DTRACE_PROBE2(__route_, name, arg1, arg2)
+
+#define DTRACE_ROUTE3(name, type1, arg1, type2, arg2, type3, arg3)      \
+       DTRACE_PROBE3(__route_, name, arg1, arg2, arg3)
+
+#define DTRACE_ROUTE4(name, type1, arg1, type2, arg2,                   \
+           type3, arg3, type4, arg4)                                           \
+       DTRACE_PROBE4(__route_, name, arg1, arg2, arg3, arg4)
+
+#define DTRACE_ROUTE5(name, typ1, arg1, type2, arg2, type3, arg3,       \
+           type4, arg4, type5, arg5)                                           \
+       DTRACE_PROBE5(__route_, name, arg1, arg2, arg3, arg4, arg5)
+
+#define DTRACE_ROUTE6(name, type1, arg1, type2, arg2, type3, arg3,      \
+           type4, arg4, type5, arg5, type6, arg6)                               \
+       DTRACE_PROBE6(__route_, name, arg1, arg2, arg3, arg4, arg5, arg6)
+
+#define DTRACE_ROUTE7(name, type1, arg1, type2, arg2, type3, arg3,      \
+           type4, arg4, type5, arg5, type6, arg6, type7, arg7)                 \
+       DTRACE_PROBE7(__route_, name, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
+
 #define DTRACE_TCP(name)                                                 \
 #define DTRACE_TCP(name)                                                 \
-        DTRACE_PROBE(__tcp_, name)
+       DTRACE_PROBE(__tcp_, name)
 
 #define DTRACE_TCP1(name, type1, arg1)                                   \
 
 #define DTRACE_TCP1(name, type1, arg1)                                   \
-        DTRACE_PROBE1(__tcp_, name, arg1)
+       DTRACE_PROBE1(__tcp_, name, arg1)
 
 #define DTRACE_TCP2(name, type1, arg1, type2, arg2)                      \
 
 #define DTRACE_TCP2(name, type1, arg1, type2, arg2)                      \
-        DTRACE_PROBE2(__tcp_, name, arg1, arg2)
+       DTRACE_PROBE2(__tcp_, name, arg1, arg2)
 
 #define DTRACE_TCP3(name, type1, arg1, type2, arg2, type3, arg3)         \
 
 #define DTRACE_TCP3(name, type1, arg1, type2, arg2, type3, arg3)         \
-        DTRACE_PROBE3(__tcp_, name, arg1, arg2, arg3)
+       DTRACE_PROBE3(__tcp_, name, arg1, arg2, arg3)
 
 #define DTRACE_TCP4(name, type1, arg1, type2, arg2,                      \
 
 #define DTRACE_TCP4(name, type1, arg1, type2, arg2,                      \
-    type3, arg3, type4, arg4)                                           \
-        DTRACE_PROBE4(__tcp_, name, arg1, arg2, arg3, arg4)
+           type3, arg3, type4, arg4)                                           \
+       DTRACE_PROBE4(__tcp_, name, arg1, arg2, arg3, arg4)
 
 #define DTRACE_TCP5(name, typ1, arg1, type2, arg2, type3, arg3,          \
 
 #define DTRACE_TCP5(name, typ1, arg1, type2, arg2, type3, arg3,          \
-    type4, arg4, type5, arg5)                                           \
-        DTRACE_PROBE5(__tcp_, name, arg1, arg2, arg3, arg4, arg5)
-
-#else /* CONFIG_DTRACE */
-
-#define        DTRACE_SCHED(name) do {} while (0)
-#define        DTRACE_SCHED1(name, type1, arg1) do {} while (0)
-#define        DTRACE_SCHED2(name, type1, arg1, type2, arg2) do {} while (0)
-#define        DTRACE_SCHED3(name, type1, arg1, type2, arg2, type3, arg3) do {} while (0)
-#define        DTRACE_SCHED4(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4) do {} while (0)
-
-#define DTRACE_PROC(name) do {} while(0)
-#define DTRACE_PROC1(name, type1, arg1) do {} while(0)
-#define        DTRACE_PROC2(name, type1, arg1, type2, arg2) do {} while (0)
-#define        DTRACE_PROC3(name, type1, arg1, type2, arg2, type3, arg3) do {} while (0)
-#define        DTRACE_PROC4(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4) do {} while(0)
-#define        DTRACE_IO(name) do {} while(0)
-#define        DTRACE_IO1(name, type1, arg1) do {} while(0)
-#define        DTRACE_IO2(name, type1, arg1, type2, arg2) do {} while(0)
-#define        DTRACE_IO3(name, type1, arg1, type2, arg2, type3, arg3) do {} while(0)
-#define        DTRACE_IO4(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4) do {} while(0)
-#define        DTRACE_INT5(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5) do {} while(0)
-#define        DTRACE_TMR3(name, type1, arg1, type2, arg2, type3, arg3) do {} while(0)
-
-#define DTRACE_VM(name) do {} while(0)
-#define DTRACE_VM1(name, type1, arg1) do {} while(0)
-#define DTRACE_VM2(name, type1, arg1, type2, arg2) do {} while(0)
-#define DTRACE_VM3(name, type1, arg1, type2, arg2, type3, arg3) do {} while(0)
-#define DTRACE_VM4(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4) do {} while(0)
-#define DTRACE_IP(name) do {} while(0)
-#define DTRACE_IP1(name, type1, arg1) do {} while(0)
-#define DTRACE_IP2(name, type1, arg1, type2, arg2) do {} while(0)
-#define DTRACE_IP3(name, type1, arg1, type2, arg2, type3, arg3) do {} while(0)
-#define DTRACE_IP4(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4) do {} while(0)
-#define DTRACE_IP5(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5) do {} while(0)
-#define DTRACE_IP6(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5, type6, arg6) do {} while(0)
-#define DTRACE_IP7(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5, \
-       type6, arg6, type7, arg7) do {} while(0)
-
-#define DTRACE_TCP(name) do {} while(0)
-#define DTRACE_TCP1(name, type1, arg1) do {} while(0)
-#define DTRACE_TCP2(name, type1, arg1, type2, arg2) do {} while(0)
-#define DTRACE_TCP3(name, type1, arg1, type2, arg2, type3, arg3) do {} while(0)
-#define DTRACE_TCP4(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4) do {} while(0)
-#define DTRACE_TCP5(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5) do {} while(0)
+           type4, arg4, type5, arg5)                                           \
+       DTRACE_PROBE5(__tcp_, name, arg1, arg2, arg3, arg4, arg5)
 
 
-#endif /* CONFIG_DTRACE */
+#define DTRACE_MPTCP(name)                                              \
+       DTRACE_PROBE(__mptcp_, name)
+
+#define DTRACE_MPTCP1(name, type1, arg1)                                \
+       DTRACE_PROBE1(__mptcp_, name, arg1)
+
+#define DTRACE_MPTCP2(name, type1, arg1, type2, arg2)                   \
+       DTRACE_PROBE2(__mptcp_, name, arg1, arg2)
+
+#define DTRACE_MPTCP3(name, type1, arg1, type2, arg2, type3, arg3)      \
+       DTRACE_PROBE3(__mptcp_, name, arg1, arg2, arg3)
+
+#define DTRACE_MPTCP4(name, type1, arg1, type2, arg2,                   \
+           type3, arg3, type4, arg4)                          \
+       DTRACE_PROBE4(__mptcp_, name, arg1, arg2, arg3, arg4)
+
+#define DTRACE_MPTCP5(name, typ1, arg1, type2, arg2, type3, arg3,       \
+           type4, arg4, type5, arg5)                         \
+       DTRACE_PROBE5(__mptcp_, name, arg1, arg2, arg3, arg4, arg5)
+
+#define DTRACE_MPTCP6(name, typ1, arg1, type2, arg2, type3, arg3,       \
+           type4, arg4, type5, arg5, type6, arg6)            \
+       DTRACE_PROBE6(__mptcp_, name, arg1, arg2, arg3, arg4, arg5, arg6)
+
+#define DTRACE_MPTCP7(name, typ1, arg1, type2, arg2, type3, arg3,       \
+           type4, arg4, type5, arg5, type6, arg6,            \
+           type7, arg7)                                      \
+       DTRACE_PROBE7(__mptcp_, name, arg1, arg2, arg3, arg4, arg5,     \
+                     arg6, arg7)
+
+#define DTRACE_FSINFO(name, type, vp)                                   \
+       DTRACE_PROBE1(__fsinfo_, name, vp)
+
+#define DTRACE_FSINFO_IO(name, type1, vp, type2, size)                  \
+       DTRACE_PROBE2(__fsinfo_, name, vp, size)
+
+#define DTRACE_BOOST(name)                                              \
+       DTRACE_PROBE(__boost_, name);
+
+#define DTRACE_BOOST1(name, type1, arg1)                                \
+       DTRACE_PROBE1(__boost_, name, arg1);
+
+#define DTRACE_BOOST2(name, type1, arg1, type2, arg2)                   \
+       DTRACE_PROBE2(__boost_, name, arg1, arg2);
+
+#define DTRACE_BOOST3(name, type1, arg1, type2, arg2, type3, arg3)      \
+       DTRACE_PROBE3(__boost_, name, arg1, arg2, arg3);
+
+#define DTRACE_BOOST4(name, type1, arg1, type2, arg2,                   \
+           type3, arg3, type4, arg4)                                           \
+       DTRACE_PROBE4(__boost_, name, arg1, arg2, arg3, arg4);
+
+#define DTRACE_BOOST5(name, type1, arg1, type2, arg2,                   \
+           type3, arg3, type4, arg4, type5, arg5)                                              \
+       DTRACE_PROBE5(__boost_, name, arg1, arg2, arg3, arg4, arg5);
+
+#define DTRACE_BOOST6(name, type1, arg1, type2, arg2,                   \
+           type3, arg3, type4, arg4, type5, arg5, type6, arg6)                 \
+       DTRACE_PROBE6(__boost_, name, arg1, arg2, arg3, arg4, arg5, arg6);
+
+#if KASAN
+#define DTRACE_KASAN(name)                                              \
+       DTRACE_PROBE(__kasan_, name);
+
+#define DTRACE_KASAN1(name, type1, arg1)                                \
+       DTRACE_PROBE1(__kasan_, name, arg1);
+
+#define DTRACE_KASAN2(name, type1, arg1, type2, arg2)                   \
+       DTRACE_PROBE2(__kasan_, name, arg1, arg2);
+
+#define DTRACE_KASAN3(name, type1, arg1, type2, arg2, type3, arg3)      \
+       DTRACE_PROBE3(__kasan_, name, arg1, arg2, arg3);
+
+#define DTRACE_KASAN4(name, type1, arg1, type2, arg2,                   \
+           type3, arg3, type4, arg4)                                       \
+       DTRACE_PROBE4(__kasan_, name, arg1, arg2, arg3, arg4);
+
+#define DTRACE_KASAN5(name, type1, arg1, type2, arg2,                   \
+           type3, arg3, type4, arg4, type5, arg5)                          \
+       DTRACE_PROBE5(__kasan_, name, arg1, arg2, arg3, arg4, arg5);
+#endif /* KASAN */
+
+#if PRIVATE
+#endif /* PRIVATE */
 
 #endif /* KERNEL */
 
 
 #endif /* KERNEL */
 
-#endif /* _MACH_MACHINE_SYS_SDT_H */
+#endif  /* _MACH_MACHINE_SYS_SDT_H */