函数逻辑报告 |
Source Code:kernel\debug\kdb\kdb_support.c |
Create Date:2022-07-27 12:47:52 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:debug_kmalloc
函数原型:void *debug_kmalloc(size_t size, gfp_t flags)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| size_t | size | |
| gfp_t | flags |
| 749 | void * p = NULL |
| 750 | 如果非get_dap_lock()则 |
| 752 | 返回:NULL |
| 754 | h等于debug_alloc_pool加dah_first |
| 755 | 如果dah_first_call则 |
| 756 | size等于debug_alloc_pool_aligned的长度减dah_overhead |
| 757 | dah_first_call等于0 |
| 759 | size等于@a is a power of 2 value (size, The memory returned by this allocator must be aligned, which means* so must the header size) |
| 761 | 当1循环 |
| 777 | 如果ffset of next header from start of pool 恒等于0且bestprev恒等于NULL且rem小于dah_overhead则转到:out |
| 779 | 如果rem大于等于dah_overhead则 |
| 783 | h等于debug_alloc_pool加h_offset |
| 784 | size等于rem减dah_overhead |
| 788 | caller等于__builtin_return_address(0) |
| 790 | dah_used_max等于两数取大(dah_used, dah_used_max) |
| 795 | p等于best加dah_overhead |
| 796 | memset(p, r use-uninitialised poisoning , size - 1) |
| 797 | *p加size减1的差等于d-byte of poisoning |
| 798 | out : |
| 799 | 自旋锁解锁 |
| 800 | 返回:p |
| 名称 | 描述 |
|---|---|
| kdbnearsym | kdbnearsym - Return the name of the symbol with the nearest address* less than 'addr' |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |