Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:33:04 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Attach a performance event to a context.* Very similar to event_function_call, see comment there.
Proto:static void perf_install_in_context(struct perf_event_context *ctx, struct perf_event *event, int cpu)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event_context * | ctx | |
struct perf_event * | event | |
int | cpu |
2674 | WARN_ON_ONCE(!exclusive_event_installable(event, ctx)) |
2683 | smp_store_release( & ctx, ctx) |
2695 | If task == TASK_TOMBSTONE Then |
2696 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
2697 | Return |
2699 | add_event_to_ctx(event, ctx) |
2700 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
2701 | Return |
2704 | If Not task Then |
2712 | If WARN_ON_ONCE(task == TASK_TOMBSTONE) Then Return |
2745 | smp_mb() |
2746 | again : |
2752 | If WARN_ON_ONCE(task == TASK_TOMBSTONE) Then |
2758 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
2759 | Return |
2766 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
2767 | Go to again |
2769 | add_event_to_ctx(event, ctx) |
2770 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
Name | Describe |
---|---|
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_pmu_migrate_context |
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 |