函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Callback to create/remove profiling files when code compiled with* -fprofile-arcs is loaded/unloaded.

函数原型:void gcov_event(enum gcov_action action, struct gcov_info *info)

返回类型:void

参数:

类型参数名称
enum gcov_actionaction
struct gcov_info *info
732  mutex_lock( & node_lock)
733  node等于Find a node by the associated data file name. Needs to be called with* node_lock held.
735  :action恒等于GCOV_ADD
736  如果nodeAssociate a profiling data set with an existing node. Needs to be called* with node_lock held.
738  否则Create a node for a given profiling data set and add it to all lists and* debugfs. Needs to be called with node_lock held.
740  退出
741  :action恒等于GCOV_REMOVE
742  如果nodeDisassociate a profiling data set from a node. Needs to be called with* node_lock held.
744  否则
745  打印警告信息("could not remove '%s' (not found)\n", Interface to access gcov_info data )
748  退出
750  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
调用者
名称描述
gcov_module_notifierUpdate list and generate events when modules are unloaded.
__gcov_init__gcov_init is called by gcc-generated constructor code for each object* file compiled with -fprofile-arcs.
llvm_gcov_init
gcov_enable_eventsgcov_enable_events - enable event reporting through gcov_event()* Turn on reporting of profiling data load/unload-events through the* gcov_event() callback