函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\profile.c Create Date:2022-07-27 11:37:14
Last Modify:2020-03-17 15:11:09 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:分配内核性能统计

函数原型:int __ref profile_init(void)

返回类型:int

参数:

106  如果非prof_on则返回:0
110  prof_len等于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 右移prof_shift
111  buffer_bytes等于prof_lensizeof(atomic_t)
113  如果非分配CPU掩码则返回:负ENOMEM
116  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
118  prof_buffer等于分配内存并置零
119  如果prof_buffer则返回:0
122  prof_buffer等于alloc_pages_exact(buffer_bytes, GFP_KERNEL | __GFP_ZERO | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.)
124  如果prof_buffer则返回:0
127  prof_buffer等于vzalloc(buffer_bytes)
128  如果prof_buffer则返回:0
131  释放CPU掩码
132  返回:负ENOMEM