Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:llvm_gcov_init

Proto:void llvm_gcov_init(llvm_gcov_callback writeout, llvm_gcov_callback flush)

Type:void

Parameter:

TypeParameterName
llvm_gcov_callbackwriteout
llvm_gcov_callbackflush
87  info = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
89  If Not info Then Return
92  Initialization list head
93  Initialization list head
95  mutex_lock( & gcov_lock)
97  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
98  current_info = info
99  writeout()
100  current_info = NULL
101  If gcov_events_enabled Then Callback to create/remove profiling files when code compiled with* -fprofile-arcs is loaded/unloaded.
104  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.