gio.stp.in 3.83 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
/**
 * probe gio.task_new - Called when a new #GTask is created
 * @task: the new #GTask object
 * @source_object: the source object
 * @cancellable: the #GCancellable
 * @callback: the task’s callback
 * @callback_data: data for @callback
 */
probe gio.task_new = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__new")
{
  task = $arg1;
  source_object = $arg2;
  cancellable = $arg3;
  callback = $arg4;
  callback_data = $arg5;
  probestr = sprintf("gio.task_new(%p, %p, %p, %p) -> %p", source_object, cancellable, callback, callback_data, task);
}

/**
 * probe gio.task_set_task_data - Called when the task data is set on a #GTask
 * @task: the #GTask object
 * @task_data: the task data
 * @task_data_destroy: the destroy notify function for the data
 */
probe gio.task_set_task_data = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__set_task_data")
{
  task = $arg1;
  task_data = $arg2;
  task_data_destroy = $arg3;
  probestr = sprintf("gio.task_set_task_data(%p, %p, %p)", task, task_data, task_data_destroy);
}

/**
 * probe gio.task_set_priority - Called when the priority of a #GTask is set
 * @task: the #GTask object
 * @priority: the priority
 */
probe gio.task_set_priority = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__set_priority")
{
  task = $arg1;
  priority = $arg2;
  probestr = sprintf("gio.task_set_priority(%p, %i)", task, priority);
}

/**
 * probe gio.task_set_source_tag - Called when the source tag of a #GTask is set
 * @task: the #GTask object
 * @source_tag: the source tag
 */
probe gio.task_set_source_tag = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__set_source_tag")
{
  task = $arg1;
  source_tag = $arg2;
  probestr = sprintf("gio.task_set_source_tag(%p, %p)", task, source_tag);
}

/**
 * probe gio.task_before_return - Called before a #GTask invokes its callback or returns from g_task_run_in_thread_sync()
 * @task: the #GTask object
 * @source_object: the source object passed to the callback
 * @callback: the callback about to be invoked
 * @callback_data: data passed to @callback
 */
probe gio.task_before_return = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__before_return")
{
  task = $arg1;
  source_object = $arg2;
  callback = $arg3;
  callback_data = $arg4;
  probestr = sprintf("gio.task_before_return(%p, %p, %p, %p)", task, source_object, callback, callback_data);
}

/**
 * probe gio.task_propagate - Called when a #GTask’s result is propagated
 * @task: the #GTask object
 * @error_set: %TRUE if propagating an error, %FALSE otherwise
 */
probe gio.task_propagate = process("@ABS_GLIB_RUNTIME_LIBDIR@/libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@").mark("task__propagate")
{
  task = $arg1;
  error_set = $arg2;
  probestr = sprintf("gio.task_propagate(%p) -> %u", task, error_set);
}

/**
 * probe gio.task_before_run_in_thread - Called before a #GTask’s function is run in a thread
 * @task: the #GTask object
 * @task_func: the task function being run
 */
probe 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")
{
  task = $arg1;
  task_func = $arg2;
  probestr = sprintf("gio.task_before_run_in_thread(%p, %p)", task, task_func);
}

/**
 * probe gio.task_after_run_in_thread - Called after a #GTask’s function is run in a thread
 * @task: the #GTask object
 * @thread_cancelled: %TRUE if the thread was cancelled, %FALSE otherwise
 */
probe 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")
{
  task = $arg1;
  thread_cancelled = $arg2;
  probestr = sprintf("gio.task_after_run_in_thread(%p) -> %u", task, thread_cancelled);
}