Advertisement
tthtlc

mdb help menu

Jul 2nd, 2014
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.81 KB | None | 0 0
  1.  
  2. $< - replace input with macro
  3. $<< - source macro
  4. $? - print status and registers
  5. $C - print stack backtrace
  6. $M - list macro aliases
  7. $P - set debugger prompt string
  8. $Q - quit debugger
  9. $V - get/set disassembly mode
  10. $W - re-open target in write mode
  11. $b - list traced software events
  12. $c - print stack backtrace
  13. $d - get/set default output radix
  14. $e - print listing of global symbols
  15. $f - print listing of source files
  16. $m - print address space mappings
  17. $q - quit debugger
  18. $r - print general-purpose registers
  19. $s - get/set symbol matching distance
  20. $v - print non-zero variables
  21. $w - get/set output page width
  22. / - format data from virtual as
  23. :a - set read access watchpoint
  24. :b - breakpoint at the specified address
  25. :c - continue target execution
  26.  
  27. :e - step target over next instruction
  28. :p - set execute access watchpoint
  29. :s - single-step target to next instruction
  30. :u - step target out of current function
  31. :w - set write access watchpoint
  32. :x - change the active CPU
  33. :z - delete all traced software events
  34. = - format immediate value
  35. > - assign variable
  36. ? - format data from virtual as
  37. @ - format data from physical as
  38. \ - format data from physical as
  39. addr2smap - translate address to smap
  40. allocdby - given a thread, print its allocated buffers
  41. array - print each array element's address
  42. as2proc - convert as to proc_t address
  43. binding_hash_entry - print driver names hash table entry
  44. bitset - display a bitset
  45. bp - breakpoint at the specified addresses or symbols
  46. branches - describe the recently-taken branches
  47. bufctl - print or filter a bufctl
  48. bufpagefind - find page_t on buf_t list
  49. call - call a kernel function
  50. callout - display callouts
  51. >> More [<space>, <cr>, q, n, c, a] ?
  52.  
  53. calloutid - print callout by extended id
  54. class - print process scheduler classes
  55. cont - continue target execution
  56. contract - display a contract
  57. cpuinfo - print CPUs and runnable threads
  58. cpupart - print cpu partition info
  59. cpuregs - print general-purpose registers for a specific CPU
  60. cpustack - print stack backtrace for a specific CPU
  61. cred - display a credential
  62. credgrp - display cred_t groups
  63. credsid - display a credsid_t
  64. ctevent - display a contract event
  65. ctfinfo - list module CTF information
  66. ctid - convert id to a contract pointer
  67. cyccover - dump cyclic coverage information
  68. cycid - dump a cyclic id
  69. cycinfo - dump cyc_cpu info
  70. cyclic - developer information
  71. cyctrace - dump cyclic trace buffer
  72. damap - display a damap_t
  73. dcmds - list available debugger commands
  74. ddi_periodic - dump ddi_periodic_impl_t info
  75. delete - delete traced software events
  76. dev2major - convert dev_t to a major number
  77. >> More [<space>, <cr>, q, n, c, a] ?
  78.  
  79. devbindings - print devinfo nodes bound to device-name or major-num
  80.  
  81. devinfo - detailed devinfo of one node
  82. devinfo2driver - find driver name for this devinfo node
  83. devinfo_audit - devinfo configuration audit record
  84. devinfo_audit_log - system wide devinfo configuration log
  85. devinfo_audit_node - devinfo node configuration history
  86. devinfo_fm - devinfo fault managment configuration
  87. devinfo_fmce - devinfo fault managment cache entry
  88. devnames - print devnames array
  89. devt - display a dev_t's major and minor numbers
  90. did2thread - find kernel thread for this id
  91. dis - disassemble near addr
  92. disasms - list available disassemblers
  93. dismode - get/set disassembly mode
  94. dladm - show data link information
  95. dmods - list loaded debugger modules
  96. dnlc - print DNLC contents
  97. dump - dump memory from specified address
  98. echo - echo arguments
  99. enum - print an enumeration
  100. ereport - print ereports logged in dump
  101. errorq - display kernel error queues
  102. eval - evaluate the specified command
  103. >> More [<space>, <cr>, q, n, c, a] ?
  104.  
  105.  
  106. events - list traced software events
  107. evset - set software event specifier attributes
  108. fd - get a file pointer from an fd
  109. files - print listing of source files
  110. findleaks - search for potential kernel memory leaks
  111. findstack - find kernel thread stack
  112. findstack_debug - toggle findstack debugging
  113. flipone - the vik_rev_level 2 special
  114. formats - list format specifiers
  115. freedby - given a thread, print its freed buffers
  116. fsinfo - print mounted filesystems
  117. gate_desc - dump a gate descriptor
  118. grep - print dot if expression is true
  119. group - display a group
  120. head - limit number of elements in pipe
  121. help - list commands/command help
  122. hotplug - display a registered hotplug attachment
  123. htables - Given hat_t *, lists all its htable_t * values
  124. idt - dump an IDT
  125. in - read from I/O port
  126. irmpools - display interrupt pools
  127. irmreq - display an interrupt request
  128. irmreqs - display interrupt requests in an interrupt pool
  129. kgrep - search kernel as for a pointer
  130. >> More [<space>, <cr>, q, n, c, a] ?
  131.  
  132. kmalog - display kmem transaction log and stack traces
  133. kmastat - kernel memory allocator stats
  134. kmausers - current medium and large users of the kmem allocator
  135. kmem_cache - print kernel memory caches
  136. kmem_debug - toggle kmem dcmd/walk debugging
  137. kmem_log - dump kmem transaction log
  138. kmem_slabs - display slab usage per kmem cache
  139. kmem_verify - check integrity of kmem-managed memory
  140. ksidlist - display a ksidlist_t
  141. ldi_handle - display a layered driver handle
  142. ldi_ident - display a layered driver identifier
  143. lgrp - display an lgrp
  144. lgrp_set - display bitmask of lgroups as a list
  145. list - walk list using member as link pointer
  146. lminfo - print lock manager information
  147. load - load debugger module
  148. major2name - convert major number to dev name
  149. map - print dot after evaluating expression
  150. mappings - print address space mappings
  151. mblk - print an mblk
  152. mblk2dblk - convert mblk_t address to dblk_t address
  153. mblk_verify - verify integrity of an mblk
  154. mdiclient_paths - given a path, walk mdi_pathinfo client links
  155. mdiphci - given a phci, dump mdi_phci and list all paths
  156. >> More [<space>, <cr>, q, n, c, a] ?
  157.  
  158. mdiphci_paths - given a path, walk through mdi_pathinfo phci links
  159. mdiphcis - given a phci, walk through mdi_phci ph_next links
  160. mdipi -
  161. given a path, dump mdi_pathinfo and detailed pi_prop list
  162. mdiprops - given a pi_prop, dump the pi_prop list
  163. mdivhci - given a vhci, dump mdi_vhci and list all phcis
  164. memlist - display a struct memlist
  165. memseg_list - show memseg list
  166. memstat - display memory usage summary
  167. mfntopfn - convert hypervisor machine page to physical page
  168. mi - filter and display MI object or payload
  169. minornodes - given a devinfo node, print its minor nodes
  170. modctl - list modctl structures
  171. modctl2devinfo - given a modctl, list its devinfos
  172. modent - display information about a mod_hash_entry
  173. modhash -
  174. display information about one or all mod_hash structures
  175. modhdrs - given modctl, dump module ehdr and shdrs
  176. modinfo - list module information
  177. msgbuf - print most recent console messages
  178. multidata - display a summarized multidata_t
  179. mutex - dump out an adaptive or spin mutex
  180. name2major - convert dev name to major number
  181. ndi_event_hdl - print ndi_event_hdl
  182. >> More [<space>, <cr>, q, n, c, a] ?
  183.  
  184. netstack - show stack instances
  185. netstackid2netstack - translate a netstack id to its netstack_t
  186. netstat - show network statistics
  187. next - step target over next instruction
  188. nm - print symbols
  189. nmadd - add name to private symbol table
  190. nmdel - remove name from private symbol table
  191. nvlist - print out an nvlist
  192. nvpair - print out an nvpair
  193. objects - print load objects information
  194. offsetof - print the offset of a given struct or union member
  195. out - write to I/O port
  196. page - display a summarized page_t
  197. page_num2pp - find the page_t for a given page frame number
  198. pagelookup - find the page_t with the name {vp, offset}
  199. panicinfo - print panic information
  200. pattbl - display a summarized multidata attribute table
  201. pattr2multidata - print multidata pointer from pattr_t
  202. pdesc2slab - print pdesc slab pointer from pdesc_t
  203. pdesc_verify - verify integrity of a pdesc_t
  204. pfiles - print process file information
  205. pfntomfn - convert physical page to hypervisor machine page
  206. pg - display a pg
  207. pgrep - pattern match against all processes
  208. >> More [<space>, <cr>, q, n, c, a] ?
  209. pid2proc - convert PID to proc_t address
  210. pmap - print process memory map
  211. print - print the contents of a data structure
  212. printf - print and format the member(s) of a data structure
  213. project - display kernel project(s)
  214. prtconf - print devinfo tree
  215. ps - list processes (and associated thr,lwp)
  216. ptable - Given PFN, dump contents of a page table
  217. pte - print human readable page table entry
  218. ptree - print process tree
  219. q2otherq - print peer queue for a given queue
  220. q2rdq - print read queue for a given queue
  221. q2stream - print stream pointer for a given queue
  222. q2syncq - print syncq for a given queue
  223. q2wrq - print write queue for a given queue
  224. queue - filter and display STREAM queue
  225. quit - quit debugger
  226. rctl - print a rctl_t, only if it matches the handle
  227. rctl_dict - print systemwide default rctl definitions
  228. rctl_list - print rctls for the given proc
  229. rctl_validate - test resource control value sequence
  230. rdmsr - read an MSR
  231. rdpcicfg - read a register in PCI config space
  232. regs - print general-purpose registers
  233. >> More [<space>, <cr>, q, n, c, a] ?
  234.  
  235. report_maps - Given PFN, report mappings / page table usage
  236. rwlock - dump out a readers/writer lock
  237. scalehrtime - scale an unscaled high-res time
  238. seg - print address space segment
  239. set - get/set debugger properties
  240. showrev - print version information
  241. sizeof - print the size of a type
  242. slab2multidata - print multidata pointer from pdesc_slab_t
  243. sobj2ts - perform turnstile lookup on synch object
  244. softstate - retrieve soft-state pointer
  245. sonode - filter and display sonode
  246. stack - print stack backtrace
  247. stackinfo - display kthread_t stack usage
  248. stackregs - print stack backtrace and registers
  249. stacks - print unique kernel thread stacks
  250. status - print summary of current target
  251. stdata - filter and display STREAM head
  252. step - single-step target to next instruction
  253. str2mate - print mate of this stream
  254. str2wrq - print write queue of this stream
  255. stream - display STREAM
  256. strftevent - print STREAMS flow trace event
  257. swapinfo - display a struct swapinfo
  258. switch - change the active CPU
  259. >> More [<space>, <cr>, q, n, c, a] ?
  260.  
  261.  
  262. syncq - filter and display STREAM sync queue
  263. syncq2q - print queue for a given syncq
  264. sysevent - print sysevent pending or sent queue
  265. sysevent_channel - print sysevent channel database
  266. sysevent_class_list - print sysevent class list
  267. sysevent_subclass_list - print sysevent subclass list
  268. system - print contents of /etc/system file
  269. task - display kernel task(s)
  270. taskq - display a taskq
  271. taskq_entry - display a taskq_ent_t
  272. term - display current terminal type
  273. thread - display a summarized kthread_t
  274. threadlist - display threads and associated C stack traces
  275. time - display system time
  276. tsd - print tsd[key-1] for this thread
  277. tsdtot - find thread with this tsd
  278. ttrace - dump trap trace buffers
  279. turnstile - display a turnstile
  280. typedef - create synthetic types
  281. typeset - set variable attributes
  282. unload - unload debugger module
  283. unset - unset variables
  284. vars - print listing of variables
  285. vatopfn - translate address to physical page
  286. >> More [<space>, <cr>, q, n, c, a] ?
  287. version - print debugger version string
  288. vmem - print a vmem_t
  289. vmem_seg - print or filter a vmem_seg
  290. vnode2path - vnode address to pathname
  291. vnode2smap - translate vnode to smap
  292. vtop - print physical mapping of virtual address
  293. walk - walk data structure
  294. walkers - list available walkers
  295. wchaninfo - dump condition variable
  296. whatis - given an address, return information
  297. whatthread - print threads whose stack contains the given address
  298. whence - show source of walk or dcmd
  299. whereopen - given a vnode, dumps procs which have it open
  300. which - show source of walk or dcmd
  301. wp - set a watchpoint at the specified address
  302. wrmsr - write an MSR
  303. wrpcicfg - write a register in PCI config space
  304. x86_featureset - dump the x86_featureset vector
  305. xdata - print list of external data buffers
  306. zdid2zone - find the zone_t with the given zone debug id
  307. zid2zone - find the zone_t with the given zone id
  308. zone - display kernel zone(s)
  309. zsd - display zone-specific-data entries for selected zones
  310.  
  311.  
  312.  
  313.  
  314. allfile - given a proc pointer, list all file pointers
  315. allocdby - given a thread, walk its allocated bufctls
  316. allpages - walk all pages, including free pages
  317. anon - given an amp, list allocated anon structures
  318. anon_all - given an amp, list contents of all anon slots
  319. avl -
  320. given any avl_tree_t *, forward walk all entries in tree
  321. b_cont - walk mblk_t list using b_cont
  322. b_next - walk mblk_t list using b_next
  323. binding_hash - walk all entries in binding hash table
  324. blocked - walk threads blocked on a given sobj
  325. buf - walk the bio buf hash
  326. bufctl - walk a kmem cache's bufctls
  327. bufctl_history - walk the available history of a bufctl
  328. callout_list - walk a callout list
  329. callout_table - walk callout table array
  330. callouts_byid - walk callouts by id hash chain
  331. callouts_bytime - walk callouts by list chain (expiration time)
  332. contract - walk all contracts, or those of the specified type
  333. cpu - walk cpu structures
  334. cpu_dispq - given a cpu_t, walk threads in dispatcher queues
  335. cpupart_cpulist - given an cpupart_t, walk cpus in partition
  336. cpupart_dispq - given a cpupart_t, walk threads in dispatcher queues
  337. cpupart_walk - walk the set of cpu partitions
  338. >> More [<space>, <cr>, q, n, c, a] ?
  339.  
  340. ct_event - walk events on a contract event queue
  341. ct_listener - walk contract event queue listeners
  342. ctxop - walk list of context ops on a thread
  343. cyccpu - walk per-CPU cyc_cpu structures
  344. cycomni - for an omnipresent cyclic, walk cyc_omni_cpu list
  345. cyctrace - walk cyclic trace buffer
  346. deathrow - walk threads on both lwp_ and thread_deathrow
  347. devi_next - walk devinfo list
  348. devinfo - walk devinfo tree or subtree
  349. devinfo_audit_log - walk devinfo audit system-wide log
  350. devinfo_audit_node - walk per-devinfo audit history
  351. devinfo_children - walk children of devinfo node
  352. devinfo_fmc - walk a fault management handle cache active list
  353. devinfo_parents - walk ancestors of devinfo node
  354. devinfo_siblings - walk siblings of devinfo node
  355. devnames - walk devnames array
  356. ereportq_dump - walk list of ereports in dump error queue
  357. ereportq_pend - walk list of ereports in pending error queue
  358. errorq - walk list of system error queues
  359. errorq_data - walk pending error queue data buffers
  360. file - given a proc pointer, list of open file pointers
  361. freectl - walk a kmem cache's free bufctls
  362. freectl_constructed - walk a kmem cache's constructed free bufctls
  363. freedby - given a thread, walk its freed bufctls
  364. >> More [<space>, <cr>, q, n, c, a] ?
  365.  
  366.  
  367. freemem - walk a kmem cache's free memory
  368. freemem_constructed - walk a kmem cache's constructed free memory
  369. group - walk all elements of a group
  370. icmp - walk ICMP control structures using MI for all stacks
  371. icmp_stacks - walk all the icmp_stack_t
  372. irmpools - walk global list of interrupt pools
  373. irmreqs - walk list of interrupt requests in an interrupt pool
  374. kmem - walk a kmem cache
  375. kmem_cache - walk list of kmem caches
  376. kmem_cpu_cache - given a kmem cache, walk its per-CPU caches
  377. kmem_hash - given a kmem cache, walk its allocated hash table
  378. kmem_log - walk the kmem transaction log
  379. kmem_slab - given a kmem cache, walk its slabs
  380. kmem_slab_partial -
  381. given a kmem cache, walk its partially allocated slabs (min 1)
  382. ldi_handle - walk the layered driver handle hash
  383. ldi_ident - walk the layered driver identifier hash
  384. leak -
  385. given a leaked bufctl or vmem_seg, find leaks w/ same stack trace
  386. leakbuf -
  387. given a leaked bufctl or vmem_seg, walk buffers for leaks w/ same stack trace
  388. lgrp_cpulist - walk CPUs in a given lgroup
  389. lgrp_parents - walk up lgroup lineage from given lgroup
  390. lgrp_rsrc_cpu - walk lgroup CPU resources of given lgroup
  391. >> More [<space>, <cr>, q, n, c, a] ?
  392.  
  393.  
  394. lgrp_rsrc_mem - walk lgroup memory resources of given lgroup
  395. lgrptbl - walk lgroup table
  396. list - walk a linked list
  397. lock_descriptor - walk lock_descriptor_t structures
  398. lock_graph - walk lock graph
  399. lwp_deathrow - walk lwp_deathrow
  400. mdiphci_list - Walker for mdi_phci ph_next link
  401. mdipi_client_list - Walker for mdi_pathinfo pi_client_link
  402. mdipi_phci_list - Walker for mdi_pathinfo pi_phci_link
  403. memlist - walk specified memlist
  404. memseg - walk the memseg structures
  405. mi - given a MI_O, walk the MI
  406. minornode - given a devinfo node, walk minor nodes
  407. modchain - walk list of entries in a given mod_hash_entry
  408. modctl - list of modctl structures
  409. modent - walk list of entries in a given mod_hash
  410. modhash - walk list of mod_hash structures
  411. mutex_owner - walks the owner of a mutex
  412. netstack - walk a list of kernel netstacks
  413. nvpair - walk through the nvpairs in an unpacked nvlist
  414. page - walk all pages, or those from the specified vnode
  415. pattr - walk pattr_t structures
  416. pdesc - walk pdesc_t structures
  417. pdesc_slab - walk pdesc_slab_t structures
  418. >> More [<space>, <cr>, q, n, c, a] ?
  419.  
  420. portev - given a port pointer, list of events in the queue
  421. proc - list of active proc_t structures
  422. projects - walk a list of kernel projects
  423. qlink - walk queue_t list using q_link
  424. qnext - walk queue_t list using q_next
  425. rctl_dict_list - walk all rctl_dict_entry_t's from rctl_lists
  426. rctl_set - given a rctl_set, walk all rctls
  427. rctl_val - given a rctl_t, walk all rctl_val entries associated
  428. readq - walk read queue side of stdata
  429. seg - given an as, list of segments
  430. segvn_anon -
  431. given a struct segvn_data, list allocated anon structures
  432. segvn_anon_all -
  433. given a struct segvn_data, list contents of all anon slots
  434. segvn_pages -
  435. given a struct segvn_data, list resident pages in offset order
  436. segvn_pages_all -
  437. for each offset in a struct segvn_data, give page_t pointer (if resident), or NU
  438.  
  439. LL.
  440. softstate -
  441. given an i_ddi_soft_state*, list all in-use driver stateps
  442. softstate_all - given an i_ddi_soft_state*, list all driver stateps
  443. sonode - given a sonode, walk its children
  444. >> More [<space>, <cr>, q, n, c, a] ?
  445.  
  446.  
  447.  
  448. strftblk - given a dblk_t, walk STREAMS flow trace event list
  449. swapinfo - walk swapinfo structures
  450. sysevent_channel - walk sysevent channel subscriptions
  451. sysevent_class_list - walk sysevent subscription's class list
  452. sysevent_pend - walk sysevent pending queue
  453. sysevent_sent - walk sysevent sent queue
  454. sysevent_subclass_list - walk sysevent subscription's subclass list
  455. task - given a task pointer, walk its processes
  456. taskq_entry - given a taskq_t*, list all taskq_ent_t in the list
  457. taskq_thread - given a taskq_t, list all of its threads
  458. tcp_stacks - walk all the tcp_stack_t
  459. thread - global or per-process kthread_t structures
  460. thread_deathrow - walk threads on thread_deathrow
  461. tnrh - walk remote host cache structures
  462. tnrhtp - walk remote host template structures
  463. tsd - walk list of thread-specific data
  464. ttrace -
  465. walks trap trace buffers in reverse chronological order
  466. udp_stacks - walk all the udp_stack_t
  467. vfs - walk file system list
  468. vmem - walk vmem structures in pre-fix, depth-first order
  469. vmem_alloc - given a vmem_t, walk its allocated vmem_segs
  470. vmem_free - given a vmem_t, walk its free vmem_segs
  471. vmem_postfix - walk vmem structures in post-fix, depth-first order
  472. >> More [<space>, <cr>, q, n, c, a] ?
  473.  
  474.  
  475. sysevent_subclass_list - walk sysevent subscription's subclass list
  476. task - given a task pointer, walk its processes
  477. taskq_entry - given a taskq_t*, list all taskq_ent_t in the list
  478. taskq_thread - given a taskq_t, list all of its threads
  479. tcp_stacks - walk all the tcp_stack_t
  480. thread - global or per-process kthread_t structures
  481. thread_deathrow - walk threads on thread_deathrow
  482. tnrh - walk remote host cache structures
  483. tnrhtp - walk remote host template structures
  484. tsd - walk list of thread-specific data
  485. ttrace -
  486. walks trap trace buffers in reverse chronological order
  487. udp_stacks - walk all the udp_stack_t
  488. vfs - walk file system list
  489. vmem - walk vmem structures in pre-fix, depth-first order
  490. vmem_alloc - given a vmem_t, walk its allocated vmem_segs
  491. vmem_free - given a vmem_t, walk its free vmem_segs
  492. vmem_postfix - walk vmem structures in post-fix, depth-first order
  493. vmem_seg - given a vmem_t, walk all of its vmem_segs
  494. vmem_span - given a vmem_t, walk its spanning vmem_segs
  495. wchan - given a wchan, list of blocked threads
  496. writeq - walk write queue side of stdata
  497. zone - walk a list of kernel zones
  498. zsd - walk list of zsd entries for a zone
  499. [0]>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement