summaryrefslogtreecommitdiffstats
path: root/tapset/process.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/process.stp')
-rw-r--r--tapset/process.stp13
1 files changed, 6 insertions, 7 deletions
diff --git a/tapset/process.stp b/tapset/process.stp
index b28a72cd..ca49aa67 100644
--- a/tapset/process.stp
+++ b/tapset/process.stp
@@ -13,20 +13,19 @@ function _IS_ERR:long(ptr:long) %{ /* pure */
/**
- * probe process.create - New process created
- * @task: A handle to the newly created process
- * @new_pid: PID of the newly created process
+ * probe process.create - Fires whenever a new process is successfully created
+ * @new_pid: The PID of the newly created process
*
* Context:
* Parent of the created process.
*
* Fires whenever a new process is successfully created, either as a result of
- * one of the fork syscall variants, or a new kernel thread.
+ * <command>fork</command> (or one of its syscall variants), or a new kernel thread.
*/
probe process.create = kernel.function("copy_process").return {
task = $return
- new_pid = task_pid(task)
if (_IS_ERR(task)) next
+ new_pid = task_pid(task)
}
@@ -34,9 +33,9 @@ probe process.create = kernel.function("copy_process").return {
* probe process.start - Starting new process
*
* Context:
- * Newly created process.
+ * Newly created process.
*
- * Fires immediately before a new process begins execution.
+ * Fires immediately before a new process begins execution.
*
*/
probe process.start = kernel.function("schedule_tail") { }