[PATCH v3 2.6.39-rc1-tip 9/26] 9: uprobes: mmap and fork hooks.

Peter Zijlstra peterz@infradead.org
Mon Apr 18 16:22:00 GMT 2011


On Fri, 2011-04-01 at 20:04 +0530, Srikar Dronamraju wrote:
> +       if (vma) {
> +               /*
> +                * We get here from uprobe_mmap() -- the case where we
> +                * are trying to copy an instruction from a page that's
> +                * not yet in page cache.
> +                *
> +                * Read page in before copy.
> +                */
> +               struct file *filp = vma->vm_file;
> +
> +               if (!filp)
> +                       return -EINVAL;
> +               page_cache_sync_readahead(mapping, &filp->f_ra, filp, idx, 1);
> +       }
> +       page = grab_cache_page(mapping, idx); 

So I don't see why that isn't so for the normal install_uprobe() <-
register_uprobe() path.



More information about the Systemtap mailing list