This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Use pid2task when passing pid to task_execname


Signed-off-by: Masatake YAMATO <yamato@redhat.com>
---
 tapset/linux/signal.stp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tapset/linux/signal.stp b/tapset/linux/signal.stp
index 48b7f5f..0a7747e 100644
--- a/tapset/linux/signal.stp
+++ b/tapset/linux/signal.stp
@@ -470,7 +470,7 @@ probe signal.syskill = syscall.kill
     name = "syskill"
     sig_name = _signal_name($sig)
     sig_pid = $pid
-    pid_name = task_execname($pid)
+    pid_name = task_execname(pid2task($pid))
 }
 
 /**
@@ -499,7 +499,7 @@ probe signal.systkill = syscall.tkill
     name = "systkill"
     sig_name = _signal_name($sig)
     sig_pid = $pid
-    pid_name = task_execname($pid)
+    pid_name = task_execname(pid2task($pid))
 }
 
 /**
@@ -530,7 +530,7 @@ probe signal.systgkill = syscall.tgkill
     name = "systgkill"
     sig_name = _signal_name($sig)
     sig_pid = $pid
-    pid_name = task_execname($pid)
+    pid_name = task_execname(pid2task($pid))
 }
 
 /**
-- 
1.8.5.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]