函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_profile_hits

函数原型:static void do_profile_hits(int type, void *__pc, unsigned int nr_hits)

返回类型:void

参数:

类型参数名称
inttype
void *__pc
unsigned intnr_hits
389  pc等于__pcUsage 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
390  atomic_add(nr_hits, & prof_buffer[两数取小(pc, prof_len - 1)])
调用者
名称描述
profile_hits