Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

222 lines
15 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. .c
  5. Abstract:
  6. WinDbg Extension Api
  7. Revision History:
  8. --*/
  9. #include "precomp.h"
  10. DECLARE_API( help )
  11. {
  12. dprintf("acpiinf - Displays ACPI Information structure\n" );
  13. dprintf("acpiirqarb - Displays ACPI IRQ Arbiter data\n" );
  14. dprintf("ahcache [flags] - Displays application compatibility cache\n");
  15. dprintf("amli <command|?> [params] - Use AMLI debugger extensions\n");
  16. dprintf("apc [[proc|thre] <address>] - Displays Asynchronous Procedure Calls\n");
  17. dprintf("arbiter [flags] - Displays all arbiters and arbitrated ranges\n");
  18. dprintf("arblist <address> [flags] - Dump set of resources being arbitrated\n");
  19. dprintf("bcb <address> - Display the Buffer Control Block\n");
  20. dprintf("blockeddrv - Dumps the list of blocked drivers in the system\n");
  21. dprintf("bpid <pid> - Tells winlogon to do a user-mode break into\n");
  22. dprintf(" process <pid>\n");
  23. dprintf("bugdump - Display bug check dump data\n" );
  24. dprintf("bushnd [address] - Dump a HAL \"BUS HANDLER\" structure\n");
  25. dprintf("ca <address> [flags] - Dump the control area of a section\n");
  26. dprintf("calldata <table name> - Dump call data hash table\n" );
  27. dprintf("cchelp - Display Cache Manager debugger extensions\n" );
  28. dprintf("chklowmem - Tests if PAE system booted with /LOWMEM switch\n" );
  29. dprintf("cmreslist <CM Resource List> - Dump CM resource list\n" );
  30. dprintf("cpuinfo [id] - Displays CPU information for specified processor\n");
  31. dprintf("dbgprint - Displays contents of DbgPrint buffer\n");
  32. dprintf("dblink <address> [count] [bias] - Dumps a list via its blinks\n");
  33. dprintf("dflink <address> [count] [bias] - Dumps a list via its flinks\n");
  34. dprintf("deadlock [1] - Display Driver Verifier deadlock detection info\n");
  35. dprintf("defwrites - Dumps deferred write queue & cache write\n");
  36. dprintf(" throttle analysis\n");
  37. dprintf("devext [<address> <type>] - Dump device extension of specified type\n");
  38. dprintf("devinst - dumps the device reference table\n");
  39. dprintf("devnode <device node> [flags] [service] - Dump the device node\n");
  40. dprintf("devobj <device> - Dump the device object and Irp queue\n");
  41. dprintf("devstack <device> - Dump device stack associated w/device object\n");
  42. dprintf("dma [<adapter> [flags]] - Displays Direct Memory Access subsystem info\n");
  43. dprintf("dpa [options] - Displays pool allocations\n");
  44. dprintf("driveinfo <drive>[:] - Dump drive volume information for specific drive\n");
  45. dprintf("drivers - Display info about loaded system modules\n");
  46. dprintf("drvobj <driver> [flags] - Dump the driver object and related information\n");
  47. dprintf("dss [address] - Display Session Space\n");
  48. dprintf("e820reslist <List> - Dump an ACPI_BIOS_MULTI_NODE resource list\n");
  49. dprintf("errlog - Dump the error log contents\n");
  50. dprintf("exqueue [flags] - Dump the ExWorkerQueues\n");
  51. dprintf("exrlog - Display the exception log\n");
  52. dprintf("facs - Dumps the Firmware ACPI Control Structure\n");
  53. dprintf("fadt - Dumps the Fixed ACPI Description Table\n");
  54. dprintf("filecache - Dumps information about the file system cache\n");
  55. dprintf("filelock <address> - Dump a file lock structure - address is either\n");
  56. dprintf(" the filelock or a fileobject\n");
  57. dprintf("filetime - Dumps 64-bit FILETIME as a human-readable time\n");
  58. dprintf("finddata <address> <offset> - Find cached data at given offset in FILE_OBJECT\n");
  59. dprintf("fpsearch <address> - Find a freed special pool allocation\n");
  60. dprintf("frag [flags] - Kernel mode pool fragmentation\n");
  61. dprintf("frozen - Show processor states (Current,Frozen,Running)\n");
  62. dprintf("gbl - Dumps the ACPI Global Lock\n");
  63. dprintf("gentable <address> [flags] - Dumps the given rtl_generic_table\n");
  64. dprintf("handle <addr> <flags> <process> <TypeName> - Dumps handle for a process\n");
  65. dprintf("help - Displays this list\n" );
  66. dprintf("hidppd <address> <flags> - Dump Preparsed Data of HID device\n");
  67. // VERIFY: dprintf("htrace [handle [process]] - Display handle tracing info\n");
  68. dprintf("ib <port> - Read a byte from an I/O port\n");
  69. dprintf("id <port> - Read a double-word from an I/O port\n");
  70. dprintf("idt <vector> - Dump ISRs referenced by each IDT entry\n");
  71. dprintf("ioresdes <address> - Display IO_RESOURCE_DESCRIPTOR structure\n");
  72. dprintf("ioreslist <IO Resource List> - Dump IO resource requirements list\n" );
  73. dprintf("iw <port> - Read a word from an I/O port\n");
  74. dprintf("irp <address> <dumplevel> - Dump IRP at specified address\n");
  75. dprintf("irpfind [pooltype] [restart addr] [<irpsearch> <address>]\n");
  76. dprintf(" - Search pool for active IRPs\n");
  77. dprintf("irql [processor] - Display current IRQL for processor\n");
  78. dprintf("isainfo <address> [flags] - Display ISA Bus and Card info\n");
  79. // VERIFY: dprintf("iovirp <irp> - Display IOVerifier IRP data\n");
  80. dprintf("job <address> [flags] - Dump JobObject at address, processes in job\n");
  81. dprintf("lbt - Dump legacy bus information table\n");
  82. dprintf("loadermemorylist <address> - Display OSLOADER memory allocation list\n");
  83. dprintf("locks [-v] <address> - Dump kernel mode resource locks\n");
  84. dprintf("logonsession [<LUID> [level]] - Display logon sessions\n");
  85. dprintf("lookaside <address> <options> <depth> - Dump lookaside lists\n");
  86. dprintf("lpc - Dump lpc ports and messages\n");
  87. dprintf("mapic - Dumps the ACPI Multiple APIC Table\n");
  88. dprintf("mca <address> - Display Machine Check Architecture registers\n");
  89. dprintf("memusage - Dumps the page frame database table\n");
  90. dprintf("nsobj <address> - Dumps an ACPI Namespace Object\n");
  91. dprintf("nstree [<address>] - Dumps an ACPI Namespace Object tree\n");
  92. dprintf("numa - Display Non-Uniform Memory Access nodes\n");
  93. dprintf("numa_hal - Display HAL NUMA info\n");
  94. dprintf("ob <port> - Write a byte to an I/O port\n");
  95. dprintf("object <-r | Path | address | 0 TypeName> - Dumps an object manager object\n");
  96. dprintf("obtrace <address|object> - Display object trace information\n");
  97. dprintf("od <port> - Write a double-word to an I/O port\n");
  98. dprintf("openmaps <shared cache map > - Dumps the active views for a shared cache map\n");
  99. dprintf("ow <port> - Write a word to an I/O port\n");
  100. dprintf("pcitree - Dump the PCI tree structure\n");
  101. dprintf("pcm <address> - Detects valid address for Private Cache Map\n");
  102. dprintf("pcmcia [1] - Displays PCMCIA devices and their states\n");
  103. dprintf("pcr [processor] - Dumps the Processor Control Registers\n");
  104. dprintf("pfn - Dumps the page frame database entry for the\n");
  105. dprintf(" physical page\n");
  106. dprintf("pnpaction <action entry> - Dump queued PNP actions\n");
  107. dprintf("pnptriage - Attempt PnP triage\n");
  108. dprintf("pnpevent <event entry> - Dump PNP events\n");
  109. dprintf("pocaps - Dumps System Power Capabilities.\n");
  110. dprintf("podev <devobj> - Dumps power relevent data in device object\n");
  111. dprintf("polist [<devobj>] - Dumps power Irp serial list entries\n");
  112. dprintf("ponode - Dumps power Device Node stack (devnodes in\n");
  113. dprintf(" power order)\n");
  114. dprintf("pool <address> [detail] - Dump kernel mode heap\n");
  115. dprintf("poolfind Tag [pooltype] - - Finds occurrences of the specified Tag\n");
  116. dprintf("poolused [flags [TAG]] - Dump usage by pool tag\n");
  117. dprintf("popolicy [<address> [flags]] - Dumps System Power Policy.\n");
  118. dprintf("poproc [<address> [flags]] - Dumps Processor Power State.\n");
  119. dprintf("poprocpolicy [<address> [flags]] - Dumps Processor Power Policy.\n");
  120. dprintf("poreqlist [<devobj>] - Dumps PoRequestedPowerIrp created Power Irps\n");
  121. dprintf("portcls <devobj> [flags] - Dumps portcls data for portcls bound devobj\n");
  122. dprintf("potrigger <address> - Dumps POP_ACTION_TRIGGER.\n");
  123. dprintf("prcb [processor] - Displays the Processor Control Block\n");
  124. dprintf("process [<address>] [flags] [image name] - Dumps process at specified address\n");
  125. dprintf("pte <address> - Dump PDE and PTE for the entered address\n");
  126. dprintf("ptov PhysicalPageNumber - Dump all valid physical<->virtual mappings\n");
  127. dprintf(" for the given page directory\n");
  128. dprintf("qlocks - Dumps state of all queued spin locks\n");
  129. dprintf("range <RtlRangeList> - Dump RTL_RANGE_LIST\n");
  130. dprintf("ready - Dumps state of all READY system threads\n");
  131. dprintf("reg [<command> [params]] - Registry extensions\n");
  132. dprintf("rellist <relation list> [flags] - Dump PNP relation lists\n");
  133. dprintf("remlock - Dump a remove lock structure\n");
  134. dprintf("rsdt - Displays the ACPI Root System Description Table\n");
  135. dprintf("running [-t] [-i] - Displays the running threads in the system\n");
  136. dprintf("scm <address> - Detects valid address for Shared Cache Map\n");
  137. dprintf("session [-?] [-s] <id> [flags] [image name] - Dumps sessions\n");
  138. dprintf("sprocess [<id|-1> [flags]] - Displays session processes\n");
  139. dprintf("srb <address> - Dump Srb at specified address\n");
  140. dprintf("stacks <detail-level> - Dump summary of current kernel stacks\n");
  141. dprintf("sysptes - Dumps the system PTEs\n");
  142. dprintf("thread [<address> [flags]] - Dump current thread, specified thread, or stack\n");
  143. dprintf(" containing address\n");
  144. dprintf("timer - Dumps timer tree\n");
  145. dprintf("tokenleak [<0>|<1> <ProcessCid> <BreakCount> <MethodWatch>]\n");
  146. dprintf(" - Activates token leak tracking\n");
  147. dprintf("tunnel <address> - Dump a file property tunneling cache\n");
  148. dprintf("tz [<address> <flags>] - Dumps Thermal Zones. No Args dumps All TZs\n");
  149. dprintf("tzinfo <address> - Dumps Thermal Zone Information.\n");
  150. dprintf("ubc [*|<bpid>] - Clears a user-space breakpoint\n");
  151. dprintf("ubd [*|<bpid>] - Disables a user-space breakpoint\n");
  152. dprintf("ube [*|<bpid>] - Enables a user-space breakpoint\n");
  153. dprintf("ubl - Lists all user-space breakpoint\n");
  154. dprintf("ubp <address> - Sets a user-space breakpoint\n");
  155. dprintf("vad - Dumps VADs\n");
  156. dprintf("verifier - Displays Driver Verifier settings and status\n");
  157. dprintf("version - Version of extension dll\n");
  158. dprintf("vm - Dumps virtual management values\n");
  159. dprintf("vpb <address> - Dumps volume parameter block\n");
  160. dprintf("vtop DirBase address - Dumps physical page for virtual address\n");
  161. dprintf("wdmaud <address> <flags> - Dumps wdmaud data for structures\n");
  162. dprintf("whatperftime <perf> - Converts performance time to HH:MM:SS.mmm\n");
  163. dprintf("whattime <ticks> - Converts ticks to HH:MM:SS.mmm\n");
  164. dprintf("wsle [<flags> [address]] - Display Working Set List Entries\n");
  165. dprintf("zombies [<flags> [address]] - Find all zombie processes\n");
  166. switch (TargetMachine)
  167. {
  168. case IMAGE_FILE_MACHINE_I386:
  169. dprintf("\n");
  170. dprintf("X86-specific:\n\n");
  171. dprintf("apic [base] - Dump local apic\n");
  172. dprintf("apicerr - Dumps local apic error log\n");
  173. dprintf("callback <address> [num] - Dump callback frames for specified thread\n");
  174. dprintf("halpte - Displays HAL PTE ranges\n");
  175. dprintf("ioapic [base] - Dump io apic\n");
  176. dprintf("mps - Dumps MPS BIOS structures\n");
  177. dprintf("mtrr - Dumps MTTR\n");
  178. dprintf("npx [base] - Dumps NPX save area\n");
  179. dprintf("pciir - Dumps the Pci Irq Routing Table\n");
  180. dprintf("pic - Dumps PIC(8259) information\n");
  181. dprintf("smt - Display Simultaneous Multi-Threading processor\n");
  182. dprintf(" capabilities\n");
  183. break;
  184. case IMAGE_FILE_MACHINE_IA64:
  185. dprintf("\n");
  186. dprintf("IA64-specific:\n\n");
  187. dprintf("btb - Dump branch trace buffer for current processor\n");
  188. dprintf("bth <processor> - Dump branch trace history for target processor\n");
  189. dprintf("dcr <address> <dispmode> - Dump dsr register at specified address\n");
  190. dprintf("fwver - Display IA64 firmware version\n");
  191. dprintf("ih <processor> - Dump interrupt history for target processor\n");
  192. dprintf("ihs <processor> - Dump interrupt history for target processor with symbols\n");
  193. dprintf("isr <address> <dispmode> - Dump isr register at specified address\n");
  194. dprintf("ivt - Display IA64 Interrupt Vector Table\n");
  195. dprintf("pars <address> - Dump application registers file at specified address\n");
  196. dprintf("pcrs <address> - Dump control registers file at specified address\n");
  197. dprintf("pmc [-opt] <address> <dispmode> - Dump pmc register at specified address\n");
  198. dprintf("pmssa <address> - Dump minstate save area at specified address\n");
  199. dprintf("psp <address> <dispmode> - Dump psp register at specified address\n");
  200. break;
  201. default:
  202. break;
  203. }
  204. dprintf("\nType \".hh [command]\" for more detailed help\n");
  205. return S_OK;
  206. }