函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:stack_trace_save_tsk - Save a task stack trace into a storage array*@task: The task to examine*@store: Pointer to storage array*@size: Size of the storage array*@skipnr: Number of entries to skip at the start of the stack trace

函数原型:unsigned int stack_trace_save_tsk(struct task_struct *tsk, unsigned long *store, unsigned int size, unsigned int skipnr)

返回类型:unsigned int

参数:

类型参数名称
struct task_struct *tsk
unsigned long *store
unsigned intsize
unsigned intskipnr
140  consume_entry等于stack_trace_consume_entry_nosched
141  struct stacktrace_cookie c = {store = store, size = size, skip = skipnr + (当前进程 == tsk), }
148  如果非try_get_task_stack(tsk)则返回:0
151  arch_stack_walk(consume_entry, & c, tsk, NULL)
152  put_task_stack(tsk)
153  返回:len
调用者
名称描述
__account_scheduler_latency__account_scheduler_latency - record an occurred latency*@tsk - the task struct of the task hitting the latency*@usecs - the duration of the latency in microseconds*@inter - 1 if the sleep was interruptible, 0 if uninterruptible* This function is the main