[sgen] DTrace probes for world stop/restart.
[mono.git] / data / mono.d
1 /* 
2  * mono.d: DTrace provider for Mono
3  * 
4  * Authors:
5  *   Andreas Faerber <andreas.faerber@web.de>
6  * 
7  */
8
9 provider mono {
10         /* Virtual Execution System (VES) */
11         probe ves__init__begin ();
12         probe ves__init__end ();
13
14         /* Just-in-time compiler (JIT) */
15         probe method__compile__begin (char* class_name, char* method_name, char* signature);
16         probe method__compile__end (char* class_name, char* method_name, char* signature, int success);
17
18         /* Garbage Collector (GC) */    
19         probe gc__begin (int generation);
20         probe gc__end (int generation);
21
22         probe gc__world__stop__begin ();
23         probe gc__world__stop__end ();
24         probe gc__world__restart__begin ();
25         probe gc__world__restart__end ();
26
27         probe gc__heap__alloc (uintptr_t addr, uintptr_t len);
28         probe gc__heap__free (uintptr_t addr, uintptr_t len);
29
30         probe gc__locked ();
31         probe gc__unlocked ();
32
33         probe gc__nursery__tlab__alloc (uintptr_t addr, uintptr_t len);
34         probe gc__nursery__obj__alloc (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
35
36         probe gc__major__obj__alloc__large (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
37         probe gc__major__obj__alloc__pinned (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
38         probe gc__major__obj__alloc__degraded (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
39         probe gc__major__obj__alloc__mature (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
40
41         /* Can be nursery->nursery, nursery->major or major->major */
42         probe gc__obj__moved (uintptr_t dest, uintptr_t src, int dest_gen, int src_gen, uintptr_t size, char *ns_name, char *class_name);
43
44         probe gc__nursery__swept (uintptr_t addr, uintptr_t len);
45         probe gc__major__swept (uintptr_t addr, uintptr_t len);
46
47         probe gc__obj__pinned (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name, int generation);
48 };
49
50 #pragma D attributes Evolving/Evolving/Common provider mono provider
51 #pragma D attributes Private/Private/Unknown provider mono module
52 #pragma D attributes Private/Private/Unknown provider mono function
53 #pragma D attributes Evolving/Evolving/Common provider mono name
54 #pragma D attributes Evolving/Evolving/Common provider mono args
55