Function report |
Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c |
Create Date:2022-07-28 08:14:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static int pseudo_lock_measure_cycles(struct rdtgroup *rdtgrp, int sel)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct rdtgroup * | rdtgrp | |
int | sel |
1156 | ret = -1 |
1158 | cpus_read_lock() |
1159 | mutex_lock( & Mutex to protect rdtgroup access. ) |
1161 | If flags & dtgroup.flags Then |
1166 | If Not d Then |
1171 | thread_done = 0 |
1173 | If Not cpu_online(cpu) Then |
1185 | Else if sel == 2 Then thread = kthread_create_on_node(measure_l2_residency, plr, cpu_to_node(cpu), "pseudo_lock_measure/%u", cpu) |
1190 | Else if sel == 3 Then thread = kthread_create_on_node(measure_l3_residency, plr, cpu_to_node(cpu), "pseudo_lock_measure/%u", cpu) |
1195 | Else Go to out |
1202 | kthread_bind(thread, cpu) |
1203 | wake_up_process(thread) |
1210 | ret = 0 |
1212 | out : |
1214 | cpus_read_unlock() |
1215 | Return ret |
Name | Describe |
---|---|
pseudo_lock_measure_trigger |
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 |