函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\debug.c Create Date:2022-07-27 15:59:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__dump_page

函数原型:void __dump_page(struct page *page, const char *reason)

返回类型:void

参数:

类型参数名称
struct page *page
const char *reason
48  page_poisoned等于PagePoisoned(page)
50  type等于""
57  如果page_poisoned
58  打印警告信息("page:%px is uninitialized and poisoned", page)
59  转到:hex_only
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))
81  如果A KSM page is one of those write-protected "shared pages" or "merged pages"* which KSM maps into multiple mms, wherever identical anonymous page content* is found in VM_MERGEABLE vmas. It's a PageAnon page, pointing not to anytype等于"ksm "
83  否则如果PageAnon(page)则type等于"anon "
85  否则如果mapping
86  如果hostfirst
89  打印警告信息("%ps name:\"%pd\"\n", a_ops, dentry)
90  否则打印警告信息("%ps\n", a_ops)
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 :
98  print_hex_dump - print a text hex dump to syslog for a binary blob of data*@level: kernel log level (e
102  如果reason打印警告信息("page dumped because: %s\n", reason)
106  如果非page_poisonedmem_cgroup打印警告信息("page->mem_cgroup:%px\n", mem_cgroup)
调用者
名称描述
dump_page
bad_page