Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:33:44 |
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_context_sched_in
Proto:static void perf_event_context_sched_in(struct perf_event_context *ctx, struct task_struct *task)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event_context * | ctx | |
struct task_struct * | task |
3563 | cpuctx = __get_cpu_context(ctx) |
3567 | perf_ctx_lock(cpuctx, ctx) |
3575 | perf_pmu_disable(pmu) |
3584 | If Not RB_EMPTY_ROOT( & tree) Then cpu_ctx_sched_out(cpuctx, EVENT_FLEXIBLE) |
3586 | perf_event_sched_in(cpuctx, ctx, task) |
3587 | perf_pmu_enable(pmu) |
3589 | unlock : |
3590 | perf_ctx_unlock(cpuctx, ctx) |
Name | Describe |
---|---|
__perf_event_task_sched_in | Called from scheduler to add the events of the current task* with interrupts disabled.* We restore the event value and then enable it.* This does not protect us against NMI, but enable()* sets the enabled bit in the control field of event _before_ |
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 |