函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:52:08 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Attach a performance event to a context.* Very similar to event_function_call, see comment there.
函数原型:static void perf_install_in_context(struct perf_event_context *ctx, struct perf_event *event, int cpu)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
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) |
2694 | 关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & Protect the states of the events in the list,* nr_active, and the list:) |
2695 | 如果task恒等于TASK_TOMBSTONE则 |
2696 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
2697 | 返回 |
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 | 返回 |
2704 | 如果非task则 |
2712 | 如果WARN_ON_ONCE(task == TASK_TOMBSTONE)则返回 |
2745 | smp_mb() |
2746 | again : |
2750 | 关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & Protect the states of the events in the list,* nr_active, and the list:) |
2752 | 如果WARN_ON_ONCE(task == TASK_TOMBSTONE)则 |
2758 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
2759 | 返回 |
2766 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
2767 | 转到: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:) |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |