Lines Matching refs:offset
63 loff_t offset; member
131 static unsigned long offset_to_vaddr(struct vm_area_struct *vma, loff_t offset) in offset_to_vaddr() argument
133 return vma->vm_start + offset - ((loff_t)vma->vm_pgoff << PAGE_SHIFT); in offset_to_vaddr()
419 (unsigned long long) uprobe->offset, in update_ref_ctr_warn()
630 if (l->offset < r->offset) in match_uprobe()
633 if (l->offset > r->offset) in match_uprobe()
639 static struct uprobe *__find_uprobe(struct inode *inode, loff_t offset) in __find_uprobe() argument
641 struct uprobe u = { .inode = inode, .offset = offset }; in __find_uprobe()
664 static struct uprobe *find_uprobe(struct inode *inode, loff_t offset) in find_uprobe() argument
669 uprobe = __find_uprobe(inode, offset); in find_uprobe()
729 uprobe->inode->i_ino, (unsigned long long) uprobe->offset, in ref_ctr_mismatch_warn()
734 static struct uprobe *alloc_uprobe(struct inode *inode, loff_t offset, in alloc_uprobe() argument
744 uprobe->offset = offset; in alloc_uprobe()
798 void *insn, int nbytes, loff_t offset) in __copy_insn() argument
807 page = read_mapping_page(mapping, offset >> PAGE_SHIFT, filp); in __copy_insn()
809 page = shmem_read_mapping_page(mapping, offset >> PAGE_SHIFT); in __copy_insn()
813 copy_from_page(page, offset, insn, nbytes); in __copy_insn()
822 loff_t offs = uprobe->offset; in copy_insn()
871 BUG_ON((uprobe->offset & ~PAGE_MASK) + in prepare_uprobe()
976 build_map_info(struct address_space *mapping, loff_t offset, bool is_register) in build_map_info() argument
978 unsigned long pgoff = offset >> PAGE_SHIFT; in build_map_info()
1015 info->vaddr = offset_to_vaddr(vma, offset); in build_map_info()
1054 uprobe->offset, is_register); in register_for_each_vma()
1074 vaddr_to_offset(vma, info->vaddr) != uprobe->offset) in register_for_each_vma()
1119 void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) in uprobe_unregister() argument
1123 uprobe = find_uprobe(inode, offset); in uprobe_unregister()
1152 static int __uprobe_register(struct inode *inode, loff_t offset, in __uprobe_register() argument
1166 if (offset > i_size_read(inode)) in __uprobe_register()
1170 uprobe = alloc_uprobe(inode, offset, ref_ctr_offset); in __uprobe_register()
1196 int uprobe_register(struct inode *inode, loff_t offset, in uprobe_register() argument
1199 return __uprobe_register(inode, offset, 0, uc); in uprobe_register()
1203 int uprobe_register_refctr(struct inode *inode, loff_t offset, in uprobe_register_refctr() argument
1206 return __uprobe_register(inode, offset, ref_ctr_offset, uc); in uprobe_register_refctr()
1217 int uprobe_apply(struct inode *inode, loff_t offset, in uprobe_apply() argument
1224 uprobe = find_uprobe(inode, offset); in uprobe_apply()
1247 loff_t offset; in unapply_uprobe() local
1253 offset = (loff_t)vma->vm_pgoff << PAGE_SHIFT; in unapply_uprobe()
1254 if (uprobe->offset < offset || in unapply_uprobe()
1255 uprobe->offset >= offset + vma->vm_end - vma->vm_start) in unapply_uprobe()
1258 vaddr = offset_to_vaddr(vma, uprobe->offset); in unapply_uprobe()
1279 if (max < u->offset) in find_node_in_range()
1281 else if (min > u->offset) in find_node_in_range()
1312 if (u->inode != inode || u->offset < min) in build_probe_list()
1319 if (u->inode != inode || u->offset > max) in build_probe_list()
1394 unsigned long vaddr = offset_to_vaddr(vma, uprobe->offset); in uprobe_mmap()
1652 unsigned long offset; in xol_free_insn_slot() local
1655 offset = slot_addr - area->vaddr; in xol_free_insn_slot()
1656 slot_nr = offset / UPROBE_XOL_SLOT_BYTES; in xol_free_insn_slot()
2053 loff_t offset = vaddr_to_offset(vma, bp_vaddr); in find_active_uprobe() local
2055 uprobe = find_uprobe(inode, offset); in find_active_uprobe()