Re: [RFC] [PATCH 2.6.37-rc5-tip 14/20] 14: uprobes: Handing int3and singlestep exception.

From: Peter Zijlstra
Date: Tue Jan 25 2011 - 08:57:00 EST


On Thu, 2010-12-16 at 15:29 +0530, Srikar Dronamraju wrote:
> + down_read(&mm->mmap_sem);
> + for (vma = mm->mmap; vma; vma = vma->vm_next) {
> + if (!valid_vma(vma))
> + continue;
> + if (probept < vma->vm_start || probept > vma->vm_end)
> + continue;
> + u = find_uprobe(vma->vm_file->f_mapping->host,
> + probept - vma->vm_start);
> + if (u)
> + break;
> + }
> + up_read(&mm->mmap_sem);

One has to ask, what's wrong with find_vma() ?


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/