Function report |
Source Code:kernel\events\uprobes.c |
Create Date:2022-07-28 13:45:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:build_map_info
Proto:static struct map_info *build_map_info(struct address_space *mapping, loff_t offset, bool is_register)
Type:struct map_info
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct address_space * | mapping | |
| loff_t | offset | |
| bool | is_register |
| 983 | more = 0 |
| 985 | again : |
| 986 | i_mmap_lock_read(mapping) |
| 988 | 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 Continue |
| 996 | prev = Allocation memory |
| 1001 | If Not prev Then |
| 1002 | more++ |
| 1003 | Continue |
| 1006 | If Not mmget_not_zero(The address space we belong to. ) Then Continue |
| 1015 | vaddr = offset_to_vaddr(vma, offset) |
| 1017 | i_mmap_unlock_read(mapping) |
| 1028 | Do |
| 1029 | info = Allocation memory |
| 1030 | If Not info Then |
| 1038 | Go to again |
| 1039 | out : |
| 1041 | prev = free_map_info(prev) |
| 1042 | Return curr |
| Name | Describe |
|---|---|
| register_for_each_vma |
| 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 |