summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2008-11-05 19:40:36 +0000
committerrodrigc <rodrigc@FreeBSD.org>2008-11-05 19:40:36 +0000
commitca625c199ffa84013f96c96d6133c2c313bf6c3e (patch)
tree28fc9ff6f44c6da849fa460b61a76ea3ffa88205 /sys/kern/kern_exec.c
parenta3c4aa0bb3b662730a4a433d587559c544fc1ba3 (diff)
downloadFreeBSD-src-ca625c199ffa84013f96c96d6133c2c313bf6c3e.zip
FreeBSD-src-ca625c199ffa84013f96c96d6133c2c313bf6c3e.tar.gz
Merge latest DTrace changes from Perforce.
Approved by: jb
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 9ca2f96..02f9f2e 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -388,8 +388,6 @@ do_execve(td, args, mac_p)
imgp->image_header = NULL;
- SDT_PROBE(proc, kernel, , exec, args->fname, 0, 0, 0, 0 );
-
/*
* Translate the file name. namei() returns a vnode pointer
* in ni_vp amoung other things.
@@ -403,6 +401,8 @@ do_execve(td, args, mac_p)
| MPSAFE | AUDITVNODE1, UIO_SYSSPACE, args->fname, td);
}
+ SDT_PROBE(proc, kernel, , exec, args->fname, 0, 0, 0, 0 );
+
interpret:
if (args->fname != NULL) {
error = namei(ndp);
@@ -800,8 +800,9 @@ interpret:
vfs_mark_atime(imgp->vp, td->td_ucred);
-done1:
+ SDT_PROBE(proc, kernel, , exec_success, args->fname, 0, 0, 0, 0);
+done1:
/*
* Free any resources malloc'd earlier that we didn't use.
*/
@@ -812,8 +813,6 @@ done1:
crfree(newcred);
VOP_UNLOCK(imgp->vp, 0);
- SDT_PROBE(proc, kernel, , exec_success, args->fname, 0, 0, 0, 0);
-
/*
* Handle deferred decrement of ref counts.
*/
OpenPOWER on IntegriCloud