Function report | 
Source Code:mm\debug.c | 
Create Date:2022-07-28 14:33:42 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__dump_page
Proto:void __dump_page(struct page *page, const char *reason)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | |
| const char * | reason | 
| 48 | page_poisoned = PagePoisoned(page) | 
| 50 | type = "" | 
| 57 | If page_poisoned Then | 
| 62 | mapping = page_mapping(page) | 
| 69 | mapcount = If PageSlab(page) Then 0 Else page_mapcount(page) | 
| 71 | If PageCompound(page) Then pr_warn("page:%px refcount:%d mapcount:%d mapping:%px index:%#lx compound_mapcount: %d\n", page, page_ref_count(page), mapcount, See page-flags.h for PAGE_MAPPING_FLAGS , Get the offset in PAGE_SIZE.* (TODO: hugepage should have ->index in PAGE_SIZE), compound_mapcount(page)) | 
| 77 | Else pr_warn("page:%px refcount:%d mapcount:%d mapping:%px index:%#lx\n", page, page_ref_count(page), mapcount, See page-flags.h for PAGE_MAPPING_FLAGS , Get the offset in PAGE_SIZE.* (TODO: hugepage should have ->index in PAGE_SIZE)) | 
| 85 | Else if mapping Then | 
| 93 | BUILD_BUG_ON - break compile if a condition is true(ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(pageflag_names) != __NR_PAGEFLAGS + 1) | 
| 95 | pr_warn("%sflags: %#lx(%pGp)\n", type, Atomic flags, some possibly * updated asynchronously , & Atomic flags, some possibly * updated asynchronously ) | 
| 97 | hex_only : | 
| 106 | If Not page_poisoned && mem_cgroup Then pr_warn("page->mem_cgroup:%px\n", mem_cgroup) | 
| 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  |