Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\gcov\fs.c Create Date:2022-07-28 11:31:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static char *get_link_target(const char *filename, const struct gcov_link *ext)

Type:char

Parameter:

TypeParameterName
const char *filename
const struct gcov_link *ext
335  If strncmp(filename, objtree, strlen - Find the length of a string*@s: The string to be sized) == 0 Then
336  rel = filename + strlen - Find the length of a string*@s: The string to be sized + 1
337  If dir == SRC_TREE Then result = Given a string representing a file path of format:* path/to/file.gcda* construct and return a new string:* path/to/file.
339  Else result = Given a string representing a file path of format:* path/to/file.gcda* construct and return a new string:* path/to/file.
341  Else
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  Return result
Caller
NameDescribe
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.