Function report |
Source Code:kernel\events\uprobes.c |
Create Date:2022-07-28 13:45:53 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Called from mmap_region/vma_adjust with mm->mmap_sem acquired.* Currently we ignore all errors and always return 0, the callers* can't handle the failure anyway.
Proto:int uprobe_mmap(struct vm_area_struct *vma)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_area_struct * | vma |
1369 | If allows us to skip the uprobe_mmap if there are no uprobe events active* at this time. Probably a fine grained per inode count is better?() Then Return 0 |
1377 | If Not valid_vma: Verify if the specified vma is an executable vma* Relax restrictions while unregistering: vm_flags might have* changed after breakpoint was inserted Then Return 0 |
1380 | inode = file_inode(File we map to (can be NULL). ) |
1381 | If Not inode Then Return 0 |
1384 | mutex_lock(uprobes_mmap_hash(inode)) |
1392 | If Not fatal_signal_pending(current process) && filter_chain(uprobe, UPROBE_FILTER_MMAP, The address space we belong to. ) Then |
1394 | vaddr = offset_to_vaddr(vma, offset) |
1397 | put_uprobe(uprobe) |
1401 | Return 0 |
Name | Describe |
---|---|
__vma_adjust | We cannot adjust vm_start, vm_end, vm_pgoff fields of a vma that* is already present in an i_mmap tree without adjusting the tree.* The following helper function should be used when such adjustments* are necessary |
mmap_region |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |