Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:__dump_page

Proto:void __dump_page(struct page *page, const char *reason)

Type:void

Parameter:

TypeParameterName
struct page *page
const char *reason
48  page_poisoned = PagePoisoned(page)
50  type = ""
57  If page_poisoned Then
58  pr_warn("page:%px is uninitialized and poisoned", page)
59  Go to hex_only
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))
81  If 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 any Then type = "ksm "
83  Else if PageAnon(page) Then type = "anon "
85  Else if mapping Then
86  If host && first Then
89  pr_warn("%ps name:\"%pd\"\n", a_ops, dentry)
90  Else pr_warn("%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  pr_warn("%sflags: %#lx(%pGp)\n", type, Atomic flags, some possibly * updated asynchronously , & Atomic flags, some possibly * updated asynchronously )
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  If reason Then pr_warn("page dumped because: %s\n", reason)
106  If Not page_poisoned && mem_cgroup Then pr_warn("page->mem_cgroup:%px\n", mem_cgroup)
Caller
NameDescribe
dump_page
bad_page