Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:32:50 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:event_sched_in
Proto:static int event_sched_in(struct perf_event *event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If state <= PERF_EVENT_STATE_OFF Then Return 0 |
2358 | WRITE_ONCE(oncpu, smp_processor_id()) |
2364 | smp_wmb() |
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 | If add(event, start the counter when adding ) Then |
2390 | If Not is_software_event(event) Then active_oncpu++ |
2394 | If freq && sample_freq Then nr_freq++ |
2400 | out : |
2401 | perf_pmu_enable(pmu) |
2403 | Return ret |
Name | Describe |
---|---|
group_sched_in |
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 |