Imported Upstream version 2.74.3
[platform/upstream/glib.git] / glib / glib.stp.in
1 global glib_quarks_2_0_@LT_CURRENT@_@LT_REVISION@
2
3 /* This is needed to keep track of gquark for use in other probes.*/
4 probe process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("quark__new")
5 {
6   glib_quarks_2_0_@LT_CURRENT@_@LT_REVISION@[pid(), $arg2] = user_string($arg1)
7 }
8
9 /**
10  * probe glib.quark_new - Called when a #GQuark is initially created
11  * @quark: integer value for the quark
12  * @str: string form of the quark
13  */
14 probe glib.quark_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("quark__new")
15 {
16   str = user_string ($arg1); 
17   quark = $arg2; 
18   probestr = sprintf("glib.quark_new(%s) -> %d", str, quark);
19 }
20
21 /**
22  * probe glib.mem_alloc - Called when a malloc block is initially requested
23  * @mem: Raw memory pointer returned
24  * @n_bytes: number of bytes
25  * @zeroed: Boolean value, %TRUE if this block was filled with NUL bytes
26  * @failable: Boolean value, %TRUE if program execution can continue on allocation failure
27  */
28 probe glib.mem_alloc = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("mem__alloc")
29 {
30   mem = $arg1; 
31   n_bytes = $arg2; 
32   zeroed = $arg3; 
33   failable = $arg4; 
34   probestr = sprintf("glib.mem_alloc(n_bytes=%d) -> %p", n_bytes, mem);
35 }
36
37 /**
38  * probe glib.mem_free - Called when a malloc block freed
39  */
40 probe glib.mem_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("mem__free")
41 {
42   mem = $arg1;  /* ARG: @mem: Raw memory pointer */
43   probestr = sprintf("glib.mem_free(mem=%p)", mem);
44 }
45
46 /**
47  * probe glib.mem_realloc - Called when a malloc block is resized
48  * @mem: Raw memory pointer returned
49  * @old_mem: Original memory pointer
50  * @n_bytes: number of bytes
51  * @failable: Boolean value, %TRUE if program execution can continue on allocation failure
52  */
53 probe glib.mem_realloc = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("mem__realloc")
54 {
55   mem = $arg1; 
56   old_mem = $arg2; 
57   n_bytes = $arg3;  
58   failable = $arg4; 
59   probestr = sprintf("glib.mem_realloc(old_mem=%p, n_bytes=%d) -> %p", old_mem, n_bytes, mem);
60 }
61
62 /**
63  * probe glib.slice_alloc - Called when g_slice_alloc() is used
64  * @mem: Raw memory pointer returned
65  * @n_bytes: number of bytes
66  */
67 probe glib.slice_alloc = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("slice__alloc")
68 {
69   mem = $arg1; 
70   n_bytes = $arg2; 
71   probestr = sprintf("glib.slice_alloc(n_bytes=%d) -> %p", n_bytes, mem);
72 }
73
74 /**
75  * probe glib.slice_free - Called when memory slice is freed
76  * @mem: Raw memory pointer returned
77  * @n_bytes: Number of bytes
78  */
79 probe glib.slice_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("slice__free")
80 {
81   mem = $arg1; 
82   n_bytes = $arg2; 
83   probestr = sprintf("glib.slice_free(n_bytes=%d) -> %p", n_bytes, mem);
84 }
85
86 /**
87  * probe glib.main_after_prepare - Called after preparing a GSource
88  * @source: source pointer
89  * @prepare: prepare function pointer
90  * @source_timeout: callback function pointer
91  */
92 probe glib.main_after_prepare = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__after_prepare")
93 {
94   source = $arg1;
95   prepare = $arg2;
96   source_timeout = $arg3;
97   probestr = sprintf("glib.main_after_prepare(source=%p, prepare=%p) -> %u", source, prepare, source_timeout);
98 }
99
100 /**
101  * probe glib.main_after_check - Called after checking a GSource
102  * @source: source pointer
103  * @check: check function pointer
104  * @result: result of the check call
105  */
106 probe glib.main_after_check = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__after_check")
107 {
108   source = $arg1;
109   check = $arg2;
110   result = $arg3;
111   probestr = sprintf("glib.main_after_check(source=%p, check=%p) -> %u", source, check, result);
112 }
113
114 /**
115  * probe glib.main_before_dispatch - Called before dispatching a GSource
116  * @source: name of the source
117  * @source_ptr: source pointer
118  * @dispatch: dispatch function pointer
119  * @callback: callback function pointer
120  * @user_data: user data for @callback
121  */
122 probe glib.main_before_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__before_dispatch")
123 {
124   source = user_string2($arg1, "unnamed");
125   source_ptr = $arg2;
126   dispatch = $arg3;
127   callback = $arg4;
128   user_data = $arg5;
129   probestr = sprintf("glib.main_before_dispatch(source=%s(%p), dispatch=%p, callback=%p, user_data=%p)", source, source_ptr, dispatch, callback, user_data);
130 }
131
132 /**
133  * probe glib.main_after_dispatch - Called after dispatching a GSource
134  * @source: name of the source
135  * @source_ptr: source pointer
136  * @dispatch: dispatch function pointer
137  * @need_destroy: whether the source should be destroyed
138  */
139 probe glib.main_after_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__after_dispatch")
140 {
141   source = user_string2($arg1, "unnamed");
142   source_ptr = $arg2;
143   dispatch = $arg3;
144   need_destroy = $arg4;
145   probestr = sprintf("glib.main_after_dispatch(source=%s(%p), dispatch=%p) -> %u", source, source_ptr, dispatch, need_destroy);
146 }
147
148 /**
149  * probe glib.main_source_attach - Called when a #GSource is attached to a #GMainContext
150  * @source: name of the source
151  * @source_ptr: the #GSource
152  * @context: the #GMainContext the source is being attached to
153  * @id: the ID of the #GSource in the context
154  */
155 probe glib.main_source_attach = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__source_attach")
156 {
157   source = user_string2($arg1, "unnamed");
158   source_ptr = $arg2;
159   context = $arg3;
160   id = $arg4;
161   probestr = sprintf("glib.main_source_attach(source=%s(%p), context=%p) -> %u", source, source_ptr, context, id);
162 }
163
164 /**
165  * probe glib.main_source_destroy - Called when a #GSource is destroyed from a #GMainContext
166  * @source: name of the source
167  * @source_ptr: the #GSource
168  * @context: the #GMainContext the source is being destroyed from
169  */
170 probe glib.main_source_destroy = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__source_destroy")
171 {
172   source = user_string2($arg1, "unnamed");
173   source_ptr = $arg2;
174   context = $arg3;
175   probestr = sprintf("glib.main_source_destroy(source=%s(%p), context=%p)", source, source_ptr, context);
176 }
177
178 /*
179  * probe glib.main_context_default - Called when the default #GMainContext is created
180  * @context: pointer to the new default #GMainContext
181  */
182 probe glib.main_context_default = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_default")
183 {
184   context = $arg1;
185   probestr = sprintf("glib.main_context_default() -> %p", context);
186 }
187
188 /**
189  * probe glib.main_context_new - Called when a #GMainContext is initially created
190  * @context: pointer to the new #GMainContext
191  */
192 probe glib.main_context_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_new")
193 {
194   context = $arg1;
195   probestr = sprintf("glib.main_context_new() -> %p", context);
196 }
197
198 /**
199  * probe glib.main_context_acquire - Called when a thread tries to acquire a #GMainContext
200  * @context: the #GMainContext
201  * @success: TRUE if acquisition was successful; FALSE if there was contention
202  */
203 probe glib.main_context_acquire = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_acquire")
204 {
205   context = $arg1;
206   success = $arg2;
207   probestr = sprintf("glib.main_context_acquire(context=%p) -> %u", context, success);
208 }
209
210 /**
211  * probe glib.main_context_release - Called when a thread releases a #GMainContext
212  * @context: the #GMainContext
213  */
214 probe glib.main_context_release = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_release")
215 {
216   context = $arg1;
217   probestr = sprintf("glib.main_context_release(context=%p)", context);
218 }
219
220 /**
221  * probe glib.main_context_free - Called when a #GMainContext is freed
222  * @context: pointer to the #GMainContext to be freed
223  */
224 probe glib.main_context_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_free")
225 {
226   context = $arg1;
227   probestr = sprintf("glib.main_context_free(context=%p)", context);
228 }
229
230 /**
231  * probe glib.main_context_push_thread_default - Called when a #GMainContext is pushed onto the thread default stack
232  * @context: a #GMainContext
233  */
234 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")
235 {
236   context = $arg1;
237   probestr = sprintf("glib.main_context_push_thread_default(context=%p)", context);
238 }
239
240 /**
241  * probe glib.main_context_pop_thread_default - Called when a #GMainContext is popped off the thread default stack
242  * @context: a #GMainContext
243  */
244 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")
245 {
246   context = $arg1;
247   probestr = sprintf("glib.main_context_pop_thread_default(context=%p)", context);
248 }
249
250 /**
251  * probe glib.main_context_before_prepare - Called before a #GMainContext calls prepare on all its #GSources
252  * @context: a #GMainContext
253  */
254 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")
255 {
256   context = $arg1;
257   probestr = sprintf("glib.main_context_before_prepare(context=%p)", context);
258 }
259
260 /**
261  * probe glib.main_context_after_prepare - Called after a #GMainContext calls prepare on all its #GSources
262  * @context: a #GMainContext
263  * @priority: priority of the highest priority ready #GSource
264  * @n_ready: number of #GSources ready
265  */
266 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")
267 {
268   context = $arg1;
269   priority = $arg2;
270   n_ready = $arg3;
271   probestr = sprintf("glib.main_context_after_prepare(context=%p) -> priority=%i,n_ready=%u", context, priority, n_ready);
272 }
273
274 /**
275  * probe glib.main_context_before_query - Called before a #GMainContext calls query on all its #GSources
276  * @context: a #GMainContext
277  * @max_priority: maximum priority #GSource to check
278  */
279 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")
280 {
281   context = $arg1;
282   max_priority = $arg2;
283   probestr = sprintf("glib.main_context_before_query(context=%p, max_priority=%i)", context, max_priority);
284 }
285
286 /**
287  * probe glib.main_context_after_query - Called after a #GMainContext calls query on all its #GSources
288  * @context: a #GMainContext
289  * @timeout: poll timeout to use
290  * @fds: array of FDs ready to be polled, of length @n_fds
291  * @n_fds: number of FDs ready to be polled
292  */
293 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")
294 {
295   context = $arg1;
296   timeout = $arg2;
297   fds = $arg3;
298   n_fds = $arg4;
299   probestr = sprintf("glib.main_context_after_query(context=%p) -> timeout=%u,fds=%p,n_fds=%u", context, timeout, fds, n_fds);
300 }
301
302 /**
303  * probe glib.main_context_before_check - Called before a #GMainContext calls check on all its #GSources
304  * @context: a #GMainContext
305  * @max_priority: maximum priority #GSource to check
306  * @fds: array of FDs to check, of length @n_fds
307  * @n_fds: number of FDs to check
308  */
309 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")
310 {
311   context = $arg1;
312   max_priority = $arg2;
313   fds = $arg3;
314   n_fds = $arg4;
315   probestr = sprintf("glib.main_context_before_check(context=%p, max_priority=%i, fds=%p, n_fds=%u)", context, max_priority, fds, n_fds);
316 }
317
318 /**
319  * probe glib.main_context_after_check - Called after a #GMainContext calls check on all its #GSources
320  * @context: a #GMainContext
321  * @n_ready: number of sources ready to be dispatched
322  */
323 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")
324 {
325   context = $arg1;
326   n_ready = $arg2;
327   probestr = sprintf("glib.main_context_after_check(context=%p) -> %u", context, n_ready);
328 }
329
330 /**
331  * probe glib.main_context_before_dispatch - Called before a #GMainContext calls dispatch on all its #GSources
332  * @context: a #GMainContext
333  */
334 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")
335 {
336   context = $arg1;
337   probestr = sprintf("glib.main_context_before_dispatch(context=%p)", context);
338 }
339
340 /**
341  * probe glib.main_context_after_dispatch - Called after a #GMainContext calls dispatch on all its #GSources
342  * @context: a #GMainContext
343  */
344 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")
345 {
346   context = $arg1;
347   probestr = sprintf("glib.main_context_after_dispatch(context=%p)", context);
348 }
349
350 /**
351  * probe glib.main_context_wakeup - Called when a wakeup call is made for a #GMainContext
352  * @context: a #GMainContext
353  */
354 probe glib.main_context_wakeup = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_wakeup")
355 {
356   context = $arg1;
357   probestr = sprintf("glib.main_context_wakeup(context=%p)", context);
358 }
359
360 /**
361  * probe glib.main_context_wakeup_acknowledge - Called when a wakeup call is acknowledged by a #GMainContext
362  * @context: a #GMainContext
363  */
364 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")
365 {
366   context = $arg1;
367   probestr = sprintf("glib.main_context_wakeup_acknowledge(context=%p)", context);
368 }
369
370 /**
371  * probe glib.main_loop_new - Called when a #GMainLoop is initially created
372  * @loop: pointer to the new #GMainLoop
373  * @context: pointer to the parent #GMainContext
374  */
375 probe glib.main_loop_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__loop_new")
376 {
377   loop = $arg1;
378   context = $arg2;
379   probestr = sprintf("glib.main_loop_new(%p) -> %p", context, loop);
380 }
381
382 /**
383  * probe glib.main_context_quit - Called when a #GMainLoop is quit
384  * @loop: pointer to the #GMainLoop to be quit
385  */
386 probe glib.main_loop_quit = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__loop_quit")
387 {
388   loop = $arg1;
389   probestr = sprintf("glib.main_loop_quit(%p)", loop);
390 }
391
392 /**
393  * probe glib.idle_add - Called when g_idle_add() or g_idle_add_full() is called
394  * @source: the newly created idle #GSource
395  * @context: the #GMainContext the idle source was added to
396  * @id: the ID of the #GSource in the main context
397  * @priority: the priority of the idle source
398  * @func: the idle callback function
399  * @data: data to pass to the callback function
400  */
401 probe glib.idle_add = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("idle__add")
402 {
403   source = $arg1;
404   context = $arg2;
405   id = $arg3;
406   priority = $arg4;
407   func = $arg5;
408   data = $arg6;
409   probestr = sprintf("glib.idle_add(%d, %p, %p) -> %p, %p, %u", priority, func, data, source, context, id);
410 }
411
412 /**
413  * probe glib.idle_dispatch - Called when an idle #GSource is dispatched
414  * @source: the idle #GSource
415  * @context: the #GMainContext the idle source was in
416  * @func: the idle callback function
417  * @data: data passed to the callback function
418  * @again: 1 if the idle function is to be scheduled again, 0 otherwise
419  */
420 probe glib.idle_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("idle__dispatch")
421 {
422   source = $arg1;
423   context = $arg2;
424   func = $arg3;
425   data = $arg4;
426   again = $arg5;
427   probestr = sprintf("glib.idle_dispatch(%p) -> %p, %p, %p, %u", source, context, func, data, again);
428 }
429
430 /**
431  * probe glib.timeout_add - Called when g_timeout_add() or g_timeout_add_full() is called
432  * @source: the newly created timeout #GSource
433  * @context: the #GMainContext the timeout source was added to
434  * @id: the ID of the #GSource in the main context
435  * @priority: the priority of the timeout source
436  * @interval: the time between dispatches of the source, in milliseconds
437  * @func: the timeout callback function
438  * @data: data to pass to the callback function
439  */
440 probe glib.timeout_add = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("timeout__add")
441 {
442   source = $arg1;
443   context = $arg2;
444   id = $arg3;
445   priority = $arg4;
446   interval = $arg5;
447   func = $arg6;
448   data = $arg7;
449   probestr = sprintf("glib.timeout_add(%d, %u, %p, %p) -> %p, %p, %u", priority, interval, func, data, source, context, id);
450 }
451
452 /**
453  * probe glib.timeout_dispatch - Called when a timeout #GSource is dispatched
454  * @source: the timeout #GSource
455  * @context: the #GMainContext the timeout source was in
456  * @func: the timeout callback function
457  * @data: data passed to the callback function
458  * @again: 1 if the timeout is to be scheduled again, 0 otherwise
459  */
460 probe glib.timeout_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("timeout__dispatch")
461 {
462   source = $arg1;
463   context = $arg2;
464   func = $arg3;
465   data = $arg4;
466   again = $arg5;
467   probestr = sprintf("glib.timeout_dispatch(%p) -> %p, %p, %p, %u", source, context, func, data, again);
468 }
469
470 /**
471  * probe glib.source_new - Called when a new #GSource is created
472  * @source: the new #GSource
473  * @prepare: the prepare function for the #GSource
474  * @check: the check function for the #GSource
475  * @dispatch: the dispatch function for the #GSource
476  * @finalize: the finalize function for the #GSource
477  * @struct_size: the size of #GSource structure to allocate
478  */
479 probe glib.source_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__new")
480 {
481   source = $arg1;
482   prepare = $arg2;
483   check = $arg3;
484   dispatch = $arg4;
485   finalize = $arg5;
486   struct_size = $arg6;
487   probestr = sprintf("glib.source_new(%p, %p, %p, %p, %u) -> %p", prepare, check, dispatch, finalize, struct_size, source);
488 }
489
490 /**
491  * probe glib.source_set_callback - Called when the callback on a #GSource is set
492  * @source: the #GSource
493  * @func: the new callback function for the source
494  * @data: data to pass to @func
495  * @notify: notify handler for @data
496  */
497 probe glib.source_set_callback = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__set_callback")
498 {
499   source = $arg1;
500   func = $arg2;
501   data = $arg3;
502   notify = $arg4;
503   probestr = sprintf("glib.source_set_callback(%p, %p, %p, %p)", source, func, data, notify);
504 }
505
506 /**
507  * probe glib.source_set_callback_indirect - Called when an indirect callback on a #GSource is set
508  * @source: the #GSource
509  * @callback_data: data for @callback_funcs
510  * @ref: the indirect callback ref function
511  * @unref: the indirect callback unref function
512  * @get: the indirect callback getter function
513  */
514 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")
515 {
516   source = $arg1;
517   callback_data = $arg2;
518   ref = $arg3;
519   unref = $arg4;
520   get = $arg5;
521   probestr = sprintf("glib.source_set_callback_indirect(%p, %p, %p, %p, %p)", source, callback_data, ref, unref, get);
522 }
523
524 /**
525  * probe glib.source_set_ready_time - Called when the ready time is set on a #GSource
526  * @source: the #GSource
527  * @ready_time: the new ready time
528  */
529 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")
530 {
531   source = $arg1;
532   ready_time = $arg2;
533   probestr = sprintf("glib.source_set_ready_time(%p, %i)", source, ready_time);
534 }
535
536 /**
537  * probe glib.source_set_priority - Called when the priority is set on a #GSource
538  * @source: the #GSource
539  * @context: the context the source is attached to
540  * @priority: the new priority
541  */
542 probe glib.source_set_priority = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__set_priority")
543 {
544   source = $arg1;
545   context = $arg2;
546   priority = $arg3;
547   probestr = sprintf("glib.source_set_priority(%p, %p, %i)", source, context, priority);
548 }
549
550 /**
551  * probe glib.source_add_child_source - Called when a child #GSource is added to another
552  * @source: the parent #GSource
553  * @child_source: the child #GSource
554  */
555 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")
556 {
557   source = $arg1;
558   child_source = $arg2;
559   probestr = sprintf("glib.source_add_child_source(%p, %p)", source, child_source);
560 }
561
562 /**
563  * probe glib.source_set_name - Called when the name is set for a #GSource
564  * @source: the #GSource
565  * @name: the new name
566  */
567 probe glib.source_set_name = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__set_name")
568 {
569   source = $arg1;
570   name = user_string($arg2);
571   probestr = sprintf("glib.source_set_name(%p, %s)", source, name);
572 }
573
574 /**
575  * probe glib.source_before_free - Called before a #GSource is finalised
576  * @source: the #GSource
577  * @context: the context the #GSource is attached to, if any
578  * @finalize: the finalize function about to be called
579  */
580 probe glib.source_before_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__before_free")
581 {
582   source = $arg1;
583   context = $arg2;
584   finalize = $arg3;
585   probestr = sprintf("glib.source_before_free(%p, %p, %p)", source, context, finalize);
586 }
587
588 /**
589  * probe glib.thread_spawned - Called from a newly spawned GThread, before the thread function is called
590  * @func: the #GThreadFunc about to be executed
591  * @data: data to be passed to @func
592  * @name: (nullable): the thread name
593  */
594 probe glib.thread_spawned = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("thread__spawned")
595 {
596   func = $arg1;
597   data = $arg2;
598   name = user_string($arg3);
599   probestr = sprintf("glib.thread_spawned(%p, %p, %s)", func, data, name);
600 }
601
602 /**
603  * probe glib.rcbox_alloc - Called when a refcounted block is initially requested
604  * @mem: Raw memory pointer returned
605  * @n_bytes: number of bytes
606  * @atomic: Boolean value, %TRUE if this block is atomically refcounted
607  * @zeroed: Boolean value, %TRUE if this block was filled with NUL bytes
608  */
609 probe glib.rcbox_alloc = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("rcbox__alloc")
610 {
611   mem = $arg1;
612   n_bytes = $arg2;
613   atomic = $arg3;
614   zeroed = $arg4;
615   probestr = sprintf("glib.rcbox_alloc(n_bytes=%d) -> %p", n_bytes, mem);
616 }
617
618 /**
619  * probe glib.rcbox_acquire - Called when a refcounted block acquires a ref
620  */
621 probe glib.rcbox_acquire = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("rcbox__acquire")
622 {
623   mem = $arg1;  /* ARG: @mem: Raw memory pointer */
624   atomic = $arg2;  /* ARG: @atomic: Boolean value, %TRUE if the reference was acquired atomically */
625   probestr = sprintf("glib.rcbox_acquire(mem=%p)", mem);
626 }
627
628 /**
629  * probe glib.rcbox_release - Called when a refcounted block acquires a ref
630  */
631 probe glib.rcbox_acquire = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("rcbox__release")
632 {
633   mem = $arg1;  /* ARG: @mem: Raw memory pointer */
634   atomic = $arg2;  /* ARG: @atomic: Boolean value, %TRUE if the reference was released atomically */
635   probestr = sprintf("glib.rcbox_release(mem=%p)", mem);
636 }
637
638 /**
639  * probe glib.rcbox_free - Called when a refcounted block is freed
640  */
641 probe glib.rcbox_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("rcbox__free")
642 {
643   mem = $arg1;  /* ARG: @mem: Raw memory pointer */
644   probestr = sprintf("glib.rcbox_free(mem=%p)", mem);
645 }