函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Associate a profiling data set with an existing node. Needs to be called* with node_lock held.

函数原型:static void add_info(struct gcov_node *node, struct gcov_info *info)

返回类型:void

参数:

类型参数名称
struct gcov_node *node
struct gcov_info *info
617  num等于num_loaded
624  loaded_info等于分配数组内存并置零
625  如果非loaded_info
626  打印警告信息("could not add '%s' (out of memory)\n", Interface to access gcov_info data )
628  返回
630  内存复制(loaded_info, loaded_info, num * *的长度)
632  loaded_info[num]等于info
634  如果num恒等于0则
640  打印警告信息("discarding saved data for %s (incompatible version)\n", Interface to access gcov_info data )
644  unloaded_info = NULL
646  否则
651  如果非gcov_info_is_compatible(loaded_info[0], info)则
652  打印警告信息("could not add '%s' (incompatible version)\n", Interface to access gcov_info data )
655  返回
659  kfree(loaded_info)
660  loaded_info等于loaded_info
661  num_loaded等于num加1
调用者
名称描述
gcov_eventCallback to create/remove profiling files when code compiled with* -fprofile-arcs is loaded/unloaded.