gkdbus: Fix underflow and unreachable code bug
[platform/upstream/glib.git] / glib / glib.stp.in
1 global glib_quarks_2_0_@LT_CURRENT@_@LT_REVISION@
2 global gvarianttypeinfo_2_0_@LT_CURRENT@_@LT_REVISION@
3
4 /* This is needed to keep track of gquark for use in other probes.*/
5 probe process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("quark__new")
6 {
7   glib_quarks_2_0_@LT_CURRENT@_@LT_REVISION@[pid(), $arg2] = user_string($arg1)
8 }
9
10 /**
11  * probe glib.quark_new - Called when a #GQuark is initially created
12  * @quark: integer value for the quark
13  * @str: string form of the quark
14  */
15 probe glib.quark_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("quark__new")
16 {
17   str = user_string ($arg1); 
18   quark = $arg2; 
19   probestr = sprintf("glib.quark_new(%s) -> %d", str, quark);
20 }
21
22 /**
23  * probe glib.mem_alloc - Called when a malloc block is initially requested
24  * @mem: Raw memory pointer returned
25  * @n_bytes: number of bytes
26  * @zeroed: Boolean value, %TRUE if this block was filled with NUL bytes
27  * @failable: Boolean value, %TRUE if program execution can continue on allocation failure
28  */
29 probe glib.mem_alloc = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("mem__alloc")
30 {
31   mem = $arg1; 
32   n_bytes = $arg2; 
33   zeroed = $arg3; 
34   failable = $arg4; 
35   probestr = sprintf("glib.mem_alloc(n_bytes=%d) -> %p", n_bytes, mem);
36 }
37
38 /**
39  * probe glib.mem_free - Called when a malloc block freed
40  */
41 probe glib.mem_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("mem__free")
42 {
43   mem = $arg1;  /* ARG: @mem: Raw memory pointer */
44   probestr = sprintf("glib.mem_free(mem=%p)", mem);
45 }
46
47 /**
48  * probe glib.mem_realloc - Called when a malloc block is resized
49  * @mem: Raw memory pointer returned
50  * @old_mem: Original memory pointer
51  * @n_bytes: number of bytes
52  * @failable: Boolean value, %TRUE if program execution can continue on allocation failure
53  */
54 probe glib.mem_realloc = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("mem__realloc")
55 {
56   mem = $arg1; 
57   old_mem = $arg2; 
58   n_bytes = $arg3;  
59   failable = $arg4; 
60   probestr = sprintf("glib.mem_realloc(old_mem=%p, n_bytes=%d) -> %p", old_mem, n_bytes, mem);
61 }
62
63 /**
64  * probe glib.slice_alloc - Called when g_slice_alloc() is used
65  * @mem: Raw memory pointer returned
66  * @n_bytes: number of bytes
67  */
68 probe glib.slice_alloc = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("slice__alloc")
69 {
70   mem = $arg1; 
71   n_bytes = $arg2; 
72   probestr = sprintf("glib.slice_alloc(n_bytes=%d) -> %p", n_bytes, mem);
73 }
74
75 /**
76  * probe glib.slice_free - Called when memory slice is freed
77  * @mem: Raw memory pointer returned
78  * @n_bytes: Number of bytes
79  */
80 probe glib.slice_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("slice__free")
81 {
82   mem = $arg1; 
83   n_bytes = $arg2; 
84   probestr = sprintf("glib.slice_free(n_bytes=%d) -> %p", n_bytes, mem);
85 }
86
87 /**
88  * probe glib.main_after_prepare - Called after preparing a GSource
89  * @source: source pointer
90  * @prepare: prepare function pointer
91  * @source_timeout: callback function pointer
92  */
93 probe glib.main_after_prepare = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__after_prepare")
94 {
95   source = $arg1;
96   prepare = $arg2;
97   source_timeout = $arg3;
98   probestr = sprintf("glib.main_after_prepare(source=%p, prepare=%p) -> %u", source, prepare, source_timeout);
99 }
100
101 /**
102  * probe glib.main_after_check - Called after checking a GSource
103  * @source: source pointer
104  * @check: check function pointer
105  * @result: result of the check call
106  */
107 probe glib.main_after_check = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__after_check")
108 {
109   source = $arg1;
110   check = $arg2;
111   result = $arg3;
112   probestr = sprintf("glib.main_after_check(source=%p, check=%p) -> %u", source, check, result);
113 }
114
115 /**
116  * probe glib.main_before_dispatch - Called before dispatching a GSource
117  * @source: name of the source
118  * @source_ptr: source pointer
119  * @dispatch: dispatch function pointer
120  * @callback: callback function pointer
121  * @user_data: user data for @callback
122  */
123 probe glib.main_before_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__before_dispatch")
124 {
125   source = user_string2($arg1, "unnamed");
126   source_ptr = $arg2;
127   dispatch = $arg3;
128   callback = $arg4;
129   user_data = $arg5;
130   probestr = sprintf("glib.main_before_dispatch(source=%s(%p), dispatch=%p, callback=%p, user_data=%p)", source, source_ptr, dispatch, callback, user_data);
131 }
132
133 /**
134  * probe glib.main_after_dispatch - Called after dispatching a GSource
135  * @source: name of the source
136  * @source_ptr: source pointer
137  * @dispatch: dispatch function pointer
138  * @need_destroy: whether the source should be destroyed
139  */
140 probe glib.main_after_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__after_dispatch")
141 {
142   source = user_string2($arg1, "unnamed");
143   source_ptr = $arg2;
144   dispatch = $arg3;
145   need_destroy = $arg4;
146   probestr = sprintf("glib.main_after_dispatch(source=%s(%p), dispatch=%p) -> %u", source, source_ptr, dispatch, need_destroy);
147 }
148
149 /**
150  * probe glib.main_source_attach - Called when a #GSource is attached to a #GMainContext
151  * @source: name of the source
152  * @source_ptr: the #GSource
153  * @context: the #GMainContext the source is being attached to
154  * @id: the ID of the #GSource in the context
155  */
156 probe glib.main_source_attach = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__source_attach")
157 {
158   source = user_string2($arg1, "unnamed");
159   source_ptr = $arg2;
160   context = $arg3;
161   id = $arg4;
162   probestr = sprintf("glib.main_source_attach(source=%s(%p), context=%p) -> %u", source, source_ptr, context, id);
163 }
164
165 /**
166  * probe glib.main_source_destroy - Called when a #GSource is destroyed from a #GMainContext
167  * @source: name of the source
168  * @source_ptr: the #GSource
169  * @context: the #GMainContext the source is being destroyed from
170  */
171 probe glib.main_source_destroy = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__source_destroy")
172 {
173   source = user_string2($arg1, "unnamed");
174   source_ptr = $arg2;
175   context = $arg3;
176   probestr = sprintf("glib.main_source_destroy(source=%s(%p), context=%p)", source, source_ptr, context);
177 }
178
179 /*
180  * probe glib.main_context_default - Called when the default #GMainContext is created
181  * @context: pointer to the new default #GMainContext
182  */
183 probe glib.main_context_default = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_default")
184 {
185   context = $arg1;
186   probestr = sprintf("glib.main_context_default() -> %p", context);
187 }
188
189 /**
190  * probe glib.main_context_new - Called when a #GMainContext is initially created
191  * @context: pointer to the new #GMainContext
192  */
193 probe glib.main_context_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_new")
194 {
195   context = $arg1;
196   probestr = sprintf("glib.main_context_new() -> %p", context);
197 }
198
199 /**
200  * probe glib.main_context_acquire - Called when a thread tries to acquire a #GMainContext
201  * @context: the #GMainContext
202  * @success: TRUE if acquisition was successful; FALSE if there was contention
203  */
204 probe glib.main_context_acquire = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_acquire")
205 {
206   context = $arg1;
207   success = $arg2;
208   probestr = sprintf("glib.main_context_acquire(context=%p) -> %u", context, success);
209 }
210
211 /**
212  * probe glib.main_context_release - Called when a thread releases a #GMainContext
213  * @context: the #GMainContext
214  */
215 probe glib.main_context_release = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_release")
216 {
217   context = $arg1;
218   probestr = sprintf("glib.main_context_release(context=%p)", context);
219 }
220
221 /**
222  * probe glib.main_context_free - Called when a #GMainContext is freed
223  * @context: pointer to the #GMainContext to be freed
224  */
225 probe glib.main_context_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_free")
226 {
227   context = $arg1;
228   probestr = sprintf("glib.main_context_free(context=%p)", context);
229 }
230
231 /**
232  * probe glib.main_context_push_thread_default - Called when a #GMainContext is pushed onto the thread default stack
233  * @context: a #GMainContext
234  */
235 probe glib.main_context_push_thread_default = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_push_thread_default")
236 {
237   context = $arg1;
238   probestr = sprintf("glib.main_context_push_thread_default(context=%p)", context);
239 }
240
241 /**
242  * probe glib.main_context_pop_thread_default - Called when a #GMainContext is popped off the thread default stack
243  * @context: a #GMainContext
244  */
245 probe glib.main_context_pop_thread_default = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_pop_thread_default")
246 {
247   context = $arg1;
248   probestr = sprintf("glib.main_context_pop_thread_default(context=%p)", context);
249 }
250
251 /**
252  * probe glib.main_context_before_prepare - Called before a #GMainContext calls prepare on all its #GSources
253  * @context: a #GMainContext
254  */
255 probe glib.main_context_before_prepare = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_before_prepare")
256 {
257   context = $arg1;
258   probestr = sprintf("glib.main_context_before_prepare(context=%p)", context);
259 }
260
261 /**
262  * probe glib.main_context_after_prepare - Called after a #GMainContext calls prepare on all its #GSources
263  * @context: a #GMainContext
264  * @priority: priority of the highest priority ready #GSource
265  * @n_ready: number of #GSources ready
266  */
267 probe glib.main_context_after_prepare = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_after_prepare")
268 {
269   context = $arg1;
270   priority = $arg2;
271   n_ready = $arg3;
272   probestr = sprintf("glib.main_context_after_prepare(context=%p) -> priority=%i,n_ready=%u", context, priority, n_ready);
273 }
274
275 /**
276  * probe glib.main_context_before_query - Called before a #GMainContext calls query on all its #GSources
277  * @context: a #GMainContext
278  * @max_priority: maximum priority #GSource to check
279  */
280 probe glib.main_context_before_query = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_before_query")
281 {
282   context = $arg1;
283   max_priority = $arg2;
284   probestr = sprintf("glib.main_context_before_query(context=%p, max_priority=%i)", context, max_priority);
285 }
286
287 /**
288  * probe glib.main_context_after_query - Called after a #GMainContext calls query on all its #GSources
289  * @context: a #GMainContext
290  * @timeout: poll timeout to use
291  * @fds: array of FDs ready to be polled, of length @n_fds
292  * @n_fds: number of FDs ready to be polled
293  */
294 probe glib.main_context_after_query = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_after_query")
295 {
296   context = $arg1;
297   timeout = $arg2;
298   fds = $arg3;
299   n_fds = $arg4;
300   probestr = sprintf("glib.main_context_after_query(context=%p) -> timeout=%u,fds=%p,n_fds=%u", context, timeout, fds, n_fds);
301 }
302
303 /**
304  * probe glib.main_context_before_check - Called before a #GMainContext calls check on all its #GSources
305  * @context: a #GMainContext
306  * @max_priority: maximum priority #GSource to check
307  * @fds: array of FDs to check, of length @n_fds
308  * @n_fds: number of FDs to check
309  */
310 probe glib.main_context_before_check = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_before_check")
311 {
312   context = $arg1;
313   max_priority = $arg2;
314   fds = $arg3;
315   n_fds = $arg4;
316   probestr = sprintf("glib.main_context_before_check(context=%p, max_priority=%i, fds=%p, n_fds=%u)", context, max_priority, fds, n_fds);
317 }
318
319 /**
320  * probe glib.main_context_after_check - Called after a #GMainContext calls check on all its #GSources
321  * @context: a #GMainContext
322  * @n_ready: number of sources ready to be dispatched
323  */
324 probe glib.main_context_after_check = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_after_check")
325 {
326   context = $arg1;
327   n_ready = $arg2;
328   probestr = sprintf("glib.main_context_after_check(context=%p) -> %u", context, n_ready);
329 }
330
331 /**
332  * probe glib.main_context_before_dispatch - Called before a #GMainContext calls dispatch on all its #GSources
333  * @context: a #GMainContext
334  */
335 probe glib.main_context_before_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_before_dispatch")
336 {
337   context = $arg1;
338   probestr = sprintf("glib.main_context_before_dispatch(context=%p)", context);
339 }
340
341 /**
342  * probe glib.main_context_after_dispatch - Called after a #GMainContext calls dispatch on all its #GSources
343  * @context: a #GMainContext
344  */
345 probe glib.main_context_after_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_after_dispatch")
346 {
347   context = $arg1;
348   probestr = sprintf("glib.main_context_after_dispatch(context=%p)", context);
349 }
350
351 /**
352  * probe glib.main_context_wakeup - Called when a wakeup call is made for a #GMainContext
353  * @context: a #GMainContext
354  */
355 probe glib.main_context_wakeup = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_wakeup")
356 {
357   context = $arg1;
358   probestr = sprintf("glib.main_context_wakeup(context=%p)", context);
359 }
360
361 /**
362  * probe glib.main_context_wakeup_acknowledge - Called when a wakeup call is acknowledged by a #GMainContext
363  * @context: a #GMainContext
364  */
365 probe glib.main_context_wakeup_acknowledge = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_wakeup_acknowledge")
366 {
367   context = $arg1;
368   probestr = sprintf("glib.main_context_wakeup_acknowledge(context=%p)", context);
369 }
370
371 /**
372  * probe glib.main_loop_new - Called when a #GMainLoop is initially created
373  * @loop: pointer to the new #GMainLoop
374  * @context: pointer to the parent #GMainContext
375  */
376 probe glib.main_loop_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__loop_new")
377 {
378   loop = $arg1;
379   context = $arg2;
380   probestr = sprintf("glib.main_loop_new(%p) -> %p", context, loop);
381 }
382
383 /**
384  * probe glib.main_context_quit - Called when a #GMainLoop is quit
385  * @loop: pointer to the #GMainLoop to be quit
386  */
387 probe glib.main_loop_quit = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__loop_quit")
388 {
389   loop = $arg1;
390   probestr = sprintf("glib.main_loop_quit(%p)", loop);
391 }
392
393 /**
394  * probe glib.idle_add - Called when g_idle_add() or g_idle_add_full() is called
395  * @source: the newly created idle #GSource
396  * @context: the #GMainContext the idle source was added to
397  * @id: the ID of the #GSource in the main context
398  * @priority: the priority of the idle source
399  * @func: the idle callback function
400  * @data: data to pass to the callback function
401  */
402 probe glib.idle_add = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("idle__add")
403 {
404   source = $arg1;
405   context = $arg2;
406   id = $arg3;
407   priority = $arg4;
408   func = $arg5;
409   data = $arg6;
410   probestr = sprintf("glib.idle_add(%d, %p, %p) -> %p, %p, %u", priority, func, data, source, context, id);
411 }
412
413 /**
414  * probe glib.idle_dispatch - Called when an idle #GSource is dispatched
415  * @source: the idle #GSource
416  * @context: the #GMainContext the idle source was in
417  * @func: the idle callback function
418  * @data: data passed to the callback function
419  * @again: 1 if the idle function is to be scheduled again, 0 otherwise
420  */
421 probe glib.idle_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("idle__dispatch")
422 {
423   source = $arg1;
424   context = $arg2;
425   func = $arg3;
426   data = $arg4;
427   again = $arg5;
428   probestr = sprintf("glib.idle_dispatch(%p) -> %p, %p, %p, %u", source, context, func, data, again);
429 }
430
431 /**
432  * probe glib.timeout_add - Called when g_timeout_add() or g_timeout_add_full() is called
433  * @source: the newly created timeout #GSource
434  * @context: the #GMainContext the timeout source was added to
435  * @id: the ID of the #GSource in the main context
436  * @priority: the priority of the timeout source
437  * @interval: the time between dispatches of the source, in milliseconds
438  * @func: the timeout callback function
439  * @data: data to pass to the callback function
440  */
441 probe glib.timeout_add = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("timeout__add")
442 {
443   source = $arg1;
444   context = $arg2;
445   id = $arg3;
446   priority = $arg4;
447   interval = $arg5;
448   func = $arg6;
449   data = $arg7;
450   probestr = sprintf("glib.timeout_add(%d, %u, %p, %p) -> %p, %p, %u", priority, interval, func, data, source, context, id);
451 }
452
453 /**
454  * probe glib.timeout_dispatch - Called when a timeout #GSource is dispatched
455  * @source: the timeout #GSource
456  * @context: the #GMainContext the timeout source was in
457  * @func: the timeout callback function
458  * @data: data passed to the callback function
459  * @again: 1 if the timeout is to be scheduled again, 0 otherwise
460  */
461 probe glib.timeout_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("timeout__dispatch")
462 {
463   source = $arg1;
464   context = $arg2;
465   func = $arg3;
466   data = $arg4;
467   again = $arg5;
468   probestr = sprintf("glib.timeout_dispatch(%p) -> %p, %p, %p, %u", source, context, func, data, again);
469 }
470
471 /**
472  * probe glib.source_new - Called when a new #GSource is created
473  * @source: the new #GSource
474  * @prepare: the prepare function for the #GSource
475  * @check: the check function for the #GSource
476  * @dispatch: the dispatch function for the #GSource
477  * @finalize: the finalize function for the #GSource
478  * @struct_size: the size of #GSource structure to allocate
479  */
480 probe glib.source_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__new")
481 {
482   source = $arg1;
483   prepare = $arg2;
484   check = $arg3;
485   dispatch = $arg4;
486   finalize = $arg5;
487   struct_size = $arg6;
488   probestr = sprintf("glib.source_new(%p, %p, %p, %p, %u) -> %p", prepare, check, dispatch, finalize, struct_size, source);
489 }
490
491 /**
492  * probe glib.source_set_callback - Called when the callback on a #GSource is set
493  * @source: the #GSource
494  * @func: the new callback function for the source
495  * @data: data to pass to @func
496  * @notify: notify handler for @data
497  */
498 probe glib.source_set_callback = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__set_callback")
499 {
500   source = $arg1;
501   func = $arg2;
502   data = $arg3;
503   notify = $arg4;
504   probestr = sprintf("glib.source_set_callback(%p, %p, %p, %p)", source, func, data, notify);
505 }
506
507 /**
508  * probe glib.source_set_callback_indirect - Called when an indirect callback on a #GSource is set
509  * @source: the #GSource
510  * @callback_data: data for @callback_funcs
511  * @ref: the indirect callback ref function
512  * @unref: the indirect callback unref function
513  * @get: the indirect callback getter function
514  */
515 probe glib.source_set_callback_indirect = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__set_callback_indirect")
516 {
517   source = $arg1;
518   callback_data = $arg2;
519   ref = $arg3;
520   unref = $arg4;
521   get = $arg5;
522   probestr = sprintf("glib.source_set_callback_indirect(%p, %p, %p, %p, %p)", source, callback_data, ref, unref, get);
523 }
524
525 /**
526  * probe glib.source_set_ready_time - Called when the ready time is set on a #GSource
527  * @source: the #GSource
528  * @ready_time: the new ready time
529  */
530 probe glib.source_set_ready_time = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__set_ready_time")
531 {
532   source = $arg1;
533   ready_time = $arg2;
534   probestr = sprintf("glib.source_set_ready_time(%p, %i)", source, ready_time);
535 }
536
537 /**
538  * probe glib.source_set_priority - Called when the priority is set on a #GSource
539  * @source: the #GSource
540  * @context: the context the source is attached to
541  * @priority: the new priority
542  */
543 probe glib.source_set_priority = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__set_priority")
544 {
545   source = $arg1;
546   context = $arg2;
547   priority = $arg3;
548   probestr = sprintf("glib.source_set_priority(%p, %p, %i)", source, context, priority);
549 }
550
551 /**
552  * probe glib.source_add_child_source - Called when a child #GSource is added to another
553  * @source: the parent #GSource
554  * @child_source: the child #GSource
555  */
556 probe glib.source_add_child_source = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__add_child_source")
557 {
558   source = $arg1;
559   child_source = $arg2;
560   probestr = sprintf("glib.source_add_child_source(%p, %p)", source, child_source);
561 }
562
563 /**
564  * probe glib.source_set_name - Called when the name is set for a #GSource
565  * @source: the #GSource
566  * @name: the new name
567  */
568 probe glib.source_set_name = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__set_name")
569 {
570   source = $arg1;
571   name = user_string($arg2);
572   probestr = sprintf("glib.source_set_name(%p, %s)", source, name);
573 }
574
575 /**
576  * probe glib.source_before_free - Called before a #GSource is finalised
577  * @source: the #GSource
578  * @context: the context the #GSource is attached to, if any
579  * @finalize: the finalize function about to be called
580  */
581 probe glib.source_before_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__before_free")
582 {
583   source = $arg1;
584   context = $arg2;
585   finalize = $arg3;
586   probestr = sprintf("glib.source_before_free(%p, %p, %p)", source, context, finalize);
587 }
588
589 /**
590  * probe glib.thread_spawned - Called from a newly spawned GThread, before the thread function is called
591  * @func: the #GThreadFunc about to be executed
592  * @data: data to be passed to @func
593  * @name: (nullable): the thread name
594  */
595 probe glib.thread_spawned = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("thread__spawned")
596 {
597   func = $arg1;
598   data = $arg2;
599   name = user_string($arg3);
600   probestr = sprintf("glib.thread_spawned(%p, %p, %s)", func, data, name);
601 }
602
603 /**
604  * probe glib.rcbox_alloc - Called when a refcounted block is initially requested
605  * @mem: Raw memory pointer returned
606  * @n_bytes: number of bytes
607  * @atomic: Boolean value, %TRUE if this block is atomically refcounted
608  * @zeroed: Boolean value, %TRUE if this block was filled with NUL bytes
609  */
610 probe glib.rcbox_alloc = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("rcbox__alloc")
611 {
612   mem = $arg1;
613   n_bytes = $arg2;
614   atomic = $arg3;
615   zeroed = $arg4;
616   probestr = sprintf("glib.rcbox_alloc(n_bytes=%d) -> %p", n_bytes, mem);
617 }
618
619 /**
620  * probe glib.rcbox_acquire - Called when a refcounted block acquires a ref
621  */
622 probe glib.rcbox_acquire = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("rcbox__acquire")
623 {
624   mem = $arg1;  /* ARG: @mem: Raw memory pointer */
625   atomic = $arg2;  /* ARG: @atomic: Boolean value, %TRUE if the reference was acquired atomically */
626   probestr = sprintf("glib.rcbox_acquire(mem=%p)", mem);
627 }
628
629 /**
630  * probe glib.rcbox_release - Called when a refcounted block acquires a ref
631  */
632 probe glib.rcbox_acquire = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("rcbox__release")
633 {
634   mem = $arg1;  /* ARG: @mem: Raw memory pointer */
635   atomic = $arg2;  /* ARG: @atomic: Boolean value, %TRUE if the reference was released atomically */
636   probestr = sprintf("glib.rcbox_release(mem=%p)", mem);
637 }
638
639 /**
640  * probe glib.rcbox_free - Called when a refcounted block is freed
641  */
642 probe glib.rcbox_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("rcbox__free")
643 {
644   mem = $arg1;  /* ARG: @mem: Raw memory pointer */
645   probestr = sprintf("glib.rcbox_free(mem=%p)", mem);
646 }
647
648 /**
649  * probe glib.variant_type_info_new:
650  * @info: Raw info structure pointer
651  * @typestr: GVariant type string
652  **/
653 probe glib.variant_type_info_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("variant__type_info_new")
654 {
655   info = $arg1;
656   typestr = user_string($arg2);
657   gvarianttypeinfo[pid(), info] = typestr;
658 }
659
660 /**
661  * probe glib.variant_type_info_free:
662  * @info: Raw info structure pointer
663  **/
664 probe glib.variant_type_info_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("variant__type_info_free")
665 {
666   info = $arg1;
667   delete gvarianttypeinfo[pid(), info];
668 }
669
670 /**
671  * probe glib.variant_start_serialise:
672  * @value: pointer to #GVariant
673  * @typeinfo: the raw typeinfo structure pointer
674  * @typestr: the type string of the #GVariant
675  *
676  * Indicates that a @value has started the process of serialising
677  * itself.  This involves dropping references on the child elements of
678  * @value, so when mixed with the end_serialise probe, it is possible to
679  * see the context in which the unrefs are occuring.
680  **/
681 probe glib.variant_start_serialise = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("variant__start_serialise")
682 {
683   value = $arg1;
684   typeinfo = $arg2;
685   typestr = gvarianttypeinfo[pid(), typeinfo];
686 }
687
688 /**
689  * probe glib.variant_end_serialise:
690  * @value: pointer to #GVariant
691  * @typeinfo: the raw typeinfo structure pointer
692  * @typestr: the type string of the #GVariant
693  *
694  * Indicates that a @value has ended the process of serialising itself.
695  **/
696 probe glib.variant_end_serialise = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("variant__end_serialise")
697 {
698   value = $arg1;
699   typeinfo = $arg2;
700   typestr = gvarianttypeinfo[pid(), typeinfo];
701 }
702
703 /**
704  * probe glib.variant_from_buffer:
705  * @value: pointer to #GVariant
706  * @typeinfo: the raw typeinfo structure pointer
707  * @typestr: the type string of the #GVariant
708  * @ref_count: the initial reference count
709  * @state: the internal state bitfield
710  *
711  * Reports that a serialised #GVariant has been created from a buffer.
712  * This can happen in two cases.  The first is when a leaf value is
713  * created (with g_variant_new_string(), for example).  The second is
714  * when a container #GVariant is created by loading from serialised data
715  * (with g_variant_new_from_data(), for example).
716  **/
717 probe glib.variant_from_buffer = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("variant__from_buffer")
718 {
719   value = $arg1;
720   typeinfo = $arg2;
721   typestr = gvarianttypeinfo[pid(), typeinfo];
722   ref_count = $arg3;
723   state = $arg4;
724 }
725
726 /**
727  * probe glib.variant_from_children:
728  * @value: pointer to #GVariant
729  * @typeinfo: the raw typeinfo structure pointer
730  * @typestr: the type string of the #GVariant
731  * @ref_count: the initial reference count
732  * @state: the internal state bitfield
733  *
734  * Reports that a tree-form #GVariant has been created from a number of
735  * child elements.  This happens in response to the calls like
736  * g_variant_new_array() and also for g_variant_builder_end().
737  **/
738 probe glib.variant_from_children = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("variant__from_children")
739 {
740   value = $arg1;
741   typeinfo = $arg2;
742   typestr = gvarianttypeinfo[pid(), typeinfo];
743   ref_count = $arg3;
744   state = $arg4;
745 }
746
747 /**
748  * probe glib.variant_unref:
749  * @value: pointer to #GVariant
750  * @typeinfo: the raw typeinfo structure pointer
751  * @typestr: the type string of the #GVariant
752  * @ref_count: the reference count before the call
753  * @state: the internal state bitfield
754  *
755  * Reports that g_variant_unref() has been called on a value.
756  **/
757 probe glib.variant_unref = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("variant__unref")
758 {
759   value = $arg1;
760   typeinfo = $arg2;
761   typestr = gvarianttypeinfo[pid(), typeinfo];
762   old_ref_count = $arg3;
763   new_ref_count = old_ref_count - 1;
764   state = $arg4;
765 }
766
767 /**
768  * probe glib.variant_ref:
769  * @value: pointer to #GVariant
770  * @typeinfo: the raw typeinfo structure pointer
771  * @typestr: the type string of the #GVariant
772  * @ref_count: the reference count before the call
773  * @state: the internal state bitfield
774  *
775  * Reports that g_variant_ref() has been called on a value.
776  **/
777 probe glib.variant_ref = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("variant__ref")
778 {
779   value = $arg1;
780   typeinfo = $arg2;
781   typestr = gvarianttypeinfo[pid(), typeinfo];
782   old_ref_count = $arg3;
783   new_ref_count = $arg3 + 1;
784   state = $arg4;
785 }
786
787 /**
788  * probe glib.variant_ref_sink:
789  * @value: pointer to #GVariant
790  * @typeinfo: the raw typeinfo structure pointer
791  * @typestr: the type string of the #GVariant
792  * @ref_count: the reference count before the call
793  * @state: the internal state bitfield
794  * @floating: the floating bit of @state
795  *
796  * Reports that g_variant_ref_sink() has been called on a value.
797  **/
798 probe glib.variant_ref_sink = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("variant__ref_sink")
799 {
800   value = $arg1;
801   typeinfo = $arg2;
802   typestr = gvarianttypeinfo[pid(), typeinfo];
803   ref_count = $arg3;
804   state = $arg4;
805   floating = $arg5;
806 }
807
808 /**
809  * probe glib.variant_take_ref:
810  * @value: pointer to #GVariant
811  * @typeinfo: the raw typeinfo structure pointer
812  * @typestr: the type string of the #GVariant
813  * @ref_count: the reference count before the call
814  * @state: the internal state bitfield
815  * @floating: the floating bit of @state
816  *
817  * Reports that g_variant_take_ref() has been called on a value.
818  **/
819 probe glib.variant_take_ref = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("variant__take_ref")
820 {
821   value = $arg1;
822   typeinfo = $arg2;
823   typestr = gvarianttypeinfo[pid(), typeinfo];
824   ref_count = $arg3;
825   state = $arg4;
826   floating = $arg5;
827 }
828
829 /**
830  * probe glib.variant_from_parent:
831  * @value: pointer to #GVariant
832  * @typeinfo: the raw typeinfo structure pointer
833  * @typestr: the type string of the #GVariant
834  * @ref_count: the initial reference count
835  * @state: the internal state bitfield
836  *
837  * Reports that a #GVariant has been created as a result of calling
838  * g_variant_get_child_value() on a serialised #GVariant (ie:
839  * deserialisation has occured).
840  **/
841 probe glib.variant_from_parent = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("variant__from_parent")
842 {
843   value = $arg1;
844   typeinfo = $arg2;
845   typestr = gvarianttypeinfo[pid(), typeinfo];
846   ref_count = $arg3;
847   state = $arg4;
848 }