Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:31:17 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Similar to event_function_call() + event_function(), but hard assumes IRQs* are already disabled and we're on the right CPU.
Proto:static void event_function_local(struct perf_event *event, event_f func, void *data)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event * | event | |
| event_f | func | |
| void * | data |
| 304 | cpuctx = __get_cpu_context(ctx) |
| 306 | struct perf_event_context * task_ctx = NULL |
| 310 | If task Then |
| 311 | If task == TASK_TOMBSTONE Then Return |
| 317 | perf_ctx_lock(cpuctx, task_ctx) |
| 320 | If task == TASK_TOMBSTONE Then Go to unlock |
| 323 | If task Then |
| 329 | If is_active Then |
| 330 | If WARN_ON_ONCE(task != current process) Then Go to unlock |
| 333 | If WARN_ON_ONCE(task_ctx != ctx) Then Go to unlock |
| 336 | Else |
| 337 | WARN_ON_ONCE( & ctx != ctx) |
| 341 | unlock : |
| 342 | perf_ctx_unlock(cpuctx, task_ctx) |
| Name | Describe |
|---|---|
| perf_event_disable_local |
| 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 |