函数逻辑报告 |
Source Code:mm\kmemleak.c |
Create Date:2022-07-27 17:56:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Decrement the object use_count. Once the count is 0, free the object using* an RCU callback. Since put_object() may be called via the kmemleak_free() ->* delete_object() path, the delayed RCU freeing ensures that there is no
函数原型:static void put_object(struct kmemleak_object *object)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmemleak_object * | object |
502 | 如果allocation caches for kmemleak internal data 则Post an RCU callback to be invoked after the end of an RCU grace* period. But since we have but one CPU, that would be after any* quiescent state. |
名称 | 描述 |
---|---|
__delete_object | Mark the object as not allocated and schedule RCU freeing via put_object(). |
paint_ptr | |
add_scan_area | Add a scanning area to the object. If at least one such area is added,* kmemleak will only scan these ranges rather than the whole memory block. |
object_set_excess_ref | Any surplus references (object already gray) to 'ptr' are passed to* 'excess_ref'. This is used in the vmalloc() case where a pointer to* vm_struct may be used as an alternative reference to the vmalloc'ed object* (see free_thread_stack()). |
object_no_scan | Set the OBJECT_NO_SCAN flag for the object corresponding to the give* pointer. Such object will not be scanned by kmemleak but references to it* are searched. |
kmemleak_update_trace | kmemleak_update_trace - update object allocation stack trace*@ptr: pointer to beginning of the object* Override the object allocation stack trace for cases where the actual* allocation place is not always useful. |
scan_gray_list | Scan the objects already referenced (gray objects). More objects will be* referenced and, if there are no memory leaks, all the objects are scanned. |
kmemleak_seq_next | Return the next object in the object_list. The function decrements the* use_count of the previous object and increases that of the next one. |
kmemleak_seq_stop | Decrement the use_count of the last object required, if any. |
dump_str_object_info |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |