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 8/20] 8: uprobes: mmap and fork hooks.
    * Peter Zijlstra <peterz@infradead.org> [2011-01-26 16:16:49]:

    > On Wed, 2011-01-26 at 20:29 +0530, Srikar Dronamraju wrote:
    > > list_for_each_entry_safe(mm, tmpmm, &tmp_list, uprobes_list) {
    > > down_read(&mm->map_sem);
    > > if (!install_uprobe(mm, uprobe))
    > > ret = 0;
    > > up_read(&mm->map_sem);
    > > list_del(&mm->uprobes_list);
    > > mmput(mm);
    > > }
    >
    > and the tmp_list thing works because new mm's will hit the mmap callback
    > and you cannot loose mm's due to the refcount, right?
    >

    Right, In other words, the tmp_list has all mm's that have already
    running and have this inode mapped as executable text. Those process
    that are yet to start or yet to map the inode as executable text
    will hit mmap and then we look at inserting the probes thro
    uprobes_mmap.

    --
    Thanks and Regards
    Srikar
    >


    \
     
     \ /
      Last update: 2011-01-26 17:39    [W:0.021 / U:1.532 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site