函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:user_disable_single_step

函数原型:void user_disable_single_step(struct task_struct *child)

返回类型:void

参数:

类型参数名称
struct task_struct *child
228  如果test_tsk_thread_flag(child, set when we want DEBUGCTLMSR_BTF )则set_task_blockstep(child, false)
232  清除线程指定标志
235  如果test_and_clear_tsk_thread_flag(child, rue if TF in eflags artificially )则({
236  __ptr等于栈指针
236  __ptr加等于1UL左移12位左移2加1位的值减8
236  __ptr减1
236  })->flags &= ~X86_EFLAGS_TF
调用者
名称描述
ptrace_disableCalled by kernel/ptrace.c when detaching..* Make sure the single step bit is not set.
ptrace_resume
handle_signal自定义信号处理函数
copy_process创建进程