函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Printing of the unreferenced objects information to the seq file. The* print_unreferenced function must be called with the object->lock held.

函数原型:static void print_unreferenced(struct seq_file *seq, struct kmemleak_object *object)

返回类型:void

参数:

类型参数名称
struct seq_file *seq
struct kmemleak_object *object
338  msecs_age等于Convert jiffies to milliseconds and back.* Avoid unnecessary multiplications/divisions in the* two most common HZ cases:
340  warn_or_seq_printf(seq, "unreferenced object 0x%08lx (size %zu):\n", pointer, size)
342  warn_or_seq_printf(seq, " comm \"%s\", pid %d, jiffies %lu (age %d.%03ds)\n", xecutable name , pid of the current task , creation timestamp , msecs_age / 1000, msecs_age % 1000)
345  Printing of the objects hex dump to the seq file. The number of lines to be* printed is limited to HEX_MAX_LINES to prevent seq file spamming. The* actual number of printed bytes depends on HEX_ROW_SIZE. It must be called* with the object->lock held.
346  warn_or_seq_printf(seq, " backtrace:\n")
348 i小于trace_len循环
349  ptr等于trace[i]
350  warn_or_seq_printf(seq, " [<%p>] %pS\n", ptr, ptr)
调用者
名称描述
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.
kmemleak_seq_showPrint the information for an unreferenced object to the seq file.