Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:38:01 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:perf_event_mmap_event
Proto:static void perf_event_mmap_event(struct perf_mmap_event *mmap_event)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_mmap_event * | mmap_event |
| 7675 | char * buf = NULL |
| 7678 | If Flags, see mm.h. & currently active flags Then prot |= page can be read |
| 7680 | If Flags, see mm.h. & VM_WRITE Then prot |= page can be written |
| 7682 | If Flags, see mm.h. & VM_EXEC Then prot |= page can be executed |
| 7685 | If Flags, see mm.h. & VM_MAYSHARE Then flags = Share changes |
| 7687 | Else flags = Changes are private |
| 7690 | If Flags, see mm.h. & ETXTBSY on write attempts.. Then flags |= ETXTBSY |
| 7692 | If Flags, see mm.h. & VM_MAYEXEC Then flags |= mark it as an executable |
| 7694 | If Flags, see mm.h. & VM_LOCKED Then flags |= pages are locked |
| 7696 | If Flags, see mm.h. & Huge TLB Page VM Then flags |= create a huge page mapping |
| 7699 | If file Then |
| 7703 | buf = Allocation memory |
| 7704 | If Not buf Then |
| 7718 | inode = file_inode(File we map to (can be NULL). ) |
| 7721 | gen = i_generation |
| 7725 | Go to got_name |
| 7726 | Else |
| 7727 | If Function pointers to deal with this struct. && name Then |
| 7733 | name = arch_vma_name(vma) |
| 7737 | If Our start address within vm_mm. <= start_brk && The first byte after our end addresswithin vm_mm. >= brk Then |
| 7748 | name = "//anon" |
| 7749 | Go to cpy_name |
| 7752 | cpy_name : |
| 7755 | got_name : |
| 7762 | When Not IS_ALIGNED(size, sizeof(u64)) cycle |
| 7770 | ino_generation = gen |
| Name | Describe |
|---|---|
| perf_event_mmap |
| 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 |