root/src/eventer/dtrace_probes.h.stock

Revision f760d4895a5e1b4ab500749f7274fc84c215cfa7, 2.0 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 2 years ago)

dtrace probes in the eventer

  • Property mode set to 100644
Line 
1 /*
2  * Generated by dtrace(1M).
3  */
4
5 #ifndef _DTRACE_PROBES_H
6 #define _DTRACE_PROBES_H
7
8 #include <unistd.h>
9
10 #ifdef  __cplusplus
11 extern "C" {
12 #endif
13
14 #define EVENTER_STABILITY "___dtrace_stability$eventer$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_0"
15
16 #define EVENTER_TYPEDEFS "___dtrace_typedefs$eventer$v2"
17
18 #if !defined(DTRACE_PROBES_DISABLED) || !DTRACE_PROBES_DISABLED
19
20 #define EVENTER_CALLBACK_ENTRY(arg0, arg1, arg2, arg3, arg4) \
21 do { \
22         __asm__ volatile(".reference " EVENTER_TYPEDEFS); \
23         __dtrace_probe$eventer$callback__entry$v1$766f6964202a$63686172202a$696e74$696e74$696e74(arg0, arg1, arg2, arg3, arg4); \
24         __asm__ volatile(".reference " EVENTER_STABILITY); \
25 } while (0)
26 #define EVENTER_CALLBACK_ENTRY_ENABLED() \
27         ({ int _r = __dtrace_isenabled$eventer$callback__entry$v1(); \
28                 __asm__ volatile(""); \
29                 _r; })
30 #define EVENTER_CALLBACK_RETURN(arg0, arg1, arg2) \
31 do { \
32         __asm__ volatile(".reference " EVENTER_TYPEDEFS); \
33         __dtrace_probe$eventer$callback__return$v1$766f6964202a$63686172202a$696e74(arg0, arg1, arg2); \
34         __asm__ volatile(".reference " EVENTER_STABILITY); \
35 } while (0)
36 #define EVENTER_CALLBACK_RETURN_ENABLED() \
37         ({ int _r = __dtrace_isenabled$eventer$callback__return$v1(); \
38                 __asm__ volatile(""); \
39                 _r; })
40
41
42 extern void __dtrace_probe$eventer$callback__entry$v1$766f6964202a$63686172202a$696e74$696e74$696e74(const void *, const char *, int, int, int);
43 extern int __dtrace_isenabled$eventer$callback__entry$v1(void);
44 extern void __dtrace_probe$eventer$callback__return$v1$766f6964202a$63686172202a$696e74(const void *, const char *, int);
45 extern int __dtrace_isenabled$eventer$callback__return$v1(void);
46
47 #else
48
49 #define EVENTER_CALLBACK_ENTRY(arg0, arg1, arg2, arg3, arg4) \
50 do { \
51         } while (0)
52 #define EVENTER_CALLBACK_ENTRY_ENABLED() (0)
53 #define EVENTER_CALLBACK_RETURN(arg0, arg1, arg2) \
54 do { \
55         } while (0)
56 #define EVENTER_CALLBACK_RETURN_ENABLED() (0)
57
58 #endif /* !defined(DTRACE_PROBES_DISABLED) || !DTRACE_PROBES_DISABLED */
59
60
61 #ifdef  __cplusplus
62 }
63 #endif
64
65 #endif  /* _DTRACE_PROBES_H */
Note: See TracBrowser for help on using the browser.