~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/linux/tracehook.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
 * tracehook_tracer_task - return the task that is tracing the given task
170
170
 * @tsk:                task to consider
171
171
 *
172
 
 * Returns NULL if noone is tracing @task, or the &struct task_struct
 
172
 * Returns NULL if no one is tracing @task, or the &struct task_struct
173
173
 * pointer to its tracer.
174
174
 *
175
175
 * Must called under rcu_read_lock().  The pointer returned might be kept
448
448
 *
449
449
 * Return zero to check for a real pending signal normally.
450
450
 * Return -1 after releasing the siglock to repeat the check.
451
 
 * Return a signal number to induce an artifical signal delivery,
 
451
 * Return a signal number to induce an artificial signal delivery,
452
452
 * setting *@info and *@return_ka to specify its details and behavior.
453
453
 *
454
454
 * The @return_ka->sa_handler value controls the disposition of the
469
469
}
470
470
 
471
471
/**
472
 
 * tracehook_notify_jctl - report about job control stop/continue
473
 
 * @notify:             zero, %CLD_STOPPED or %CLD_CONTINUED
474
 
 * @why:                %CLD_STOPPED or %CLD_CONTINUED
475
 
 *
476
 
 * This is called when we might call do_notify_parent_cldstop().
477
 
 *
478
 
 * @notify is zero if we would not ordinarily send a %SIGCHLD,
479
 
 * or is the %CLD_STOPPED or %CLD_CONTINUED .si_code for %SIGCHLD.
480
 
 *
481
 
 * @why is %CLD_STOPPED when about to stop for job control;
482
 
 * we are already in %TASK_STOPPED state, about to call schedule().
483
 
 * It might also be that we have just exited (check %PF_EXITING),
484
 
 * but need to report that a group-wide stop is complete.
485
 
 *
486
 
 * @why is %CLD_CONTINUED when waking up after job control stop and
487
 
 * ready to make a delayed @notify report.
488
 
 *
489
 
 * Return the %CLD_* value for %SIGCHLD, or zero to generate no signal.
490
 
 *
491
 
 * Called with the siglock held.
492
 
 */
493
 
static inline int tracehook_notify_jctl(int notify, int why)
494
 
{
495
 
        return notify ?: (current->ptrace & PT_PTRACED) ? why : 0;
496
 
}
497
 
 
498
 
/**
499
472
 * tracehook_finish_jctl - report about return from job control stop
500
473
 *
501
474
 * This is called by do_signal_stop() after wakeup.