Home
last modified time | relevance | path

Searched refs:kprintf (Results 1 – 25 of 36) sorted by relevance

12

/sys/amd64/
Ddebug.c95 kprintf("Invalid CPU number\n"); in Debug_Registers()
101 kprintf("Interrupt %d Error Code: %016llx\n", in Debug_Registers()
103 kprintf("cr0: %016llx cr2: %016llx\n", in Debug_Registers()
105 kprintf("cr3: %016llx cr4: %016llx\n", in Debug_Registers()
107 kprintf("dr0: %016llx dr1: %016llx dr2: %016llx\n", in Debug_Registers()
109 kprintf("dr3: %016llx dr6: %016llx dr7: %016llx\n", in Debug_Registers()
111 kprintf("rip: %04x:%016llx rsp: %04x:%016llx\n", in Debug_Registers()
113 kprintf("rflags: %016llx ds: %04x es: %04x fs: %04x gs: %04x\n", in Debug_Registers()
115 kprintf("rax: %016llx rbx: %016llx rcx: %016llx\n", in Debug_Registers()
117 kprintf("rdx: %016llx rsi: %016llx rdi: %016llx\n", in Debug_Registers()
[all …]
Dtrap.c37 kprintf("Initializing IDT... "); in Trap_Init()
85 kprintf("Done!\n"); in Trap_Init()
97 kprintf("CPU %d\n", CPU()); in Trap_Dump()
98 kprintf("Interrupt %d Error Code: %016llx\n", in Trap_Dump()
100 kprintf("cr0: %016llx cr2: %016llx\n", in Trap_Dump()
102 kprintf("cr3: %016llx cr4: %016llx\n", in Trap_Dump()
104 kprintf("dr0: %016llx dr1: %016llx dr2: %016llx\n", in Trap_Dump()
106 kprintf("dr3: %016llx dr6: %016llx dr7: %016llx\n", in Trap_Dump()
108 kprintf("rip: %04x:%016llx rsp: %04x:%016llx\n", in Trap_Dump()
110 kprintf("rflags: %016llx ds: %04x es: %04x fs: %04x gs: %04x\n", in Trap_Dump()
[all …]
Dlapic.c152 kprintf("IPI not delivered?\n"); in LAPIC_Broadcast()
170 kprintf("IPI not delivered?\n"); in LAPIC_BroadcastNMI()
205 kprintf("LAPIC: CPU %d found at 0x%016llx\n", LAPIC_CPU(), base); in LAPIC_Init()
264 kprintf("LAPIC %d\n", LAPIC_CPU()); in Debug_LAPIC()
265 kprintf("VERSION: %08x\n", LAPIC_Read(LAPIC_VERSION)); in Debug_LAPIC()
266 kprintf("ESR: %08x\n", LAPIC_Read(LAPIC_ESR)); in Debug_LAPIC()
267 kprintf("ICRLO: %08x\n", LAPIC_Read(LAPIC_ICR_LO)); in Debug_LAPIC()
268 kprintf("ICRHI: %08x\n", LAPIC_Read(LAPIC_ICR_HI)); in Debug_LAPIC()
269 kprintf("SIV: %08x\n", LAPIC_Read(LAPIC_SIV)); in Debug_LAPIC()
270 kprintf("ERROR: %08x\n", LAPIC_Read(LAPIC_LVT_ERROR)); in Debug_LAPIC()
[all …]
Dmbentry.c90 kprintf("Invalid magic number: 0x%x\n", magic); in MachineBoot_Entry()
95 kprintf("flags = 0x%x\n", (uint64_t) mbi->flags); in MachineBoot_Entry()
99 kprintf("mem_lower = %uKB, mem_upper = %uKB\n", in MachineBoot_Entry()
104 kprintf("boot_device = 0x%x\n", (unsigned) mbi->boot_device); in MachineBoot_Entry()
108 kprintf("cmdline = %s\n", (char *)(uintptr_t)mbi->cmdline); in MachineBoot_Entry()
116 kprintf("mods_count = %d, mods_addr = 0x%x\n", in MachineBoot_Entry()
121 kprintf(" mod_start = 0x%x, mod_end = 0x%x, cmdline = %s\n", in MachineBoot_Entry()
130 kprintf("Both bits 4 and 5 are set.\n"); in MachineBoot_Entry()
139 kprintf("multiboot_aout_symbol_table: tabsize = 0x%0x\n" in MachineBoot_Entry()
151 kprintf("multiboot_elf_sec: num = %u, size = 0x%x," in MachineBoot_Entry()
[all …]
Ddisasm.c1070kprintf("%s", db_reg[rex != 0 ? 1 : 0][(size == LONG && (rex & REX_W)) ? QUAD : size][addrp->disp]… in db_print_address()
1075 kprintf("%s:", seg); in db_print_address()
1081 kprintf("("); in db_print_address()
1083 kprintf("%s", addrp->base); in db_print_address()
1085 kprintf(",%s,%d", addrp->index, 1<<addrp->ss); in db_print_address()
1086 kprintf(")"); in db_print_address()
1108 kprintf("<bad instruction>"); in db_disasm_esc()
1115 kprintf("%s", fp->f_name); in db_disasm_esc()
1118 kprintf("s"); in db_disasm_esc()
1121 kprintf("l"); in db_disasm_esc()
[all …]
Dmp.c62 kprintf("Starting processor %d\n", procNo); in MPBootAP()
68 kprintf("CR3: %016llx RSP: %016llx\n", args[0], args[1]); in MPBootAP()
80 kprintf("Processor %d did not respond in %d ms\n", in MPBootAP()
94 kprintf("Booting on CPU %u\n", CPU()); in MP_Init()
121 kprintf("AP %d booted!\n", CPU()); in MP_InitAP()
224 kprintf("Average CrossCall Latency: %llu ns\n", in Debug_CrossCall()
239 kprintf("CPU %d: %s\n", c, CPUStateToString[cpus[c].state]); in Debug_CPUS()
249 kprintf("CPU %d\n", CPU()); in Debug_CPU()
Dmachine.c59 kprintf("Initializing GDT... "); // Caused pagefault?? in Machine_GDTInit()
84 kprintf("Done!\n"); in Machine_GDTInit()
98 kprintf("Initializing TSS... "); in Machine_TSSInit()
118 kprintf("Done!\n"); in Machine_TSSInit()
130 kprintf("Initializing Syscall... "); in Machine_SyscallInit()
137 kprintf("Done!\n"); in Machine_SyscallInit()
234 kprintf("Couldn't create idle thread!\n"); in Machine_Init()
Dioapic.c60 kprintf("IOAPIC: ID:%d Max Interrupts: %d\n", id, maxInts); in IOAPIC_Init()
88 kprintf("IOAPIC ID: %08x\n", IOAPIC_Read(IOAPICID)); in Debug_IOAPIC()
89 kprintf("IOAPIC VERSION: %08x\n", IOAPIC_Read(IOAPICVER)); in Debug_IOAPIC()
95 kprintf("%02x: %08x %08x\n", i, irqInfo, cpuInfo); in Debug_IOAPIC()
Dpmap.c23 kprintf("Initializing PMAP ... "); in PMap_Init()
63 kprintf("Done!\n"); in PMap_Init()
364 kprintf("Map failed to allocate memory!\n"); in PMap_Map()
396 kprintf("Unmap tried to allocate memory!\n"); in PMap_Unmap()
435 kprintf("Map failed to allocate memory!\n"); in PMap_AllocMap()
489 kprintf("SystemLMap failed to allocate memory!\n"); in PMap_SystemLMap()
523 kprintf("SystemMap failed to allocate memory!\n"); in PMap_SystemMap()
560 kprintf("Root: %016llx\n", (uint64_t)space->root); in PMap_DumpFull()
569 kprintf("Level 1: %016llx\n", (uint64_t)pte); in PMap_DumpFull()
578 kprintf("Level 2: %016llx\n", (uint64_t)pte2); in PMap_DumpFull()
[all …]
Dxmem.c33 kprintf("Initializing XMEM ... "); in XMem_Init()
43 kprintf("Done!\n"); in XMem_Init()
122 kprintf("Region Nr: %16s %16s\n", "Base", "Length"); in Debug_XMemStats()
126 kprintf("Region %2d: %016llx %016llx\n", r, in Debug_XMemStats()
/sys/kern/
Ddebug.c41 kprintf("%08lx ", (uintptr_t)data+ix); in Debug_PrintHex()
48 kprintf(" "); in Debug_PrintHex()
54 kprintf("%02X ", (unsigned char)data[ixc]); in Debug_PrintHex()
56 kprintf(" |"); in Debug_PrintHex()
63 kprintf(" "); in Debug_PrintHex()
71 kprintf("%c", c); in Debug_PrintHex()
73 kprintf("."); in Debug_PrintHex()
75 kprintf("|"); in Debug_PrintHex()
76 kprintf("\n"); in Debug_PrintHex()
111 kprintf("Debug_GetValue: Unknown size parameter '%d'\n", size); in Debug_GetValue()
[all …]
Dcopy.c41 kprintf("Copy_In: address exceeds userspace top\n"); in Copy_In()
47 kprintf("Copy_In: length exceeds userspace top\n"); in Copy_In()
77 kprintf("Copy_Out: address exceeds userspace top\n"); in Copy_Out()
83 kprintf("Copy_Out: length exceeds userspace top\n"); in Copy_Out()
113 kprintf("Copy_StrIn: address exceeds userspace top\n"); in Copy_StrIn()
119 kprintf("Copy_StrIn: length exceeds userspace top\n"); in Copy_StrIn()
149 kprintf("Copy_StrOut: address exceeds userspace top\n"); in Copy_StrOut()
155 kprintf("Copy_StrOut: length exceeds userspace top\n"); in Copy_StrOut()
Dsysctl.c88 kprintf("Sysctl node is read-only!\n"); in SysCtl_SetObject()
116 kprintf("%-20s %s\n", "Name", "Description"); in Debug_SysCtl()
118 kprintf("%-20s %s\n", SYSCTLTable[i].path, SYSCTLTable[i].description); in Debug_SysCtl()
125 kprintf("Usage: sysctl NODE [VALUE]\n"); in Debug_SysCtl()
131 kprintf("Unknown sysctl node!\n"); in Debug_SysCtl()
139 kprintf("%s: %s\n", argv[1], val->value); in Debug_SysCtl()
144 kprintf("%s: %ld\n", argv[1], val->value); in Debug_SysCtl()
149 kprintf("%s: %s\n", argv[1], val->value ? "true" : "false"); in Debug_SysCtl()
159 kprintf("Sysctl node is read-only!\n"); in Debug_SysCtl()
181 kprintf("Invalid value!\n"); in Debug_SysCtl()
Dprocess.c259 kprintf("title %s\n", proc->title); in Process_Dump()
260 kprintf("pid %llu\n", proc->pid); in Process_Dump()
261 kprintf("state %s\n", stateStrings[proc->procState]); in Process_Dump()
262 kprintf("space %016llx\n", proc->space); in Process_Dump()
263 kprintf("threads %llu\n", proc->threads); in Process_Dump()
264 kprintf("refCount %d\n", proc->refCount); in Process_Dump()
265 kprintf("nextFD %llu\n", proc->nextFD); in Process_Dump()
281 kprintf("Process: %d(%016llx)\n", proc->pid, proc); in Debug_Processes()
295 kprintf("Current Process State:\n"); in Debug_ProcInfo()
Dthread.c339 kprintf("space %016llx\n", thr->space); in Thread_Dump()
340 kprintf("kstack %016llx\n", thr->kstack); in Thread_Dump()
341 kprintf("tid %llu\n", thr->tid); in Thread_Dump()
342 kprintf("refCount %d\n", thr->refCount); in Thread_Dump()
343 kprintf("state %s\n", states[thr->schedState]); in Thread_Dump()
344 kprintf("ctxswtch %llu\n", thr->ctxSwitches); in Thread_Dump()
345 kprintf("utime %llu\n", thr->userTime); in Thread_Dump()
346 kprintf("ktime %llu\n", thr->kernTime); in Thread_Dump()
347 kprintf("wtime %llu\n", thr->waitTime); in Thread_Dump()
363 kprintf("Running Thread CPU %d: %d(%016llx) %d\n", i, thr->tid, thr, thr->ctxSwitches); in Debug_Threads()
[all …]
Dprintf.c210 int kprintf(const char *fmt, ...) in kprintf() function
231 kprintf("PC %lx FP %lx\n", __builtin_return_address(0), __builtin_frame_address(0)); in Debug_Assert()
232 kprintf("PC %lx FP %lx\n", __builtin_return_address(1), __builtin_frame_address(1)); in Debug_Assert()
233 kprintf("PC %lx FP %lx\n", __builtin_return_address(2), __builtin_frame_address(2)); in Debug_Assert()
234 kprintf("PC %lx FP %lx\n", __builtin_return_address(3), __builtin_frame_address(3)); in Debug_Assert()
235 kprintf("PC %lx FP %lx\n", __builtin_return_address(4), __builtin_frame_address(4)); in Debug_Assert()
236 kprintf("PC %lx FP %lx\n", __builtin_return_address(5), __builtin_frame_address(5)); in Debug_Assert()
Dsga.c34 kprintf("--- SGArray Begin ---\n"); in SGArray_Dump()
37 kprintf("%d: %016llx %016llx\n", i, sga->entries[i].offset, in SGArray_Dump()
40 kprintf("--- SGArray End ---\n"); in SGArray_Dump()
Dspinlock.c87 kprintf("Spinlock_Lock(%s): waiting for over a second!\n", lock->name); in Spinlock_Lock()
138 kprintf("%-36s Locked CPU Count WaitTime LockTime\n", "Lock Name"); in Debug_Spinlocks()
141 kprintf("%-36s %6llu %3llu %8llu %12llu %12llu\n", lock->name, in Debug_Spinlocks()
157 kprintf("Lock Stack:\n"); in Debug_LockStack()
159 kprintf(" %s\n", lock->name); in Debug_LockStack()
Dpalloc.c280 kprintf("Total Pages: %llu\n", totalPages); in Debug_PAllocStats()
281 kprintf("Allocated Pages: %llu\n", totalPages - freePages); in Debug_PAllocStats()
282 kprintf("Free Pages: %llu\n", freePages); in Debug_PAllocStats()
294 kprintf("Magic Corrupted! (%lx)\n", it->magic); in Debug_PAllocDump()
295 kprintf("Free %lx\n", (uintptr_t)it); in Debug_PAllocDump()
Dsemaphore.c108 kprintf("%-36s Count\n", "Lock Name"); in Debug_Semaphores()
112 kprintf("%-36s %8d\n", sema->name, sema->count); in Debug_Semaphores()
114 kprintf("waiting: %d:%d\n", thr->proc->pid, thr->tid); in Debug_Semaphores()
Ddisk.c67 kprintf("disk%lld.%lld: %lld Sectors\n", in Debug_Disks()
83 kprintf("dumpdisk requires 4 arguments!\n"); in Debug_DumpDisk()
97 kprintf("Reading Sector %lld from disk%lld.%lld\n", sector, ctrlNo, diskNo); in Debug_DumpDisk()
/sys/dev/
Dahci.c198 kprintf("Unsupported SATA Controller PROGIF=%02x\n", progif); in AHCI_Init()
212 kprintf("AHCI: Found %s\n", deviceList[deviceIdx].name); in AHCI_Init()
226 kprintf("CAP: 0x%08x\n", hc->cap); in AHCI_Dump()
227 kprintf("GHC: 0x%08x\n", hc->ghc); in AHCI_Dump()
228 kprintf("IS: 0x%08x\n", hc->is); in AHCI_Dump()
229 kprintf("PI: 0x%08x\n", hc->pi); in AHCI_Dump()
230 kprintf("VS: 0x%08x\n", hc->vs); in AHCI_Dump()
238 kprintf("Port %d\n", port); in AHCI_DumpPort()
239 kprintf("CLBA: 0x%016llx\n", p->clba); in AHCI_DumpPort()
240 kprintf("FB: 0x%016llx\n", p->fb); in AHCI_DumpPort()
[all …]
Dpci.c29 kprintf("PCI: Initializing ...\n"); in PCI_Init()
31 kprintf("PCI: Initialization Done!\n"); in PCI_Init()
148 kprintf("PCI: (%d,%d,%d) Host Bridge (%04x:%04x)\n", in PCICheckFunction()
151 kprintf("PCI: (%d,%d,%d) ISA Bridge (%04x:%04x)\n", in PCICheckFunction()
154 kprintf("PCI: (%d,%d,%d) PCI-PCI Bridge (%04x:%04x)\n", in PCICheckFunction()
158 kprintf("PCI: (%d,%d,%d) Other Bridge (%04x:%04x)\n", in PCICheckFunction()
163 kprintf("PCI: (%d,%d,%d) SATA Controller (%04x:%04x)\n", in PCICheckFunction()
168 kprintf("PCI: (%d,%d,%d) IDE Controller (%04x:%04x)\n", in PCICheckFunction()
172 kprintf("PCI: (%d,%d,%d) Ethernet (%04x:%04x)\n", in PCICheckFunction()
176 kprintf("PCI: (%d,%d,%d) VGA (%04x:%04x)\n", in PCICheckFunction()
[all …]
De1000.c183 kprintf("E1000: Found %s\n", deviceList[deviceIdx].name); in E1000_Init()
219 kprintf("%08x\n", val); in E1000_EEPROM_Read()
228 kprintf("TXPOLL\n"); in E1000_TXPoll()
252 kprintf("E1000: Error in RX Queue %x\n", in E1000_RXPoll()
275 kprintf("E1000 (%d:%d) Interrupt\n", in E1000_Interrupt()
295 kprintf("underrun %u %u\n", MMIO_Read32(dev, E1000_REG_RDH), dev->rxTail); in E1000_Interrupt()
307 kprintf("E1000: Unhandled cause %08x\n", cause); in E1000_Interrupt()
463 kprintf("E1000: BAR%d base=%08x size=%08x %s\n", in E1000_Configure()
474 kprintf("E1000: IRQ %d\n", dev.irq); in E1000_Configure()
480 kprintf("E1000: MAC XX:XX:XX:XX:XX:XX\n"); in E1000_Configure()
/sys/include/
Dkassert.h22 int kprintf(const char *fmt, ...);
28 #define Alert(_module, _format, ...) kprintf(#_module ": " _format, ##__VA_ARGS__)
30 #define Warning(_module, _format, ...) kprintf(#_module ": " _format, ##__VA_ARGS__)
34 kprintf(#_module ": " _format, ##__VA_ARGS__); \
39 kprintf(#_module ": " _format, ##__VA_ARGS__); \
44 kprintf(#_module ": " _format, ##__VA_ARGS__); \

12