函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\process_32.c Create Date:2022-07-27 08:29:04
Last Modify:2022-05-18 16:43:57 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__show_regs

函数原型:void __show_regs(struct pt_regs *regs, enum show_regs_mode mode)

返回类型:void

参数:

类型参数名称
struct pt_regs *regs
enum show_regs_modemode
63  cr0等于0L, cr2等于0L, cr3等于0L, cr4等于0L
67  如果ser_mode(regs) determines whether a register set came from user* modegs等于x86-32 user GS accessors:(regs)
69  否则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  如果mode不等于SHOW_REGS_ALL则返回
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  如果d0恒等于0且d1恒等于0且d2恒等于0且d3恒等于0且d6恒等于Define reserved bits in DR6 which are always set to 1 d7恒等于0x400则返回
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)
调用者
名称描述
show_regs_if_on_stack
oops_end
show_regs