函数逻辑报告 | 
Source Code:mm\debug.c | 
Create Date:2022-07-27 15:59:01 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:__dump_page
函数原型:void __dump_page(struct page *page, const char *reason)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct page * | page | |
| const char * | reason | 
| 50 | type等于"" | 
| 57 | 如果page_poisoned则 | 
| 62 | mapping等于page_mapping(page) | 
| 69 | mapcount等于如果PageSlab(page)则0否则page_mapcount(page) | 
| 71 | 如果PageCompound(page)则打印警告信息("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 | 否则打印警告信息("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 | 否则如果mapping则 | 
| 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 | 打印警告信息("%sflags: %#lx(%pGp)\n", type, 体系结构无关页的属性, & 体系结构无关页的属性) | 
| 97 | hex_only : | 
| 106 | 如果非page_poisoned且mem_cgroup则打印警告信息("page->mem_cgroup:%px\n", mem_cgroup) | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |