Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:41:18 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:perf_event_exit_task_context
Proto:static void perf_event_exit_task_context(struct task_struct *child, int ctxn)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | child | |
| int | ctxn |
| 11841 | struct perf_event_context * child_ctx, * clone_ctx = NULL |
| 11844 | WARN_ON_ONCE(child != current process) |
| 11846 | child_ctx = Get the context for a task and increment its pin_count so it* can't get swapped to another task. This also increments its* reference count so that the context can't get freed. |
| 11847 | If Not child_ctx Then Return |
| 11860 | 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.) |
| 11876 | WRITE_ONCE(task, TASK_TOMBSTONE) |
| 11877 | put_task_struct(current process) |
| 11880 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
| 11890 | perf_event_task(child, child_ctx, 0) |
| 11893 | perf_event_exit_event(child_event, child_ctx, child) |
| Name | Describe |
|---|---|
| perf_event_exit_task | When a child task exits, feed back event values to parent events.* Can be called with cred_guard_mutex held when called from* install_exec_creds(). |
| 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 |