Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:33:33 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This function provides the context switch callback to the lower code* layer. It is invoked ONLY when the context switch callback is enabled.* This callback is relevant even to per-cpu events; for example multi event
Proto:static void perf_pmu_sched_task(struct task_struct *prev, struct task_struct *next, bool sched_in)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | prev | |
struct task_struct * | next | |
bool | sched_in |
3329 | If WARN_ON_ONCE(!sched_task) Then Continue |
3332 | perf_ctx_lock(cpuctx, task_ctx) |
3333 | perf_pmu_disable(pmu) |
3335 | sched_task(task_ctx, sched_in) |
3337 | perf_pmu_enable(pmu) |
3338 | perf_ctx_unlock(cpuctx, task_ctx) |
Name | Describe |
---|---|
__perf_event_task_sched_out | Called from scheduler to remove the events of the current task,* with interrupts disabled |
__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 |