函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\microcode\amd.c |
Create Date:2022-07-27 09:09:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:This scans the ucode blob for the proper container as we can have multiple* containers glued together. Returns the equivalence ID from the equivalence* table or 0 if none found.* Returns the amount of bytes consumed while scanning. @desc contains all the
函数原型:static size_t parse_container(u8 *ucode, size_t size, struct cont_desc *desc)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
u8 * | ucode | |
size_t | size | |
struct cont_desc * | desc |
309 | entry等于buf加CONTAINER_HDR_SZ |
310 | num_entries等于hdr[2]除sizeof(structequiv_cpu_entry) |
317 | eq_id等于find_equiv_id( & table, cpuid_1_eax) |
319 | buf加等于hdr[2]加CONTAINER_HDR_SZ |
320 | size减等于hdr[2]加CONTAINER_HDR_SZ |
331 | ret等于Verify the patch in @buf.* Returns:* negative: on error* positive: patch is not for this family, skip it* 0: success |
332 | 如果ret小于0则 |
337 | 转到:out |
338 | 否则如果ret大于0则 |
339 | 转到:skip |
342 | mc等于buf加SECTION_HDR_SIZE |
343 | 如果eq_id恒等于processor_rev_id则 |
344 | psize等于patch_size |
348 | skip : |
350 | buf加等于patch_size加SECTION_HDR_SIZE |
351 | size减等于patch_size加SECTION_HDR_SIZE |
361 | 如果mc则 |
368 | out : |
名称 | 描述 |
---|---|
scan_containers | Scan the ucode blob for the proper container as we can have multiple* containers glued together. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |