Scroll to navigation

TRACEHOOK_TRACER_TAS(9) Kernel Internals TRACEHOOK_TRACER_TAS(9)

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.

May 2024 Kernel Hackers Manual 2.6.