summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-10-02 09:48:27 -0400
committerSteve Dickson <steved@redhat.com>2009-10-02 09:48:27 -0400
commit4c2e068baa02379a1c93e962237bd3ebdb6844c9 (patch)
tree2acf2d3a9601e7c7536fd8ca099ea43aa03ff5ec
parent0f38db8abb84c7a315762c9831dfcca101e50258 (diff)
downloadsystemtap-4c2e068baa02379a1c93e962237bd3ebdb6844c9.tar.gz
systemtap-4c2e068baa02379a1c93e962237bd3ebdb6844c9.tar.xz
systemtap-4c2e068baa02379a1c93e962237bd3ebdb6844c9.zip
Added dentry2name()
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--tapset/fs.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tapset/fs.stp b/tapset/fs.stp
index f8122bf..c80e9cb 100644
--- a/tapset/fs.stp
+++ b/tapset/fs.stp
@@ -39,3 +39,11 @@ function dentry2name:string(dentry_:long)
CATCH_DEREF_FAULT();
%}
+function dentry2name:string(dentry_:long)
+%{
+ struct dentry *dentry = (struct dentry *)(long) kread(&(THIS->dentry_));
+
+ strlcpy(THIS->__retvalue, dentry->d_name.name, MAXSTRINGLEN);
+
+ CATCH_DEREF_FAULT();
+%}