Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:41:05 |
| 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_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)
Proto:struct perf_event *perf_event_create_kernel_counter(struct perf_event_attr *attr, int cpu, struct task_struct *task, perf_overflow_handler_t overflow_handler, void *context)
Type:struct perf_event
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event_attr * | attr | |
| int | cpu | |
| struct task_struct * | task | |
| perf_overflow_handler_t | overflow_handler | |
| void * | context |
| 11630 | If generate AUX records instead of events Then Return ERR_PTR( - EINVAL) |
| 11641 | owner = TASK_TOMBSTONE |
| 11652 | WARN_ON_ONCE(These fields let us detect when two contexts have both* been cloned (inherited) from a common ancestor.) |
| 11653 | 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.) |
| 11654 | If task == TASK_TOMBSTONE Then |
| 11656 | Go to err_unlock |
| 11659 | If Not task Then |
| 11668 | If Not online Then |
| 11670 | Go to err_unlock |
| 11674 | If Not exclusive_event_installable(event, ctx) Then |
| 11676 | Go to err_unlock |
| 11679 | Attach a performance event to a context.* Very similar to event_function_call, see comment there. |
| 11680 | perf_unpin_context(ctx) |
| 11683 | Return event |
| 11685 | err_unlock : |
| 11687 | perf_unpin_context(ctx) |
| 11689 | err_free : |
| 11691 | err : |
| Name | Describe |
|---|---|
| measure_residency_fn | |
| hardlockup_detector_event_create | |
| register_user_hw_breakpoint | gister_user_hw_breakpoint - register a hardware breakpoint for user space*@attr: breakpoint attributes*@triggered: callback to trigger when we hit the breakpoint*@tsk: pointer to 'task_struct' of the process to which the address belongs |
| register_wide_hw_breakpoint | a set of per_cpu pointers to perf events |
| 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 |