Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\stacktrace.c Create Date:2022-07-28 10:37:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:unsigned int stack_trace_save_tsk(struct task_struct *tsk, unsigned long *store, unsigned int size, unsigned int skipnr)

Type:unsigned int

Parameter:

TypeParameterName
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 + (current process == tsk), }
148  If Not try_get_task_stack(tsk) Then Return 0
151  arch_stack_walk(consume_entry, & c, tsk, NULL)
152  put_task_stack(tsk)
153  Return len
Caller
NameDescribe
__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