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:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:is_setting_trap_flag

Proto:static int is_setting_trap_flag(struct task_struct *child, struct pt_regs *regs)

Type:int

Parameter:

TypeParameterName
struct task_struct *child
struct pt_regs *regs
60  addr = convert_ip_to_linear(child, regs)
62  copied = access_process_vm(child, addr, opcode, size of opcode , get_user_pages read/write w/o permission )
64  When i < copied cycle
67  Case opcode[i] == 0x9d
67  Case opcode[i] == 0xcf
68  Return 1
73  Case opcode[i] == 0x66
73  Case opcode[i] == 0x67
74  Continue
76  Case opcode[i] == 0x26
76  Case opcode[i] == 0x2e
77  Case opcode[i] == 0x36
77  Case opcode[i] == 0x3e
78  Case opcode[i] == 0x64
78  Case opcode[i] == 0x65
79  Case opcode[i] == 0xf0
79  Case opcode[i] == 0xf2
79  Case opcode[i] == 0xf3
80  Continue
83  Case opcode[i] == 0x40...0x4f
84  If Not user_64bit_mode(regs) Then Return 0
88  Continue
100  Case opcode[i] == 0x9c
101  Default
102  Return 0
105  Return 0
Caller
NameDescribe
enable_single_stepEnable single-stepping. Return nonzero if user mode is not using TF itself.