Function report | 
Source Code:kernel\events\core.c | 
Create Date:2022-07-28 13:41:23 | 
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Free a context as created by inheritance by perf_event_init_task() below,* used by fork() in case of fail.* Even though the task has never lived, the context and events have been* exposed through the child_list, so we must take care tearing it all down.
Proto:void perf_event_free_task(struct task_struct *task)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | task | 
| 11972 | ctx = perf_event_ctxp[ctxn] | 
| 11973 | If Not ctx Then Continue | 
| 11976 | mutex_lock( & Protect the list of events. Locking either mutex or lock* is sufficient to ensure the list doesn't change; to change* the list you need to lock both the mutex and the spinlock.) | 
| 11985 | WRITE_ONCE(task, TASK_TOMBSTONE) | 
| 11986 | put_task_struct(task) | 
| 11987 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) | 
| 11990 | perf_free_event(event, ctx) | 
| 12008 | wait_var_event( & refcount, _read - get a refcount's value*@r: the refcount* Return: the refcount's value == 1) | 
| Name | Describe | 
|---|---|
| perf_event_init_task | Initialize the perf_event context in task_struct | 
| 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  |