Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct kmemleak_object *object
361  pr_notice("Object 0x%08lx (size %zu):\n", pointer, size)
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")
370  stack_trace_print - Print the entries in the stack trace*@entries: Pointer to storage array*@nr_entries: Number of entries in the storage array*@spaces: Number of leading spaces to print
Caller
NameDescribe
lookup_objectLook-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_objectCreate the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root.
add_scan_areaAdd 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_scanScan 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