Function report | 
Source Code:kernel\events\core.c | 
Create Date:2022-07-28 13:34:43 | 
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Used to free events which have a known refcount of 1, such as in error paths* where the event isn't exposed yet and inherited events.
Proto:static void free_event(struct perf_event *event)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct perf_event * | event | 
| 4644 | If WARN(atomic_long_cmpxchg( & refcount, 1, 0) != 1, "unexpected event refcount: %ld; ptr=%p\n", atomic_long_read( & refcount), event) Then | 
| 4648 | Return | 
| 4651 | _free_event(event) | 
| Name | Describe | 
|---|---|
| perf_event_release_kernel | Kill 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_event_create_kernel_counter | perf_event_create_kernel_counter*@attr: attributes of the counter to create*@cpu: cpu in which the counter is bound*@task: task to profile (NULL for percpu) | 
| perf_event_exit_event | |
| perf_free_event | |
| inherit_event | Inherit an event from parent task to child task.* Returns:* - valid pointer on success* - NULL for orphaned events* - IS_ERR() on error | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |