Function report |
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 activity | Download SCCT | Chinese |
Name:__show_regs
Proto:void __show_regs(struct pt_regs *regs, enum show_regs_mode mode)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct pt_regs * | regs | |
enum show_regs_mode | mode |
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) |
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 |
87 | cr4 = __read_cr4() |
88 | printk(he default kernel loglevel "CR0: %08lx CR2: %08lx CR3: %08lx CR4: %08lx\n", cr0, cr2, cr3, cr4) |
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) |
Name | Describe |
---|---|
show_regs_if_on_stack | |
oops_end | |
show_regs |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |