From 835880e72bdaca1c468b72d1f6c7f0f6cefcc717 Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Thu, 26 Mar 2009 20:24:06 -0400 Subject: [PATCH] Add manual for pid-based lookup functions * stapfuncs.3stap.in: Add description for pid2task and pid2execname. --- stapfuncs.3stap.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stapfuncs.3stap.in b/stapfuncs.3stap.in index 1f2955da1..ccc87b1d7 100644 --- a/stapfuncs.3stap.in +++ b/stapfuncs.3stap.in @@ -346,6 +346,14 @@ Return the number of open file handles for the given task. task_max_file_handles:long(task:long) Return the maximum number of file handles for the given task. +.TP +pid2task:long(pid:long) +Return the task of the given process id. + +.TP +pid2execname:string(pid:long) +Return the name of the given process id. + .SS CPU REGISTERS .TP registers_valid:long () -- 2.43.5