Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\process_32.c Create Date:2022-07-28 07:29:49
Last Modify:2022-05-18 16:43:57 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__show_regs

Proto:void __show_regs(struct pt_regs *regs, enum show_regs_mode mode)

Type:void

Parameter:

TypeParameterName
struct pt_regs *regs
enum show_regs_modemode
63  cr0 = 0L , cr2 = 0L , cr3 = 0L , cr4 = 0L
67  If ser_mode(regs) determines whether a register set came from user* mode Then gs = x86-32 user GS accessors:(regs)
69  Else Save a segment register away:(gs, gs)
72  show_ip(regs, he default kernel loglevel )
74  printk(he default kernel loglevel "EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n", ax, bx, cx, dx)
76  printk(he default kernel loglevel "ESI: %08lx EDI: %08lx EBP: %08lx ESP: %08lx\n", si, di, bp, sp)
78  printk(he default kernel loglevel "DS: %04x ES: %04x FS: %04x GS: %04x SS: %04x EFLAGS: %08lx\n", (u16)ds, (u16)es, (u16)fs, gs, ss, flags)
81  If mode != SHOW_REGS_ALL Then Return
84  cr0 = read_cr0()
85  cr2 = read_cr2()
86  cr3 = Careful! CR3 contains more than just an address. You probably want* read_cr3_pa() instead.
87  cr4 = __read_cr4()
88  printk(he default kernel loglevel "CR0: %08lx CR2: %08lx CR3: %08lx CR4: %08lx\n", cr0, cr2, cr3, cr4)
91  These special macros can be used to get or set a debugging register(d0, 0)
92  These special macros can be used to get or set a debugging register(d1, 1)
93  These special macros can be used to get or set a debugging register(d2, 2)
94  These special macros can be used to get or set a debugging register(d3, 3)
95  These special macros can be used to get or set a debugging register(d6, 6)
96  These special macros can be used to get or set a debugging register(d7, 7)
99  If d0 == 0 && d1 == 0 && d2 == 0 && d3 == 0 && d6 == Define reserved bits in DR6 which are always set to 1 && d7 == 0x400 Then Return
103  printk(he default kernel loglevel "DR0: %08lx DR1: %08lx DR2: %08lx DR3: %08lx\n", d0, d1, d2, d3)
105  printk(he default kernel loglevel "DR6: %08lx DR7: %08lx\n", d6, d7)
Caller
NameDescribe
show_regs_if_on_stack
oops_end
show_regs