函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:51:51 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:event_sched_in
函数原型:static int event_sched_in(struct perf_event *event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct perf_event * | event | |
| struct perf_cpu_context * | cpuctx | |
| struct perf_event_context * | ctx |
| 2351 | ret等于0 |
| 2353 | lockdep_assert_held( & Protect the states of the events in the list,* nr_active, and the list:) |
| 2355 | 如果state小于等于PERF_EVENT_STATE_OFF则返回:0 |
| 2358 | WRITE_ONCE(oncpu, 当前cpu ID()) |
| 2364 | smp_wmb() |
| 2372 | 如果此条件成立可能性小(为编译器优化)(interrupts == MAX_INTERRUPTS)则 |
| 2373 | perf_log_throttle(event, 1) |
| 2374 | interrupts等于0 |
| 2377 | perf_pmu_disable(pmu) |
| 2379 | perf_set_shadow_time(event, ctx) |
| 2381 | perf_log_itrace_start(event) |
| 2383 | 如果add(event, start the counter when adding )则 |
| 2390 | 如果非is_software_event(event)则active_oncpu自加 |
| 2394 | 如果freq且sample_freq则nr_freq自加 |
| 2400 | out : |
| 2401 | perf_pmu_enable(pmu) |
| 2403 | 返回:ret |
| 名称 | 描述 |
|---|---|
| group_sched_in |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |