Commit 3b6244e1 authored by John Levon's avatar John Levon Committed by Paul Mackerras

[PATCH] oprofile author needs to learn C

Manifested as X profile appearing as /dev/mem ...
parent 7f754cf4
...@@ -147,7 +147,7 @@ static unsigned long get_exec_dcookie(struct mm_struct * mm) ...@@ -147,7 +147,7 @@ static unsigned long get_exec_dcookie(struct mm_struct * mm)
for (vma = mm->mmap; vma; vma = vma->vm_next) { for (vma = mm->mmap; vma; vma = vma->vm_next) {
if (!vma->vm_file) if (!vma->vm_file)
continue; continue;
if (!vma->vm_flags & VM_EXECUTABLE) if (!(vma->vm_flags & VM_EXECUTABLE))
continue; continue;
cookie = fast_get_dcookie(vma->vm_file->f_dentry, cookie = fast_get_dcookie(vma->vm_file->f_dentry,
vma->vm_file->f_vfsmnt); vma->vm_file->f_vfsmnt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment