Re: [PATCH 1/4] uprobes: introduce vaddr_to_offset(vma, vaddr)

2012-07-25 Thread Srikar Dronamraju
* Oleg Nesterov [2012-07-12 19:10:17]: > 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

Re: [PATCH 1/4] uprobes: introduce vaddr_to_offset(vma, vaddr)

2012-07-25 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2012-07-12 19:10:17]: 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.

[PATCH 1/4] uprobes: introduce vaddr_to_offset(vma, vaddr)

2012-07-12 Thread Oleg Nesterov
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 --- kernel/events/uprobes.c | 14

[PATCH 1/4] uprobes: introduce vaddr_to_offset(vma, vaddr)

2012-07-12 Thread Oleg Nesterov
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 o...@redhat.com --- kernel/events/uprobes.c |