Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void gcov_event(enum gcov_action action, struct gcov_info *info)

Type:void

Parameter:

TypeParameterName
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  Case action == GCOV_ADD
736  If node Then Associate a profiling data set with an existing node. Needs to be called* with node_lock held.
738  Else 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  Break
741  Case action == GCOV_REMOVE
742  If node Then Disassociate a profiling data set from a node. Needs to be called with* node_lock held.
744  Else
745  pr_warn("could not remove '%s' (not found)\n", Interface to access gcov_info data )
748  Break
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.
Caller
NameDescribe
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