diff options
author | Mark Wielaard <mjw@redhat.com> | 2010-03-10 23:12:26 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2010-03-10 23:12:26 +0100 |
commit | e54c1d239a7dba1954dfc8359e62c94329b44a6a (patch) | |
tree | 99ccc14f704a326480e83b02f2d51c85a995072a /tapset/dentry.stp | |
parent | 03a7462675d416a00e43ba64af0505039efe8852 (diff) | |
download | systemtap-steved-e54c1d239a7dba1954dfc8359e62c94329b44a6a.tar.gz systemtap-steved-e54c1d239a7dba1954dfc8359e62c94329b44a6a.tar.xz systemtap-steved-e54c1d239a7dba1954dfc8359e62c94329b44a6a.zip |
Revert "Remove unnecessary embedded-c function __dentry_get_current_root()."
This reverts commit 5ab0b1b6c4d3a7f1ea156835a32000669e378886.
Wrongly pushed commit.
Diffstat (limited to 'tapset/dentry.stp')
-rw-r--r-- | tapset/dentry.stp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tapset/dentry.stp b/tapset/dentry.stp index 778832f9..1d045d02 100644 --- a/tapset/dentry.stp +++ b/tapset/dentry.stp @@ -30,6 +30,20 @@ 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 * @@ -71,7 +85,7 @@ function reverse_path_walk:string(dentry:long) */ function d_path:string(nd:long) { - root = @cast(curr, "task_struct", "kernel<linux/sched.h>")->fs->root; + root = __dentry_get_current_root() dentry = (@defined(@cast(nd,"nameidata")->path->dentry) ? @cast(nd,"nameidata")->path->dentry : @cast(nd,"nameidata")->dentry) |