函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Enable single-stepping. Return nonzero if user mode is not using TF itself.

函数原型:static int enable_single_step(struct task_struct *child)

返回类型:int

参数:

类型参数名称
struct task_struct *child
113  regs等于task_pt_regs(child)
126  如果此条件成立可能性小(为编译器优化)(test_tsk_thread_flag(child, able singlestep on user return))则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  如果is_setting_trap_flag(child, regs)则
151  清除线程指定标志
152  返回:0
159  如果oflags按位与X86_EFLAGS_TF则返回: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  返回:1
调用者
名称描述
enable_stepEnable single or block step.