• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * probe gio.task_new - Called when a new #GTask is created
3 * @task: the new #GTask object
4 * @source_object: the source object
5 * @cancellable: the #GCancellable
6 * @callback: the task’s callback
7 * @callback_data: data for @callback
8 */
9probe gio.task_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__new")
10{
11  task = $arg1;
12  source_object = $arg2;
13  cancellable = $arg3;
14  callback = $arg4;
15  callback_data = $arg5;
16  probestr = sprintf("gio.task_new(%p, %p, %p, %p) -> %p", source_object, cancellable, callback, callback_data, task);
17}
18
19/**
20 * probe gio.task_set_task_data - Called when the task data is set on a #GTask
21 * @task: the #GTask object
22 * @task_data: the task data
23 * @task_data_destroy: the destroy notify function for the data
24 */
25probe gio.task_set_task_data = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__set_task_data")
26{
27  task = $arg1;
28  task_data = $arg2;
29  task_data_destroy = $arg3;
30  probestr = sprintf("gio.task_set_task_data(%p, %p, %p)", task, task_data, task_data_destroy);
31}
32
33/**
34 * probe gio.task_set_priority - Called when the priority of a #GTask is set
35 * @task: the #GTask object
36 * @priority: the priority
37 */
38probe gio.task_set_priority = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__set_priority")
39{
40  task = $arg1;
41  priority = $arg2;
42  probestr = sprintf("gio.task_set_priority(%p, %i)", task, priority);
43}
44
45/**
46 * probe gio.task_set_source_tag - Called when the source tag of a #GTask is set
47 * @task: the #GTask object
48 * @source_tag: the source tag
49 */
50probe gio.task_set_source_tag = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__set_source_tag")
51{
52  task = $arg1;
53  source_tag = $arg2;
54  probestr = sprintf("gio.task_set_source_tag(%p, %p)", task, source_tag);
55}
56
57/**
58 * probe gio.task_before_return - Called before a #GTask invokes its callback or returns from g_task_run_in_thread_sync()
59 * @task: the #GTask object
60 * @source_object: the source object passed to the callback
61 * @callback: the callback about to be invoked
62 * @callback_data: data passed to @callback
63 */
64probe gio.task_before_return = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__before_return")
65{
66  task = $arg1;
67  source_object = $arg2;
68  callback = $arg3;
69  callback_data = $arg4;
70  probestr = sprintf("gio.task_before_return(%p, %p, %p, %p)", task, source_object, callback, callback_data);
71}
72
73/**
74 * probe gio.task_propagate - Called when a #GTask’s result is propagated
75 * @task: the #GTask object
76 * @error_set: %TRUE if propagating an error, %FALSE otherwise
77 */
78probe gio.task_propagate = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__propagate")
79{
80  task = $arg1;
81  error_set = $arg2;
82  probestr = sprintf("gio.task_propagate(%p) -> %u", task, error_set);
83}
84
85/**
86 * probe gio.task_before_run_in_thread - Called before a #GTask’s function is run in a thread
87 * @task: the #GTask object
88 * @task_func: the task function being run
89 */
90probe gio.task_before_run_in_thread = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__before_run_in_thread")
91{
92  task = $arg1;
93  task_func = $arg2;
94  probestr = sprintf("gio.task_before_run_in_thread(%p, %p)", task, task_func);
95}
96
97/**
98 * probe gio.task_after_run_in_thread - Called after a #GTask’s function is run in a thread
99 * @task: the #GTask object
100 * @thread_cancelled: %TRUE if the thread was cancelled, %FALSE otherwise
101 */
102probe gio.task_after_run_in_thread = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__after_run_in_thread")
103{
104  task = $arg1;
105  thread_cancelled = $arg2;
106  probestr = sprintf("gio.task_after_run_in_thread(%p) -> %u", task, thread_cancelled);
107}
108