diff options
author | Mark Wielaard <mjw@redhat.com> | 2010-03-08 17:15:52 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2010-03-10 15:44:17 +0100 |
commit | 5ab0b1b6c4d3a7f1ea156835a32000669e378886 (patch) | |
tree | cdd28025defcde36409b6c8c0ea7da1b91864f28 /tapset/dentry.stp | |
parent | ca09bde56f6f80da4f2d622a10783d713c0bf14c (diff) | |
download | systemtap-steved-5ab0b1b6c4d3a7f1ea156835a32000669e378886.tar.gz systemtap-steved-5ab0b1b6c4d3a7f1ea156835a32000669e378886.tar.xz systemtap-steved-5ab0b1b6c4d3a7f1ea156835a32000669e378886.zip |
Remove unnecessary embedded-c function __dentry_get_current_root().
* tapset/dentry.stp: Removed embedded-c include and function
__dentry_get_current_root(). Use task_current and @cast in d_path().
Diffstat (limited to 'tapset/dentry.stp')
-rw-r--r-- | tapset/dentry.stp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/tapset/dentry.stp b/tapset/dentry.stp index 1d045d02..778832f9 100644 --- a/tapset/dentry.stp +++ b/tapset/dentry.stp @@ -30,20 +30,6 @@ function __dentry_prepend:string(dentry:long,name:string) -%{ -#include <linux/sched.h> -#include <linux/fs_struct.h> -%} - - -function __dentry_get_current_root:long() -%{ - THIS->__retvalue = (long)¤t->fs->root; -%} - - - - /** * sfunction d_name - get the dirent name * @@ -85,7 +71,7 @@ function reverse_path_walk:string(dentry:long) */ function d_path:string(nd:long) { - root = __dentry_get_current_root() + root = @cast(curr, "task_struct", "kernel<linux/sched.h>")->fs->root; dentry = (@defined(@cast(nd,"nameidata")->path->dentry) ? @cast(nd,"nameidata")->path->dentry : @cast(nd,"nameidata")->dentry) |