summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2008-04-16 08:54:36 -0500
committerDavid Smith <dsmith@redhat.com>2008-04-16 08:54:36 -0500
commita810e645860bbde9ade37afa5e6c7cbe7dc20b8c (patch)
tree1d22bd30cd36208b6e6b118f996ea663916264b9 /runtime
parent935447c84ba1f04ca3468565a2d74b071a95d77b (diff)
downloadsystemtap-steved-a810e645860bbde9ade37afa5e6c7cbe7dc20b8c.tar.gz
systemtap-steved-a810e645860bbde9ade37afa5e6c7cbe7dc20b8c.tar.xz
systemtap-steved-a810e645860bbde9ade37afa5e6c7cbe7dc20b8c.zip
2008-04-16 David Smith <dsmith@redhat.com>
* task_finder.c (__stp_get_mm_path): Made kernel 2.6.18 changes.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/ChangeLog4
-rw-r--r--runtime/task_finder.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index b77e1a6c..e3c1ea8d 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-16 David Smith <dsmith@redhat.com>
+
+ * task_finder.c (__stp_get_mm_path): Made kernel 2.6.18 changes.
+
2008-04-15 David Smith <dsmith@redhat.com>
PR 5961 (partial)
diff --git a/runtime/task_finder.c b/runtime/task_finder.c
index dabcdafd..d0a9a40f 100644
--- a/runtime/task_finder.c
+++ b/runtime/task_finder.c
@@ -1,4 +1,5 @@
#include <linux/list.h>
+#include <linux/binfmts.h>
static LIST_HEAD(__stp_task_finder_list);
@@ -152,8 +153,8 @@ __stp_get_mm_path(struct mm_struct *mm, char *buf, int buflen)
vma = vma->vm_next;
}
if (vma) {
- struct vfsmount *mnt = mntget(vma->vm_file->f_path.mnt);
- struct dentry *dentry = dget(vma->vm_file->f_path.dentry);
+ struct vfsmount *mnt = mntget(vma->vm_file->f_vfsmnt);
+ struct dentry *dentry = dget(vma->vm_file->f_dentry);
rc = d_path(dentry, mnt, buf, buflen);
dput(dentry);
mntput(mnt);