/*++ Copyright (c) 1992 Microsoft Corporation Module Name: .c Abstract: WinDbg Extension Api Revision History: --*/ #include "precomp.h" DECLARE_API( help ) { dprintf("acpiinf - Displays ACPI Information structure\n" ); dprintf("acpiirqarb - Displays ACPI IRQ Arbiter data\n" ); dprintf("ahcache [flags] - Displays application compatibility cache\n"); dprintf("amli [params] - Use AMLI debugger extensions\n"); dprintf("apc [[proc|thre]
] - Displays Asynchronous Procedure Calls\n"); dprintf("arbiter [flags] - Displays all arbiters and arbitrated ranges\n"); dprintf("arblist
[flags] - Dump set of resources being arbitrated\n"); dprintf("bcb
- Display the Buffer Control Block\n"); dprintf("blockeddrv - Dumps the list of blocked drivers in the system\n"); dprintf("bpid - Tells winlogon to do a user-mode break into\n"); dprintf(" process \n"); dprintf("bugdump - Display bug check dump data\n" ); dprintf("bushnd [address] - Dump a HAL \"BUS HANDLER\" structure\n"); dprintf("ca
[flags] - Dump the control area of a section\n"); dprintf("calldata - Dump call data hash table\n" ); dprintf("cchelp - Display Cache Manager debugger extensions\n" ); dprintf("chklowmem - Tests if PAE system booted with /LOWMEM switch\n" ); dprintf("cmreslist - Dump CM resource list\n" ); dprintf("cpuinfo [id] - Displays CPU information for specified processor\n"); dprintf("dbgprint - Displays contents of DbgPrint buffer\n"); dprintf("dblink
[count] [bias] - Dumps a list via its blinks\n"); dprintf("dflink
[count] [bias] - Dumps a list via its flinks\n"); dprintf("deadlock [1] - Display Driver Verifier deadlock detection info\n"); dprintf("defwrites - Dumps deferred write queue & cache write\n"); dprintf(" throttle analysis\n"); dprintf("devext [
] - Dump device extension of specified type\n"); dprintf("devinst - dumps the device reference table\n"); dprintf("devnode [flags] [service] - Dump the device node\n"); dprintf("devobj - Dump the device object and Irp queue\n"); dprintf("devstack - Dump device stack associated w/device object\n"); dprintf("dma [ [flags]] - Displays Direct Memory Access subsystem info\n"); dprintf("dpa [options] - Displays pool allocations\n"); dprintf("driveinfo [:] - Dump drive volume information for specific drive\n"); dprintf("drivers - Display info about loaded system modules\n"); dprintf("drvobj [flags] - Dump the driver object and related information\n"); dprintf("dss [address] - Display Session Space\n"); dprintf("e820reslist - Dump an ACPI_BIOS_MULTI_NODE resource list\n"); dprintf("errlog - Dump the error log contents\n"); dprintf("exqueue [flags] - Dump the ExWorkerQueues\n"); dprintf("exrlog - Display the exception log\n"); dprintf("facs - Dumps the Firmware ACPI Control Structure\n"); dprintf("fadt - Dumps the Fixed ACPI Description Table\n"); dprintf("filecache - Dumps information about the file system cache\n"); dprintf("filelock
- Dump a file lock structure - address is either\n"); dprintf(" the filelock or a fileobject\n"); dprintf("filetime - Dumps 64-bit FILETIME as a human-readable time\n"); dprintf("finddata
- Find cached data at given offset in FILE_OBJECT\n"); dprintf("fpsearch
- Find a freed special pool allocation\n"); dprintf("frag [flags] - Kernel mode pool fragmentation\n"); dprintf("frozen - Show processor states (Current,Frozen,Running)\n"); dprintf("gbl - Dumps the ACPI Global Lock\n"); dprintf("gentable
[flags] - Dumps the given rtl_generic_table\n"); dprintf("handle - Dumps handle for a process\n"); dprintf("help - Displays this list\n" ); dprintf("hidppd
- Dump Preparsed Data of HID device\n"); // VERIFY: dprintf("htrace [handle [process]] - Display handle tracing info\n"); dprintf("ib - Read a byte from an I/O port\n"); dprintf("id - Read a double-word from an I/O port\n"); dprintf("idt - Dump ISRs referenced by each IDT entry\n"); dprintf("ioresdes
- Display IO_RESOURCE_DESCRIPTOR structure\n"); dprintf("ioreslist - Dump IO resource requirements list\n" ); dprintf("iw - Read a word from an I/O port\n"); dprintf("irp
- Dump IRP at specified address\n"); dprintf("irpfind [pooltype] [restart addr] [
]\n"); dprintf(" - Search pool for active IRPs\n"); dprintf("irql [processor] - Display current IRQL for processor\n"); dprintf("isainfo
[flags] - Display ISA Bus and Card info\n"); // VERIFY: dprintf("iovirp - Display IOVerifier IRP data\n"); dprintf("job
[flags] - Dump JobObject at address, processes in job\n"); dprintf("lbt - Dump legacy bus information table\n"); dprintf("loadermemorylist
- Display OSLOADER memory allocation list\n"); dprintf("locks [-v]
- Dump kernel mode resource locks\n"); dprintf("logonsession [ [level]] - Display logon sessions\n"); dprintf("lookaside
- Dump lookaside lists\n"); dprintf("lpc - Dump lpc ports and messages\n"); dprintf("mapic - Dumps the ACPI Multiple APIC Table\n"); dprintf("mca
- Display Machine Check Architecture registers\n"); dprintf("memusage - Dumps the page frame database table\n"); dprintf("nsobj
- Dumps an ACPI Namespace Object\n"); dprintf("nstree [
] - Dumps an ACPI Namespace Object tree\n"); dprintf("numa - Display Non-Uniform Memory Access nodes\n"); dprintf("numa_hal - Display HAL NUMA info\n"); dprintf("ob - Write a byte to an I/O port\n"); dprintf("object <-r | Path | address | 0 TypeName> - Dumps an object manager object\n"); dprintf("obtrace - Display object trace information\n"); dprintf("od - Write a double-word to an I/O port\n"); dprintf("openmaps - Dumps the active views for a shared cache map\n"); dprintf("ow - Write a word to an I/O port\n"); dprintf("pcitree - Dump the PCI tree structure\n"); dprintf("pcm
- Detects valid address for Private Cache Map\n"); dprintf("pcmcia [1] - Displays PCMCIA devices and their states\n"); dprintf("pcr [processor] - Dumps the Processor Control Registers\n"); dprintf("pfn - Dumps the page frame database entry for the\n"); dprintf(" physical page\n"); dprintf("pnpaction - Dump queued PNP actions\n"); dprintf("pnptriage - Attempt PnP triage\n"); dprintf("pnpevent - Dump PNP events\n"); dprintf("pocaps - Dumps System Power Capabilities.\n"); dprintf("podev - Dumps power relevent data in device object\n"); dprintf("polist [] - Dumps power Irp serial list entries\n"); dprintf("ponode - Dumps power Device Node stack (devnodes in\n"); dprintf(" power order)\n"); dprintf("pool
[detail] - Dump kernel mode heap\n"); dprintf("poolfind Tag [pooltype] - - Finds occurrences of the specified Tag\n"); dprintf("poolused [flags [TAG]] - Dump usage by pool tag\n"); dprintf("popolicy [
[flags]] - Dumps System Power Policy.\n"); dprintf("poproc [
[flags]] - Dumps Processor Power State.\n"); dprintf("poprocpolicy [
[flags]] - Dumps Processor Power Policy.\n"); dprintf("poreqlist [] - Dumps PoRequestedPowerIrp created Power Irps\n"); dprintf("portcls [flags] - Dumps portcls data for portcls bound devobj\n"); dprintf("potrigger
- Dumps POP_ACTION_TRIGGER.\n"); dprintf("prcb [processor] - Displays the Processor Control Block\n"); dprintf("process [
] [flags] [image name] - Dumps process at specified address\n"); dprintf("pte
- Dump PDE and PTE for the entered address\n"); dprintf("ptov PhysicalPageNumber - Dump all valid physical<->virtual mappings\n"); dprintf(" for the given page directory\n"); dprintf("qlocks - Dumps state of all queued spin locks\n"); dprintf("range - Dump RTL_RANGE_LIST\n"); dprintf("ready - Dumps state of all READY system threads\n"); dprintf("reg [ [params]] - Registry extensions\n"); dprintf("rellist [flags] - Dump PNP relation lists\n"); dprintf("remlock - Dump a remove lock structure\n"); dprintf("rsdt - Displays the ACPI Root System Description Table\n"); dprintf("running [-t] [-i] - Displays the running threads in the system\n"); dprintf("scm
- Detects valid address for Shared Cache Map\n"); dprintf("session [-?] [-s] [flags] [image name] - Dumps sessions\n"); dprintf("sprocess [ [flags]] - Displays session processes\n"); dprintf("srb
- Dump Srb at specified address\n"); dprintf("stacks - Dump summary of current kernel stacks\n"); dprintf("sysptes - Dumps the system PTEs\n"); dprintf("thread [
[flags]] - Dump current thread, specified thread, or stack\n"); dprintf(" containing address\n"); dprintf("timer - Dumps timer tree\n"); dprintf("tokenleak [<0>|<1> ]\n"); dprintf(" - Activates token leak tracking\n"); dprintf("tunnel
- Dump a file property tunneling cache\n"); dprintf("tz [
] - Dumps Thermal Zones. No Args dumps All TZs\n"); dprintf("tzinfo
- Dumps Thermal Zone Information.\n"); dprintf("ubc [*|] - Clears a user-space breakpoint\n"); dprintf("ubd [*|] - Disables a user-space breakpoint\n"); dprintf("ube [*|] - Enables a user-space breakpoint\n"); dprintf("ubl - Lists all user-space breakpoint\n"); dprintf("ubp
- Sets a user-space breakpoint\n"); dprintf("vad - Dumps VADs\n"); dprintf("verifier - Displays Driver Verifier settings and status\n"); dprintf("version - Version of extension dll\n"); dprintf("vm - Dumps virtual management values\n"); dprintf("vpb
- Dumps volume parameter block\n"); dprintf("vtop DirBase address - Dumps physical page for virtual address\n"); dprintf("wdmaud
- Dumps wdmaud data for structures\n"); dprintf("whatperftime - Converts performance time to HH:MM:SS.mmm\n"); dprintf("whattime - Converts ticks to HH:MM:SS.mmm\n"); dprintf("wsle [ [address]] - Display Working Set List Entries\n"); dprintf("zombies [ [address]] - Find all zombie processes\n"); switch (TargetMachine) { case IMAGE_FILE_MACHINE_I386: dprintf("\n"); dprintf("X86-specific:\n\n"); dprintf("apic [base] - Dump local apic\n"); dprintf("apicerr - Dumps local apic error log\n"); dprintf("callback
[num] - Dump callback frames for specified thread\n"); dprintf("halpte - Displays HAL PTE ranges\n"); dprintf("ioapic [base] - Dump io apic\n"); dprintf("mps - Dumps MPS BIOS structures\n"); dprintf("mtrr - Dumps MTTR\n"); dprintf("npx [base] - Dumps NPX save area\n"); dprintf("pciir - Dumps the Pci Irq Routing Table\n"); dprintf("pic - Dumps PIC(8259) information\n"); dprintf("smt - Display Simultaneous Multi-Threading processor\n"); dprintf(" capabilities\n"); break; case IMAGE_FILE_MACHINE_IA64: dprintf("\n"); dprintf("IA64-specific:\n\n"); dprintf("btb - Dump branch trace buffer for current processor\n"); dprintf("bth - Dump branch trace history for target processor\n"); dprintf("dcr
- Dump dsr register at specified address\n"); dprintf("fwver - Display IA64 firmware version\n"); dprintf("ih - Dump interrupt history for target processor\n"); dprintf("ihs - Dump interrupt history for target processor with symbols\n"); dprintf("isr
- Dump isr register at specified address\n"); dprintf("ivt - Display IA64 Interrupt Vector Table\n"); dprintf("pars
- Dump application registers file at specified address\n"); dprintf("pcrs
- Dump control registers file at specified address\n"); dprintf("pmc [-opt]
- Dump pmc register at specified address\n"); dprintf("pmssa
- Dump minstate save area at specified address\n"); dprintf("psp
- Dump psp register at specified address\n"); break; default: break; } dprintf("\nType \".hh [command]\" for more detailed help\n"); return S_OK; }