Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:33:01 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Cross CPU call to install and enable a performance event* Very similar to remote_function() + event_function() but cannot assume that* things like ctx->is_active and cpuctx->task_ctx are set.
Proto:static int __perf_install_in_context(void *info)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | info |
2602 | cpuctx = __get_cpu_context(ctx) |
2604 | bool reprogram = true |
2605 | ret = 0 |
2608 | If task Then |
2612 | reprogram = task == current process |
2626 | WARN_ON_ONCE(reprogram && task_ctx && task_ctx != ctx) |
2627 | Else if task_ctx Then |
2643 | If reprogram Then |
2644 | ctx_sched_out(ctx, cpuctx, EVENT_TIME) |
2645 | add_event_to_ctx(event, ctx) |
2647 | Else |
2648 | add_event_to_ctx(event, ctx) |
2651 | unlock : |
2652 | perf_ctx_unlock(cpuctx, task_ctx) |
2654 | Return ret |
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 |