函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kmemleak.c Create Date:2022-07-27 17:56:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:void __ref kmemleak_update_trace(const void *ptr)

返回类型:void

参数:

类型参数名称
const void *ptr
1015  pr_debug("%s(0x%p)\n", __func__, ptr)
1017  如果非set if tracing memory operations is enabled 是错误或空则返回
1020  object等于Look up an object in the object search tree and increase its use_count.
1021  如果非object
1023  Print a warning and dump the stack trace.("Updating stack trace for unknown object at %p\n", ptr)
1026  返回
1029  spin_lock_irqsave( & lock, flags)
1030  trace_len等于Save stack trace to the given array of MAX_TRACE size.
1031  spin_unlock_irqrestore( & lock, flags)
1033  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
调用者
名称描述
radix_tree_node_allocThis assumes that the caller has performed appropriate preallocation, and* that the caller has pinned this thread of control to the current CPU.
mempool_allocmempool_alloc - allocate an element from a specific memory pool*@pool: pointer to the memory pool which was allocated via* mempool_create().*@gfp_mask: the usual allocation bitmask.* this function only sleeps if the alloc_fn() function sleeps or