函数逻辑报告 |
Source Code:mm\kmemleak.c |
Create Date:2022-07-27 17:55:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Print the kmemleak_object information. This function is used mainly for* debugging special cases when kmemleak operations. It must be called with* the object->lock held.
函数原型:static void dump_object_info(struct kmemleak_object *object)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmemleak_object * | object |
363 | 打印注释信息(" comm \"%s\", pid %d, jiffies %lu\n", xecutable name , pid of the current task , creation timestamp ) |
365 | 打印注释信息(" min_count = %d\n", minimum number of a pointers found before it is considered leak ) |
366 | 打印注释信息(" count = %d\n", he total number of pointers found pointing to this object ) |
367 | 打印注释信息(" flags = 0x%x\n", bject status flags ) |
368 | 打印注释信息(" checksum = %u\n", checksum for detecting modified objects ) |
369 | 打印注释信息(" backtrace:\n") |
名称 | 描述 |
---|---|
lookup_object | Look-up a memory block metadata (kmemleak_object) in the object search* tree based on a pointer value. If alias is 0, only values pointing to the* beginning of the memory block are allowed. The kmemleak_lock must be held* when calling this function. |
create_object | Create the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root. |
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. |
kmemleak_scan | Scan data sections and all the referenced memory blocks allocated via the* kernel's standard allocators. This function must be called with the* scan_mutex held. |
dump_str_object_info |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |