diff options
| author | Steve Dickson <steved@redhat.com> | 2009-10-02 09:48:27 -0400 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2009-10-02 09:48:27 -0400 |
| commit | 4c2e068baa02379a1c93e962237bd3ebdb6844c9 (patch) | |
| tree | 2acf2d3a9601e7c7536fd8ca099ea43aa03ff5ec | |
| parent | 0f38db8abb84c7a315762c9831dfcca101e50258 (diff) | |
| download | systemtap-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.stp | 8 |
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(); +%} |
