函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c |
Create Date:2022-07-27 09:14:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:measure_cycles_lat_fn - Measure cycle latency to read pseudo-locked memory*@_plr: pseudo-lock region to measure* There is no deterministic way to test if a memory region is cached. One* way is to measure how long it takes to read the memory, the speed of
函数原型:static int measure_cycles_lat_fn(void *_plr)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | _plr |
874 | 禁止中断() |
878 | wrmsr(MSR_MISC_FEATURE_CONTROL, The bits needed to disable hardware prefetching varies based on the* platform. During initialization we will discover which bits to use., 0x0) |
887 | asm volatile |
892 | trace_pseudo_lock_mem_latency((u32)(end - start)) |
894 | wrmsr(MSR_MISC_FEATURE_CONTROL, 0x0, 0x0) |
895 | 开中断() |
896 | thread_done等于1 |
897 | wake_up_interruptible( & lock_thread_wq) |
898 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |