函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:is_setting_trap_flag

函数原型:static int is_setting_trap_flag(struct task_struct *child, struct pt_regs *regs)

返回类型:int

参数:

类型参数名称
struct task_struct *child
struct pt_regs *regs
60  addr等于convert_ip_to_linear(child, regs)
62  copied等于access_process_vm(child, addr, opcode, opcode的长度, get_user_pages read/write w/o permission )
64 i小于copied循环
67  :opcode[i]恒等于0x9d
67  :opcode[i]恒等于0xcf
68  返回:1
73  :opcode[i]恒等于0x66
73  :opcode[i]恒等于0x67
74  继续下一循环
76  :opcode[i]恒等于0x26
76  :opcode[i]恒等于0x2e
77  :opcode[i]恒等于0x36
77  :opcode[i]恒等于0x3e
78  :opcode[i]恒等于0x64
78  :opcode[i]恒等于0x65
79  :opcode[i]恒等于0xf0
79  :opcode[i]恒等于0xf2
79  :opcode[i]恒等于0xf3
80  继续下一循环
83  :opcode[i] == 0x40...0x4f
84  如果非user_64bit_mode(regs)则返回:0
88  继续下一循环
100  :opcode[i]恒等于0x9c
101  默认
102  返回:0
105  返回:0
调用者
名称描述
enable_single_stepEnable single-stepping. Return nonzero if user mode is not using TF itself.