函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Must be called with kcov_remote_lock locked.

函数原型:static struct kcov_remote_area *kcov_remote_area_get(unsigned int size)

返回类型:struct kcov_remote_area

参数:

类型参数名称
unsigned intsize
122  kcov_debug("size = %u\n", size)
124  area等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(pos, structkcov_remote_area, list)
125  如果size恒等于size
126  删除链表项
127  kcov_debug("rv = %px\n", area)
128  返回:area
131  kcov_debug("rv = NULL\n")
132  返回:NULL
调用者
名称描述
kcov_remote_startkcov_remote_start() and kcov_remote_stop() can be used to annotate a section* of code in a kernel background thread to allow kcov to be used to collect* coverage from that part of code