Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kmemleak.c Create Date:2022-07-28 16:21:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static void print_unreferenced(struct seq_file *seq, struct kmemleak_object *object)

Type:void

Parameter:

TypeParameterName
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  When i < trace_len cycle
349  ptr = trace[i]
350  warn_or_seq_printf(seq, " [<%p>] %pS\n", ptr, ptr)
Caller
NameDescribe
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.