函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 15:01:24 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:perf_event_create_kernel_counter*@attr: attributes of the counter to create*@cpu: cpu in which the counter is bound*@task: task to profile (NULL for percpu)
函数原型:struct perf_event *perf_event_create_kernel_counter(struct perf_event_attr *attr, int cpu, struct task_struct *task, perf_overflow_handler_t overflow_handler, void *context)
返回类型:struct perf_event
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct perf_event_attr * | attr | |
| int | cpu | |
| struct task_struct * | task | |
| perf_overflow_handler_t | overflow_handler | |
| void * | context |
| 11630 | 如果generate AUX records instead of events 则返回:错误号 |
| 11635 | 如果是错误则 |
| 11641 | owner等于TASK_TOMBSTONE |
| 11647 | 如果是错误则 |
| 11652 | WARN_ON_ONCE(These fields let us detect when two contexts have both* been cloned (inherited) from a common ancestor.) |
| 11653 | mutex_lock( & Protect the list of events. Locking either mutex or lock* is sufficient to ensure the list doesn't change; to change* the list you need to lock both the mutex and the spinlock.) |
| 11654 | 如果task恒等于TASK_TOMBSTONE则 |
| 11656 | 转到:err_unlock |
| 11659 | 如果非task则 |
| 11668 | 如果非online则 |
| 11670 | 转到:err_unlock |
| 11674 | 如果非exclusive_event_installable(event, ctx)则 |
| 11676 | 转到:err_unlock |
| 11679 | Attach a performance event to a context.* Very similar to event_function_call, see comment there. |
| 11680 | perf_unpin_context(ctx) |
| 11683 | 返回:event |
| 11685 | err_unlock : |
| 11687 | perf_unpin_context(ctx) |
| 11689 | err_free : |
| 11691 | err : |
| 11692 | 返回:错误号 |
| 名称 | 描述 |
|---|---|
| measure_residency_fn | |
| hardlockup_detector_event_create | |
| register_user_hw_breakpoint | gister_user_hw_breakpoint - register a hardware breakpoint for user space*@attr: breakpoint attributes*@triggered: callback to trigger when we hit the breakpoint*@tsk: pointer to 'task_struct' of the process to which the address belongs |
| register_wide_hw_breakpoint | a set of per_cpu pointers to perf events |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |