Name

tracehook_tracer_task — return the task that is tracing the given task

Synopsis

struct task_struct * tracehook_tracer_task (struct task_struct * tsk);
 

Arguments

tsk

task to consider

Description

Returns NULL if noone is tracing task, or the struct task_struct pointer to its tracer.

Must called under rcu_read_lock. The pointer returned might be kept live only by RCU. During exec, this may be called with task_lock held on task, still held from when tracehook_unsafe_exec was called.