Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:34:45
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:put_event

Proto:static void put_event(struct perf_event *event)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
4707  If Not atomic_long_dec_and_test( & refcount) Then Return
4710  _free_event(event)
Caller
NameDescribe
perf_put_aux_event
perf_event_release_kernelKill an event dead; while event:refcount will preserve the event* object, it will not preserve its functionality. Once the last 'user'* gives up the object, we'll destroy the thing.
perf_mmap_closeA buffer can be mmap()ed multiple times; either directly through the same* event, or through other events by use of perf_event_set_output().* In order to undo the VM accounting done by perf_mmap() we need to destroy
perf_event_exit_event
perf_free_event