Function report |
Source Code:mm\kmemleak.c |
Create Date:2022-07-28 16:21:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static void dump_object_info(struct kmemleak_object *object)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct kmemleak_object * | object |
363 | pr_notice(" comm \"%s\", pid %d, jiffies %lu\n", xecutable name , pid of the current task , creation timestamp ) |
365 | pr_notice(" min_count = %d\n", minimum number of a pointers found before it is considered leak ) |
366 | pr_notice(" count = %d\n", he total number of pointers found pointing to this object ) |
367 | pr_notice(" flags = 0x%x\n", bject status flags ) |
368 | pr_notice(" checksum = %u\n", checksum for detecting modified objects ) |
369 | pr_notice(" backtrace:\n") |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |