函数逻辑报告 |
Source Code:kernel\trace\trace_hwlat.c |
Create Date:2022-07-27 13:17:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:start_kthread - Kick off the hardware latency sampling/detector kthread* This starts the kernel thread that will sit and sample the CPU timestamp* counter (TSC or similar) and look for potential hardware latencies.
函数原型:static int start_kthread(struct trace_array *tr)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct trace_array * | tr |
| 356 | current_mask等于save_cpumask |
| 360 | 如果WARN_ON(sampling thread)则返回:0 |
| 364 | current_mask等于save_cpumask |
| 365 | get_online_cpus() |
| 367 | put_online_cpus() |
| 371 | 如果是错误则 |
| 376 | 清空全部CPU信息 |
| 377 | 设置CPU信息 |
| 380 | sampling thread等于kthread |
| 381 | 唤醒中断线程 |
| 383 | 返回:0 |
| 名称 | 描述 |
|---|---|
| hwlat_tracer_start |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |