lkml.org 
[lkml]   [2011]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC] [PATCH 2.6.37-rc5-tip 14/20] 14: uprobes: Handing int3 and singlestep exception.
    * Peter Zijlstra <peterz@infradead.org> [2011-01-25 14:56:19]:

    > 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() ?

    Are you looking for something like this.

    down_read(&mm->mmap_sem);
    for (vma = find_vma(mm, probept); ; vma = vma->vm_next) {
    if (!valid_vma(vma))
    continue;
    u = find_uprobe(vma->vm_file->f_mapping->host,
    probept - vma->vm_start);
    if (u)
    break;
    }
    up_read(&mm->mmap_sem);


    \
     
     \ /
      Last update: 2011-01-26 10:01    [W:0.023 / U:30.732 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site