1 global glib_quarks_2_0_@LT_CURRENT@_@LT_REVISION@
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")
6 glib_quarks_2_0_@LT_CURRENT@_@LT_REVISION@[pid(), $arg2] = user_string($arg1)
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
14 probe glib.quark_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("quark__new")
16 str = user_string ($arg1);
18 probestr = sprintf("glib.quark_new(%s) -> %d", str, quark);
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
28 probe glib.mem_alloc = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("mem__alloc")
34 probestr = sprintf("glib.mem_alloc(n_bytes=%d) -> %p", n_bytes, mem);
38 * probe glib.mem_free - Called when a malloc block freed
40 probe glib.mem_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("mem__free")
42 mem = $arg1; /* ARG: @mem: Raw memory pointer */
43 probestr = sprintf("glib.mem_free(mem=%p)", mem);
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
53 probe glib.mem_realloc = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("mem__realloc")
59 probestr = sprintf("glib.mem_realloc(old_mem=%p, n_bytes=%d) -> %p", old_mem, n_bytes, mem);
63 * probe glib.slice_alloc - Called when g_slice_alloc() is used
64 * @mem: Raw memory pointer returned
65 * @n_bytes: number of bytes
67 probe glib.slice_alloc = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("slice__alloc")
71 probestr = sprintf("glib.slice_alloc(n_bytes=%d) -> %p", n_bytes, mem);
75 * probe glib.slice_free - Called when memory slice is freed
76 * @mem: Raw memory pointer returned
77 * @n_bytes: Number of bytes
79 probe glib.slice_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("slice__free")
83 probestr = sprintf("glib.slice_free(n_bytes=%d) -> %p", n_bytes, mem);
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
92 probe glib.main_after_prepare = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__after_prepare")
96 source_timeout = $arg3;
97 probestr = sprintf("glib.main_after_prepare(source=%p, prepare=%p) -> %u", source, prepare, source_timeout);
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
106 probe glib.main_after_check = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__after_check")
111 probestr = sprintf("glib.main_after_check(source=%p, check=%p) -> %u", source, check, result);
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
122 probe glib.main_before_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__before_dispatch")
124 source = user_string2($arg1, "unnamed");
129 probestr = sprintf("glib.main_before_dispatch(source=%s(%p), dispatch=%p, callback=%p, user_data=%p)", source, source_ptr, dispatch, callback, user_data);
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
139 probe glib.main_after_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__after_dispatch")
141 source = user_string2($arg1, "unnamed");
144 need_destroy = $arg4;
145 probestr = sprintf("glib.main_after_dispatch(source=%s(%p), dispatch=%p) -> %u", source, source_ptr, dispatch, need_destroy);
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
155 probe glib.main_source_attach = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__source_attach")
157 source = user_string2($arg1, "unnamed");
161 probestr = sprintf("glib.main_source_attach(source=%s(%p), context=%p) -> %u", source, source_ptr, context, id);
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
170 probe glib.main_source_destroy = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__source_destroy")
172 source = user_string2($arg1, "unnamed");
175 probestr = sprintf("glib.main_source_destroy(source=%s(%p), context=%p)", source, source_ptr, context);
179 * probe glib.main_context_default - Called when the default #GMainContext is created
180 * @context: pointer to the new default #GMainContext
182 probe glib.main_context_default = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_default")
185 probestr = sprintf("glib.main_context_default() -> %p", context);
189 * probe glib.main_context_new - Called when a #GMainContext is initially created
190 * @context: pointer to the new #GMainContext
192 probe glib.main_context_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_new")
195 probestr = sprintf("glib.main_context_new() -> %p", context);
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
203 probe glib.main_context_acquire = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_acquire")
207 probestr = sprintf("glib.main_context_acquire(context=%p) -> %u", context, success);
211 * probe glib.main_context_release - Called when a thread releases a #GMainContext
212 * @context: the #GMainContext
214 probe glib.main_context_release = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_release")
217 probestr = sprintf("glib.main_context_release(context=%p)", context);
221 * probe glib.main_context_free - Called when a #GMainContext is freed
222 * @context: pointer to the #GMainContext to be freed
224 probe glib.main_context_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_free")
227 probestr = sprintf("glib.main_context_free(context=%p)", context);
231 * probe glib.main_context_push_thread_default - Called when a #GMainContext is pushed onto the thread default stack
232 * @context: a #GMainContext
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")
237 probestr = sprintf("glib.main_context_push_thread_default(context=%p)", context);
241 * probe glib.main_context_pop_thread_default - Called when a #GMainContext is popped off the thread default stack
242 * @context: a #GMainContext
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")
247 probestr = sprintf("glib.main_context_pop_thread_default(context=%p)", context);
251 * probe glib.main_context_before_prepare - Called before a #GMainContext calls prepare on all its #GSources
252 * @context: a #GMainContext
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")
257 probestr = sprintf("glib.main_context_before_prepare(context=%p)", context);
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
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")
271 probestr = sprintf("glib.main_context_after_prepare(context=%p) -> priority=%i,n_ready=%u", context, priority, n_ready);
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
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")
282 max_priority = $arg2;
283 probestr = sprintf("glib.main_context_before_query(context=%p, max_priority=%i)", context, max_priority);
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
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")
299 probestr = sprintf("glib.main_context_after_query(context=%p) -> timeout=%u,fds=%p,n_fds=%u", context, timeout, fds, n_fds);
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
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")
312 max_priority = $arg2;
315 probestr = sprintf("glib.main_context_before_check(context=%p, max_priority=%i, fds=%p, n_fds=%u)", context, max_priority, fds, n_fds);
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
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")
327 probestr = sprintf("glib.main_context_after_check(context=%p) -> %u", context, n_ready);
331 * probe glib.main_context_before_dispatch - Called before a #GMainContext calls dispatch on all its #GSources
332 * @context: a #GMainContext
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")
337 probestr = sprintf("glib.main_context_before_dispatch(context=%p)", context);
341 * probe glib.main_context_after_dispatch - Called after a #GMainContext calls dispatch on all its #GSources
342 * @context: a #GMainContext
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")
347 probestr = sprintf("glib.main_context_after_dispatch(context=%p)", context);
351 * probe glib.main_context_wakeup - Called when a wakeup call is made for a #GMainContext
352 * @context: a #GMainContext
354 probe glib.main_context_wakeup = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__context_wakeup")
357 probestr = sprintf("glib.main_context_wakeup(context=%p)", context);
361 * probe glib.main_context_wakeup_acknowledge - Called when a wakeup call is acknowledged by a #GMainContext
362 * @context: a #GMainContext
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")
367 probestr = sprintf("glib.main_context_wakeup_acknowledge(context=%p)", context);
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
375 probe glib.main_loop_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__loop_new")
379 probestr = sprintf("glib.main_loop_new(%p) -> %p", context, loop);
383 * probe glib.main_context_quit - Called when a #GMainLoop is quit
384 * @loop: pointer to the #GMainLoop to be quit
386 probe glib.main_loop_quit = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("main__loop_quit")
389 probestr = sprintf("glib.main_loop_quit(%p)", loop);
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
401 probe glib.idle_add = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("idle__add")
409 probestr = sprintf("glib.idle_add(%d, %p, %p) -> %p, %p, %u", priority, func, data, source, context, id);
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
420 probe glib.idle_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("idle__dispatch")
427 probestr = sprintf("glib.idle_dispatch(%p) -> %p, %p, %p, %u", source, context, func, data, again);
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
440 probe glib.timeout_add = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("timeout__add")
449 probestr = sprintf("glib.timeout_add(%d, %u, %p, %p) -> %p, %p, %u", priority, interval, func, data, source, context, id);
453 * probe glib.timeout_dispatch - Called when an 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
460 probe glib.timeout_dispatch = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("timeout__dispatch")
467 probestr = sprintf("glib.timeout_dispatch(%p) -> %p, %p, %p, %u", source, context, func, data, again);
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
479 probe glib.source_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__new")
487 probestr = sprintf("glib.source_new(%p, %p, %p, %p, %u) -> %p", prepare, check, dispatch, finalize, struct_size, source);
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
497 probe glib.source_set_callback = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__set_callback")
503 probestr = sprintf("glib.source_set_callback(%p, %p, %p, %p)", source, func, data, notify);
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
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")
517 callback_data = $arg2;
521 probestr = sprintf("glib.source_set_callback_indirect(%p, %p, %p, %p, %p)", source, callback_data, ref, unref, get);
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
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")
533 probestr = sprintf("glib.source_set_ready_time(%p, %i)", source, ready_time);
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
542 probe glib.source_set_priority = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__set_priority")
547 probestr = sprintf("glib.source_set_priority(%p, %p, %i)", source, context, priority);
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
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")
558 child_source = $arg2;
559 probestr = sprintf("glib.source_add_child_source(%p, %p)", source, child_source);
563 * probe glib.source_set_name - Called when the name is set for a #GSource
564 * @source: the #GSource
565 * @name: the new name
567 probe glib.source_set_name = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__set_name")
570 name = user_string($arg2);
571 probestr = sprintf("glib.source_set_name(%p, %s)", source, name);
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
580 probe glib.source_before_free = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("source__before_free")
585 probestr = sprintf("glib.source_before_free(%p, %p, %p)", source, context, finalize);
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
594 probe glib.thread_spawned = process("@ABS_GLIB_RUNTIME_LIBDIR@/libglib-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("thread__spawned")
598 name = user_string($arg3);
599 probestr = sprintf("glib.thread_spawned(%p, %p, %s)", func, data, name);