函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c |
Create Date:2022-07-27 09:14:10 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:pseudo_lock_measure_cycles - Trigger latency measure to pseudo-locked region* The measurement of latency to access a pseudo-locked region should be* done from a cpu that is associated with that pseudo-locked region
函数原型:static int pseudo_lock_measure_cycles(struct rdtgroup *rdtgrp, int sel)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct rdtgroup * | rdtgrp | |
int | sel |
1156 | ret等于负1 |
1158 | cpus_read_lock() |
1159 | mutex_lock( & Mutex to protect rdtgroup access. ) |
1161 | 如果flags按位与dtgroup.flags 则 |
1166 | 如果非d则 |
1171 | thread_done等于0 |
1173 | 如果非cpu_online(cpu)则 |
1185 | 否则如果sel恒等于2则thread等于kthread_create_on_node(measure_l2_residency, plr, cpu_to_node(cpu), "pseudo_lock_measure/%u", cpu) |
1190 | 否则如果sel恒等于3则thread等于kthread_create_on_node(measure_l3_residency, plr, cpu_to_node(cpu), "pseudo_lock_measure/%u", cpu) |
1195 | 否则转到:out |
1198 | 如果是错误则 |
1202 | kthread_bind(thread, cpu) |
1203 | 唤醒中断线程 |
1210 | ret等于0 |
1212 | out : |
1214 | cpus_read_unlock() |
1215 | 返回:ret |
名称 | 描述 |
---|---|
pseudo_lock_measure_trigger |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |