/**
- * probe kprocess.create - Fires whenever a new process is successfully created
+ * probe kprocess.create - Fires whenever a new process or thread is successfully created
* @new_pid: The PID of the newly created process
+ * @new_tid: The TID of the newly created task
*
* Context:
* Parent of the created process.
task = $return
if (_IS_ERR(task)) next
new_pid = task_pid(task)
+ new_tid = task_tid(task)
}
/**
* probe kprocess.release - Process released
* @task: A task handle to the process being released
- * @pid: PID of the process being released
+ * @released_pid: PID of the process being released
+ * @released_tid: TID of the task being released
+ * @pid: Same as @released_pid for compatibility (deprecated)
*
* Context:
* The context of the parent, if it wanted notification of this process'
probe kprocess.release = kernel.function("release_task") {
task = $p
pid = $p->pid;
+ released_pid = $p->pid;
+ released_tid = $p->tid;
}