summaryrefslogtreecommitdiffstats
path: root/tapset/process.stp
diff options
context:
space:
mode:
authorguanglei <guanglei>2006-05-18 00:21:05 +0000
committerguanglei <guanglei>2006-05-18 00:21:05 +0000
commitf8e6042eef05612c93efee7adb00cb006fbcc643 (patch)
treefb19e1ad13dc724828f0dec89cb1174105941a49 /tapset/process.stp
parenta955efeaa5ede86838aa3df87ec059548171bafe (diff)
downloadsystemtap-steved-f8e6042eef05612c93efee7adb00cb006fbcc643.tar.gz
systemtap-steved-f8e6042eef05612c93efee7adb00cb006fbcc643.tar.xz
systemtap-steved-f8e6042eef05612c93efee7adb00cb006fbcc643.zip
I break LKET into layered structure. The first layer is those generic tapsets.
The second layer is tracing specific. I checked into CVS those generic tapsets at the first step.
Diffstat (limited to 'tapset/process.stp')
-rw-r--r--tapset/process.stp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tapset/process.stp b/tapset/process.stp
index 6f983603..3c8f299d 100644
--- a/tapset/process.stp
+++ b/tapset/process.stp
@@ -25,6 +25,7 @@ function _IS_ERR:long(ptr) %{
*/
probe process.create = kernel.function("copy_process").return {
task = retval()
+ new_pid = $pid
if (_IS_ERR(task)) next
}
@@ -50,10 +51,13 @@ probe process.start = kernel.function("schedule_tail") { }
* filename - the path to the new executable
*/
probe process.exec =
+/*
kernel.function("do_execve")
%( arch != "i586" %? %( arch != "i686" %?
, kernel.function("compat_do_execve")
%) %)
+*/
+ kernel.function("*do_execve")
{
filename = kernel_string($filename)
}
@@ -72,10 +76,13 @@ probe process.exec =
* success - a boolean indicating whether the exec was successful
*/
probe process.exec.complete =
+/*
kernel.function("do_execve").return
%( arch != "i586" %? %( arch != "i686" %?
, kernel.function("compat_do_execve").return
%) %)
+*/
+ kernel.function("*do_execve").return
{
errno = retval()
success = (errno >= 0)