Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\step.c Create Date:2022-07-28 07:52:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Enable single-stepping. Return nonzero if user mode is not using TF itself.

Proto:static int enable_single_step(struct task_struct *child)

Type:int

Parameter:

TypeParameterName
struct task_struct *child
113  regs = task_pt_regs(child)
126  If Value for the false possibility is greater at compile time(test_tsk_thread_flag(child, able singlestep on user return)) Then flags |= X86_EFLAGS_TF
134  Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
136  oflags = flags
139  flags |= X86_EFLAGS_TF
150  If is_setting_trap_flag(child, regs) Then
151  clear_tsk_thread_flag(child, rue if TF in eflags artificially )
152  Return 0
159  If oflags & X86_EFLAGS_TF Then Return test_tsk_thread_flag(child, rue if TF in eflags artificially )
162  Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
164  Return 1
Caller
NameDescribe
enable_stepEnable single or block step.