函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void stack_trace_print(const unsigned long *entries, unsigned int nr_entries, int spaces)

返回类型:void

参数:

类型参数名称
const unsigned long *entries
unsigned intnr_entries
intspaces
28  如果WARN_ON(!entries)则返回
31 i小于nr_entries循环printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
调用者
名称描述
backtrace_test_saved
dump_object_infoPrint 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.
__dump_page_owner
dump_entry_traceThe access to some variables in this macro is racy. We can't use atomic_t* here because all these variables are exported to debugfs. Some of them even* writeable. This is also the reason why a lock won't help much. But anyway,* the races are no big deal
print_track