函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c |
Create Date:2022-07-27 09:14:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:dtgroup_pseudo_lock_create - Create a pseudo-locked region*@rdtgrp: resource group to which pseudo-lock region belongs* Called when a resource group in the pseudo-locksetup mode receives a* valid schemata that should be pseudo-locked
函数原型:int rdtgroup_pseudo_lock_create(struct rdtgroup *rdtgrp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct rdtgroup * | rdtgrp |
1283 | ret等于pseudo_lock_cstates_constrain - Restrict cores from entering C6* To prevent the cache from being affected by power management entering* C6 has to be avoided |
1284 | 如果ret小于0则 |
1286 | 转到:out_region |
1289 | thread_done等于0 |
1294 | 如果是错误则 |
1296 | rdt_last_cmd_printf("Locking thread returned error %d\n", ret) |
1297 | 转到:out_cstates |
1300 | kthread_bind(thread, cpu) |
1301 | 唤醒中断线程 |
1305 | 如果ret小于0则 |
1314 | rdt_last_cmd_puts("Locking thread interrupted\n") |
1315 | 转到:out_cstates |
1319 | 如果ret小于0则 |
1320 | rdt_last_cmd_puts("Unable to obtain a new minor number\n") |
1321 | 转到:out_cstates |
1335 | 如果非是错误或空则 |
1338 | 如果非是错误或空则debugfs_create_file("pseudo_lock_measure", 0200, debugfs_dir, rdtgrp, & pseudo_measure_fops) |
1344 | dev等于device_create(pseudo_lock_class, NULL, MKDEV(Major number assigned to and shared by all devices exposing* pseudo-locked regions., new_minor), rdtgrp, "%s", name) |
1348 | mutex_lock( & Mutex to protect rdtgroup access. ) |
1350 | 如果是错误则 |
1352 | rdt_last_cmd_printf("Failed to create character device: %d\n", ret) |
1354 | 转到:out_debugfs |
1358 | 如果flags按位与dtgroup.flags 则 |
1360 | 转到:out_device |
1365 | mode等于RDT_MODE_PSEUDO_LOCKED |
1366 | closid_free(closid) |
1370 | ret等于0 |
1371 | 转到:out |
1373 | out_device : |
1374 | device_destroy(pseudo_lock_class, MKDEV(Major number assigned to and shared by all devices exposing* pseudo-locked regions., new_minor)) |
1375 | out_debugfs : |
1377 | pseudo_lock_minor_release - Return minor number to available*@minor: The minor number made available |
1378 | out_cstates : |
1379 | pseudo_lock_cstates_relax(plr) |
1380 | out_region : |
1382 | out : |
1383 | 返回:ret |
名称 | 描述 |
---|---|
rdtgroup_schemata_write |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |