utrace_attach_task — attach new engine, or look up an attached engine
struct utrace_attached_engine * utrace_attach_task ( | struct task_struct * target, |
int flags, | |
const struct utrace_engine_ops * ops, | |
void * data) ; |
target
thread to attach to
flags
flag bits combined with OR, see below
ops
callback table for new engine
data
engine private data pointer
The caller must ensure that the target
thread does not get freed,
i.e. hold a ref or be its parent. It is always safe to call this
on current
, or on the child
pointer in a report_clone
callback.
For most other cases, it's easier to use utrace_attach_pid
instead.