2 * dtrace.h: DTrace probes
5 * Andreas Faerber <andreas.faerber@web.de>
9 #ifndef __UTILS_DTRACE_H__
10 #define __UTILS_DTRACE_H__
14 #include <mono/utils/mono-dtrace.h>
16 #define MONO_PROBE_METHOD_COMPILE_BEGIN(method) \
17 MONO_METHOD_COMPILE_BEGIN ( \
18 mono_type_get_full_name ((method)->klass), \
19 (gchar*)(method)->name, \
20 mono_signature_get_desc ((method)->signature, TRUE) \
23 #define MONO_PROBE_METHOD_COMPILE_END(method, success) \
24 MONO_METHOD_COMPILE_END ( \
25 mono_type_get_full_name ((method)->klass), \
26 (gchar*)(method)->name, \
27 mono_signature_get_desc ((method)->signature, TRUE), \
33 #define MONO_VES_INIT_BEGIN()
34 #define MONO_VES_INIT_BEGIN_ENABLED() (0)
36 #define MONO_VES_INIT_END()
37 #define MONO_VES_INIT_END_ENABLED() (0)
40 #define MONO_PROBE_METHOD_COMPILE_BEGIN(method)
41 #define MONO_METHOD_COMPILE_BEGIN_ENABLED() (0)
43 #define MONO_PROBE_METHOD_COMPILE_END(method, success)
44 #define MONO_METHOD_COMPILE_END_ENABLED() (0)
47 #define MONO_GC_BEGIN(generation)
48 #define MONO_GC_BEGIN_ENABLED() (0)
50 #define MONO_GC_END(generation)
51 #define MONO_GC_END_ENABLED() (0)
54 #define MONO_GC_REQUESTED(generation,requested_size,wait_to_finish)
55 #define MONO_GC_REQUESTED_ENABLED() (0)
58 #define MONO_GC_CONCURRENT_START_BEGIN(generation)
59 #define MONO_GC_CONCURRENT_START_BEGIN_ENABLED() (0)
61 #define MONO_GC_CONCURRENT_UPDATE_FINISH_BEGIN(generation,num_major_objects_marked)
62 #define MONO_GC_CONCURRENT_UPDATE_FINISH_BEGIN_ENABLED() (0)
64 #define MONO_GC_SWEEP_BEGIN(generation,full_sweep)
65 #define MONO_GC_SWEEP_BEGIN_ENABLED() (0)
67 #define MONO_GC_SWEEP_END(generation,full_sweep)
68 #define MONO_GC_SWEEP_END_ENABLED() (0)
71 #define MONO_GC_WORLD_STOP_BEGIN()
72 #define MONO_GC_WORLD_STOP_BEGIN_ENABLED() (0)
74 #define MONO_GC_WORLD_STOP_END()
75 #define MONO_GC_WORLD_STOP_END_ENABLED() (0)
77 #define MONO_GC_WORLD_RESTART_BEGIN(generation)
78 #define MONO_GC_WORLD_RESTART_BEGIN_ENABLED() (0)
80 #define MONO_GC_WORLD_RESTART_END(generation)
81 #define MONO_GC_WORLD_RESTART_END_ENABLED() (0)
84 #define MONO_GC_NURSERY_TLAB_ALLOC(addr,len)
85 #define MONO_GC_NURSERY_TLAB_ALLOC_ENABLED() (0)
87 #define MONO_GC_NURSERY_OBJ_ALLOC(addr,size,ns_name,class_name)
88 #define MONO_GC_NURSERY_OBJ_ALLOC_ENABLED() (0)
91 #define MONO_GC_MAJOR_OBJ_ALLOC_LARGE(addr,size,ns_name,class_name)
92 #define MONO_GC_MAJOR_OBJ_ALLOC_LARGE_ENABLED() (0)
94 #define MONO_GC_MAJOR_OBJ_ALLOC_PINNED(addr,size,ns_name,class_name)
95 #define MONO_GC_MAJOR_OBJ_ALLOC_PINNED_ENABLED() (0)
97 #define MONO_GC_MAJOR_OBJ_ALLOC_DEGRADED(addr,size,ns_name,class_name)
98 #define MONO_GC_MAJOR_OBJ_ALLOC_DEGRADED_ENABLED() (0)
101 #define MONO_GC_OBJ_MOVED(dest,src,dest_gen,src_gen,size,ns_name,class_name)
102 #define MONO_GC_OBJ_MOVED_ENABLED() (0)
105 #define MONO_GC_NURSERY_SWEPT(addr,len)
106 #define MONO_GC_NURSERY_SWEPT_ENABLED() (0)
108 #define MONO_GC_MAJOR_SWEPT(addr,len)
109 #define MONO_GC_MAJOR_SWEPT_ENABLED() (0)
112 #define MONO_GC_OBJ_PINNED(addr,size,ns_name,class_name,generation)
113 #define MONO_GC_OBJ_PINNED_ENABLED() (0)
116 #define MONO_GC_FINALIZE_ENQUEUE(addr,size,ns_name,class_name,generation,is_critical)
117 #define MONO_GC_FINALIZE_ENQUEUE_ENABLED() (0)
119 #define MONO_GC_FINALIZE_INVOKE(addr,size,ns_name,class_name)
120 #define MONO_GC_FINALIZE_INVOKE_ENABLED() (0)
123 #define MONO_GC_WEAK_UPDATE(ref_addr,new_addr,size,ns_name,class_name,track)
124 #define MONO_GC_WEAK_UPDATE_ENABLED() (0)
127 #define MONO_GC_GLOBAL_REMSET_ADD(ref_addr,obj_addr,size,ns_name,class_name)
128 #define MONO_GC_GLOBAL_REMSET_ADD_ENABLED() (0)
130 #define MONO_GC_OBJ_CEMENTED(addr,size,ns_name,class_name)
131 #define MONO_GC_OBJ_CEMENTED_ENABLED() (0)