1 global gobject_types_2_0_@LT_CURRENT@_@LT_REVISION@
2 global gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@
3 global gobject_signal_names_2_0_@LT_CURRENT@_@LT_REVISION@
5 /* These are needed to keep track of gtype and signal names for the below
8 probe process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("type__new")
10 gobject_types_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),user_string($arg1)] = $arg3;
11 gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg3] = user_string($arg1);
13 probe process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("signal__new")
15 gobject_signal_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg1] = user_string($arg2);
19 * probe gobject.type_new - Called when any entity registered with the #GType system is created
20 * @name: String name of type
21 * @parent_gtype: The parent #GType of this type
22 * @gtype: The #GType for this type
24 probe gobject.type_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("type__new")
26 name = user_string($arg1);
29 probestr = sprintf("gobject.type_new(%s, %d) -> %d", name, parent_gtype, gtype);
33 * probe gobject.object_new - Called when a #GObject is created
34 * @object: Raw pointer to object
35 * @gtype: #GType for this object
36 * @type: String name of object type
38 probe gobject.object_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("object__new")
42 type = gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg2];
43 probestr = sprintf("gobject.object_new(%s) -> %p", type, object);
47 * probe gobject.object_ref - Called when a new reference is added to a #GObject
48 * @object: Raw pointer to object
49 * @gtype: #GType for this object
50 * @type: String name of object type
51 * @old_refcount: Original value of the reference count
52 * @refcount: New value of the reference count
54 probe gobject.object_ref = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("object__ref")
58 type = gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),gtype];
60 refcount = old_refcount+1;
61 probestr = sprintf("gobject.object_ref(%p[%s]) -> %d", object, type, refcount);
65 * probe gobject.object_unref - Called when a reference is removed from a #GObject
66 * @object: Raw pointer to object
67 * @gtype: #GType for this object
68 * @type: String name of object type
69 * @old_refcount: Original value of the reference count
71 probe gobject.object_unref = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("object__unref")
73 /* Beware that if old_refcount is larger than 1 and other threads might race
74 * and destroy object. In that case, object might be a dangling pointer. */
77 type = gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),gtype];
79 refcount = old_refcount-1;
80 probestr = sprintf("gobject.object_unref(%p [%s]) -> %d", object, type, refcount);
84 * probe gobject.object_dispose - Called when a g_object_dispose() run for a #GObject is initiated
85 * @object: Raw pointer to object
86 * @gtype: #GType for this object
87 * @type: String name of object type
90 probe gobject.object_dispose = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("object__dispose")
94 type = gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg2];
96 probestr = sprintf("gobject.object_dispose(%p[%s])", object, type);
100 * probe gobject.object_dispose_end - Called when a g_object_dispose() run for a #GObject is completed
101 * @object: Raw pointer to object
102 * @gtype: #GType for this object
103 * @type: String name of object type
106 probe gobject.object_dispose_end = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("object__dispose__end")
110 type = gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg2];
112 probestr = sprintf("gobject.object_dispose_end(%p[%s])", object, type);
116 * probe gobject.object_finalize - Called when finalization for a #GObject is started
117 * @object: Raw pointer to object
118 * @gtype: #GType for this object
119 * @type: String name of object type
121 probe gobject.object_finalize = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("object__finalize")
125 type = gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg2];
126 probestr = sprintf("gobject.object_finalize(%p[%s])", object, type);
130 * probe gobject.object_finalize - Called when finalization for a #GObject is completed
131 * @object: Raw pointer to object
132 * @gtype: #GType for this object
133 * @type: String name of object type
135 probe gobject.object_finalize_end = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("object__finalize__end")
139 type = gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg2];
140 probestr = sprintf("gobject.object_finalize_end(%p[%s])", object, type);
144 * probe gobject.signal_new - Called when a new signal is registered for a #GObject
145 * @gsignal: Integer value for this signal
146 * @name: String name for this signal
147 * @gtype: #GType for the type which will gain the new signal
148 * @type: String name of the type which will gain the new signal
150 probe gobject.signal_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("signal__new")
153 name = user_string($arg2);
155 type = gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg3];
156 probestr = sprintf("gobject.signal_new(%s, %s) -> %d", name, type, gsignal);
160 * probe gobject.signal_emit - Called when a signal emission for a #GObject is started
161 * @gsignal: Integer value for this signal
162 * @detail: String containing signal "detail"
163 * @signal: String name of the signal
164 * @object: Raw pointer for object emitting signal
165 * @gtype: #GType for the type emitting the signal
166 * @type: String name of the type emitting the signal
168 probe gobject.signal_emit = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("signal__emit")
172 signal = gobject_signal_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg1];
174 signal = signal . "::" . gquarks[pid(), detail]
177 type = gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg4];
178 probestr = sprintf("gobject.signal_emit(%p[%s], %s)", object, type, signal);
182 * probe gobject.signal_emit_end - Called when a signal emission for a #GObject is completed
183 * @gsignal: Integer value for this signal
184 * @detail: String containing signal "detail"
185 * @signal: String name of the signal
186 * @object: Raw pointer for object emitting signal
187 * @gtype: #GType for the type emitting the signal
188 * @type: String name of the type emitting the signal
190 probe gobject.signal_emit_end = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgobject-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("signal__emit__end")
194 signal = gobject_signal_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg1];
196 signal = signal . "::" . gquarks[pid(), detail]
199 type = gobject_type_names_2_0_@LT_CURRENT@_@LT_REVISION@[pid(),$arg4];
200 probestr = sprintf("gobject.signal_emit_end(%p[%s], %s)", object, type, signal);