Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:34:06 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Enable all of a task's events that have been marked enable-on-exec.* This expects task == current.
Proto:static void perf_event_enable_on_exec(int ctxn)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
int | ctxn |
3932 | struct perf_event_context * ctx, * clone_ctx = NULL |
3933 | event_type = 0 |
3937 | enabled = 0 |
3939 | local_irq_save(flags) |
3940 | ctx = perf_event_ctxp[ctxn] |
3944 | cpuctx = __get_cpu_context(ctx) |
3945 | perf_ctx_lock(cpuctx, ctx) |
3946 | ctx_sched_out(ctx, cpuctx, EVENT_TIME) |
3948 | enabled |= event_enable_on_exec(event, ctx) |
3949 | event_type |= get_event_type(event) |
3955 | If enabled Then |
3958 | Else |
3959 | ctx_sched_in(ctx, cpuctx, EVENT_TIME, current process) |
3961 | perf_ctx_unlock(cpuctx, ctx) |
3963 | out : |
3964 | local_irq_restore(flags) |
Name | Describe |
---|---|
perf_event_exec |
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 |