lkml.org 
[lkml]   [2011]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3 2.6.39-rc1-tip 9/26] 9: uprobes: mmap and fork hooks.
From
Date
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.


\
 
 \ /
  Last update: 2011-04-18 18:25    [W:0.120 / U:7.372 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site