Name

utrace_attach_pid — attach new engine, or look up an attached engine

Synopsis

struct utrace_engine * utrace_attach_pid (struct pid * pid,
 int flags,
 const struct utrace_engine_ops * ops,
 void * data);
 

Arguments

pid

struct pid pointer representing thread to attach to

flags

flag bits combined with OR, see utrace_attach_task

ops

callback table for new engine

data

engine private data pointer

Description

This is the same as utrace_attach_task, but takes a struct pid pointer rather than a struct task_struct pointer. The caller must hold a ref on pid, but does not need to worry about the task staying valid. If it's been reaped so that pid points nowhere, then this call returns -ESRCH.