函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__dump_page_owner

函数原型:void __dump_page_owner(struct page *page)

返回类型:void

参数:

类型参数名称
struct page *page
404  page_ext等于lookup_page_ext(page)
412  如果此条件成立可能性小(为编译器优化)(!page_ext)则
413  打印警报信息("There is not page extension available.\n")
414  返回
417  page_owner等于get_page_owner(page_ext)
418  gfp_mask等于gfp_mask
419  mt等于gfpflags_to_migratetype(gfp_mask)
421  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
422  打印警报信息("page_owner info is not present (never set?)\n")
423  返回
426  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from打印警报信息("page_owner tracks the page as allocated\n")
428  否则打印警报信息("page_owner tracks the page as freed\n")
431  打印警报信息("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  如果非handle
436  打印警报信息("page_owner allocation stack trace missing\n")
437  否则
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  如果非handle
444  打印警报信息("page_owner free stack trace missing\n")
445  否则
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  打印警报信息("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  如果last_migrate_reason不等于负1则打印警报信息("page has been migrated, last migrate reason: %s\n", migrate_reason_names[last_migrate_reason])