函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Construct a string representing the symbolic link target for the given* gcov data file name and link type. Depending on the link type and the* location of the data file, the link target can either point to a

函数原型:static char *get_link_target(const char *filename, const struct gcov_link *ext)

返回类型:char

参数:

类型参数名称
const char *filename
const struct gcov_link *ext
335  如果字符串指定长度比较恒等于0则
336  rel等于filenamestrlen - Find the length of a string*@s: The string to be sized加1
337  如果dir恒等于SRC_TREEresult等于Given a string representing a file path of format:* path/to/file.gcda* construct and return a new string:* path/to/file.
339  否则result等于Given a string representing a file path of format:* path/to/file.gcda* construct and return a new string:* path/to/file.
341  否则
343  result等于Given a string representing a file path of format:* path/to/file.gcda* construct and return a new string:* path/to/file.
346  返回:result
调用者
名称描述
add_linksCreate links to additional files (usually .c and .gcno files) which the* gcov tool expects to find in the same directory as the gcov data file.