函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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则 |
639 | 如果非gcov_info_is_compatible(unloaded_info, info)则 |
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 ) |
654 | kfree(loaded_info) |
655 | 返回 |
659 | kfree(loaded_info) |
660 | loaded_info等于loaded_info |
661 | num_loaded等于num加1 |
名称 | 描述 |
---|---|
gcov_event | Callback to create/remove profiling files when code compiled with* -fprofile-arcs is loaded/unloaded. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |