From: Oleg Nesterov Date: Sun, 29 Jul 2012 18:22:42 +0000 (+0200) Subject: uprobes: Introduce vaddr_to_offset(vma, vaddr) X-Git-Tag: v3.6-rc1~32^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb113b47d098185f3f1f67e8300d05ddce842b66;p=pandora-kernel.git uprobes: Introduce vaddr_to_offset(vma, vaddr) Add the new helper, vaddr_to_offset(vma, vaddr) which returns the offset in vma->vm_file this vaddr is mapped at. Change build_probe_list() and find_active_uprobe() to use the new helper, the next patch adds another user. Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju Cc: Anton Arapov Cc: Srikar Dronamraju Link: http://lkml.kernel.org/r/20120729182242.GA20355@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed