函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_init_print_info

函数原型:void __init mem_init_print_info(const char *str)

返回类型:void

参数:

类型参数名称
const char *str
7520  physpages等于get_num_physpages()
7521  codesize等于Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains
7522  datasize等于_edata_sdata
7523  rosize等于__end_rodata__start_rodata
7524  bss_size等于__bss_stop__bss_start
7525  init_data_size等于__init_end__init_begin
7526  init_code_size等于_einittext_sinittext
7541  Detect special cases and adjust section sizes accordingly:* 1) .init.* may be embedded into .data sections* 2) .init.text.* may be out of [__init_begin, __init_end],* please refer to arch/tile/kernel/vmlinux.lds.S.* 3) (__init_begin, __init_end, init_data_size, _sinittext, init_code_size)
7543  Detect special cases and adjust section sizes accordingly:* 1) .init.* may be embedded into .data sections* 2) .init.text.* may be out of [__init_begin, __init_end],* please refer to arch/tile/kernel/vmlinux.lds.S.* 3) (Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains , Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains , codesize, _sinittext, init_code_size)
7544  Detect special cases and adjust section sizes accordingly:* 1) .init.* may be embedded into .data sections* 2) .init.text.* may be out of [__init_begin, __init_end],* please refer to arch/tile/kernel/vmlinux.lds.S.* 3) (_sdata, _edata, datasize, __init_begin, init_data_size)
7545  Detect special cases and adjust section sizes accordingly:* 1) .init.* may be embedded into .data sections* 2) .init.text.* may be out of [__init_begin, __init_end],* please refer to arch/tile/kernel/vmlinux.lds.S.* 3) (Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains , Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains , codesize, __start_rodata, rosize)
7546  Detect special cases and adjust section sizes accordingly:* 1) .init.* may be embedded into .data sections* 2) .init.text.* may be out of [__init_begin, __init_end],* please refer to arch/tile/kernel/vmlinux.lds.S.* 3) (_sdata, _edata, datasize, __start_rodata, rosize)
7550  打印信息("Memory: %luK/%luK available (%luK kernel code, %luK rwdata, %luK rodata, %luK init, %luK bss, %luK reserved, %luK cma-reserved%s%s)\n", Definition of global_zone_page_state not available yet () << (PAGE_SHIFT determines the page size - 10), physpages << (PAGE_SHIFT determines the page size - 10), codesize >> 10, datasize >> 10, rosize >> 10, (init_data_size + init_code_size) >> 10, bss_size >> 10, (physpages - totalram_pages() - totalcma_pages) << (PAGE_SHIFT determines the page size - 10), totalcma_pages << (PAGE_SHIFT determines the page size - 10), str ? ", " : "", str ? str : "")