Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_owner.c Create Date:2022-07-28 16:23:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__dump_page_owner

Proto:void __dump_page_owner(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
404  page_ext = lookup_page_ext(page)
412  If Value for the false possibility is greater at compile time(!page_ext) Then
413  pr_alert("There is not page extension available.\n")
414  Return
417  page_owner = get_page_owner(page_ext)
418  gfp_mask = gfp_mask
419  mt = gfpflags_to_migratetype(gfp_mask)
421  If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then
422  pr_alert("page_owner info is not present (never set?)\n")
423  Return
426  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then pr_alert("page_owner tracks the page as allocated\n")
428  Else pr_alert("page_owner tracks the page as freed\n")
431  pr_alert("page last allocated via order %u, migratetype %s, gfp_mask %#x(%pGg)\n", order, migratetype_names[mt], gfp_mask, & gfp_mask)
434  handle = READ_ONCE(handle)
435  If Not handle Then
436  pr_alert("page_owner allocation stack trace missing\n")
437  Else
438  nr_entries = stack_depot_fetch - Fetch stack entries from a depot*@handle: Stack depot handle which was returned from* stack_depot_save().*@entries: Pointer to store the entries address* Return: The number of trace entries for this depot.
439  stack_trace_print - Print the entries in the stack trace*@entries: Pointer to storage array*@nr_entries: Number of entries in the storage array*@spaces: Number of leading spaces to print
442  handle = READ_ONCE(free_handle)
443  If Not handle Then
444  pr_alert("page_owner free stack trace missing\n")
445  Else
446  nr_entries = stack_depot_fetch - Fetch stack entries from a depot*@handle: Stack depot handle which was returned from* stack_depot_save().*@entries: Pointer to store the entries address* Return: The number of trace entries for this depot.
447  pr_alert("page last free stack trace:\n")
448  stack_trace_print - Print the entries in the stack trace*@entries: Pointer to storage array*@nr_entries: Number of entries in the storage array*@spaces: Number of leading spaces to print
451  If last_migrate_reason != -1 Then pr_alert("page has been migrated, last migrate reason: %s\n", migrate_reason_names[last_migrate_reason])