Skip to content

Instantly share code, notes, and snippets.

@geek
Created July 5, 2013 22:26
Show Gist options
  • Save geek/5937620 to your computer and use it in GitHub Desktop.
Save geek/5937620 to your computer and use it in GitHub Desktop.
> ::dmods -l
ld.so.1
dcmd Bind - Display a Binding Descriptor
dcmd Callers - Display Rt_map CALLERS binding descriptors
dcmd Depends - Display Rt_map DEPENDS binding descriptors
dcmd ElfDyn - Display Elf_Dyn entry
dcmd ElfEhdr - Display Elf_Ehdr entry
dcmd ElfPhdr - Display Elf_Phdr entry
dcmd Groups - Display Rt_map GROUPS group handles
dcmd GrpDesc - Display a Group Descriptor
dcmd GrpHdl - Display a Group Handle
dcmd Handles - Display Rt_map HANDLES group descriptors
dcmd Lm_list - Display Lm_list structure
dcmd Rt_map - Display Rt_map structure
dcmd Rt_maps - Display list of Rt_map structures
dcmd Setenv - Set an environment variable
walk Rt_maps - Walk a List of Rt_maps
libc.so.1
dcmd jmp_buf - print jmp_buf contents
dcmd siginfo - print siginfo_t structure
dcmd sigjmp_buf - print sigjmp_buf contents
dcmd stacks - print unique thread stacks
dcmd tid2ulwp - convert TID to ulwp_t address
dcmd tsd - print tsd for this thread
dcmd uberdata - print uberdata_t structure
dcmd ucontext - print ucontext_t structure
dcmd ulwp - print ulwp_t structure
walk oldcontext - walk per-lwp oldcontext pointers
walk ucontext - walk ucontext_t uc_link list
walk ulwp - walk list of ulwp_t pointers
walk ulwps - walk list of ulwp_t pointers
libumem.so.1
dcmd allocdby - given a thread, print its allocated buffers
dcmd bufctl - print or filter a bufctl
dcmd bufctl_audit - print a bufctl_audit
dcmd findleaks - search for potential memory leaks
dcmd freedby - given a thread, print its freed buffers
dcmd ugrep - search user address space for a pointer
dcmd umalog - display umem transaction log and stack traces
dcmd umastat - umem allocator stats
dcmd umausers - display current medium and large users of the umem allocator
dcmd umem_cache - print a umem cache
dcmd umem_debug - toggle umem dcmd/walk debugging
dcmd umem_log - dump umem transaction log
dcmd umem_malloc_dist - report distribution of outstanding malloc()s
dcmd umem_malloc_info - report information about malloc()s by cache
dcmd umem_status - Print umem status and message buffer
dcmd umem_verify - check integrity of umem-managed memory
dcmd vmem - print a vmem_t
dcmd vmem_seg - print or filter a vmem_seg
walk allocdby - given a thread, walk its allocated bufctls
walk bufctl - walk a umem cache's bufctls
walk bufctl_history - walk the available history of a bufctl
walk freectl - walk a umem cache's free bufctls
walk freedby - given a thread, walk its freed bufctls
walk freemem - walk a umem cache's free memory
walk leak - given a leak ctl, walk other leaks w/ that stacktrace
walk leakbuf - given a leak ctl, walk addr of leaks w/ that stacktrace
walk umem - walk a umem cache
walk umem_alloc_106496 - walk the umem_alloc_106496 cache
walk umem_alloc_112 - walk the umem_alloc_112 cache
walk umem_alloc_114688 - walk the umem_alloc_114688 cache
walk umem_alloc_1152 - walk the umem_alloc_1152 cache
walk umem_alloc_12288 - walk the umem_alloc_12288 cache
walk umem_alloc_122880 - walk the umem_alloc_122880 cache
walk umem_alloc_128 - walk the umem_alloc_128 cache
walk umem_alloc_131072 - walk the umem_alloc_131072 cache
walk umem_alloc_1344 - walk the umem_alloc_1344 cache
walk umem_alloc_16 - walk the umem_alloc_16 cache
walk umem_alloc_160 - walk the umem_alloc_160 cache
walk umem_alloc_1600 - walk the umem_alloc_1600 cache
walk umem_alloc_16384 - walk the umem_alloc_16384 cache
walk umem_alloc_192 - walk the umem_alloc_192 cache
walk umem_alloc_2048 - walk the umem_alloc_2048 cache
walk umem_alloc_224 - walk the umem_alloc_224 cache
walk umem_alloc_2304 - walk the umem_alloc_2304 cache
walk umem_alloc_24576 - walk the umem_alloc_24576 cache
walk umem_alloc_256 - walk the umem_alloc_256 cache
walk umem_alloc_2688 - walk the umem_alloc_2688 cache
walk umem_alloc_32 - walk the umem_alloc_32 cache
walk umem_alloc_320 - walk the umem_alloc_320 cache
walk umem_alloc_32768 - walk the umem_alloc_32768 cache
walk umem_alloc_384 - walk the umem_alloc_384 cache
walk umem_alloc_4096 - walk the umem_alloc_4096 cache
walk umem_alloc_40960 - walk the umem_alloc_40960 cache
walk umem_alloc_448 - walk the umem_alloc_448 cache
walk umem_alloc_4544 - walk the umem_alloc_4544 cache
walk umem_alloc_48 - walk the umem_alloc_48 cache
walk umem_alloc_49152 - walk the umem_alloc_49152 cache
walk umem_alloc_512 - walk the umem_alloc_512 cache
walk umem_alloc_57344 - walk the umem_alloc_57344 cache
walk umem_alloc_64 - walk the umem_alloc_64 cache
walk umem_alloc_640 - walk the umem_alloc_640 cache
walk umem_alloc_65536 - walk the umem_alloc_65536 cache
walk umem_alloc_73728 - walk the umem_alloc_73728 cache
walk umem_alloc_768 - walk the umem_alloc_768 cache
walk umem_alloc_8 - walk the umem_alloc_8 cache
walk umem_alloc_80 - walk the umem_alloc_80 cache
walk umem_alloc_8192 - walk the umem_alloc_8192 cache
walk umem_alloc_81920 - walk the umem_alloc_81920 cache
walk umem_alloc_896 - walk the umem_alloc_896 cache
walk umem_alloc_90112 - walk the umem_alloc_90112 cache
walk umem_alloc_9216 - walk the umem_alloc_9216 cache
walk umem_alloc_96 - walk the umem_alloc_96 cache
walk umem_alloc_98304 - walk the umem_alloc_98304 cache
walk umem_bufctl_audit_cache - walk the umem_bufctl_audit_cache cache
walk umem_bufctl_cache - walk the umem_bufctl_cache cache
walk umem_cache - walk list of umem caches
walk umem_cpu - walk the umem CPU structures
walk umem_cpu_cache - given a umem cache, walk its per-CPU caches
walk umem_hash - given a umem cache, walk its allocated hash table
walk umem_log - walk the umem transaction log
walk umem_magazine_1 - walk the umem_magazine_1 cache
walk umem_magazine_143 - walk the umem_magazine_143 cache
walk umem_magazine_15 - walk the umem_magazine_15 cache
walk umem_magazine_3 - walk the umem_magazine_3 cache
walk umem_magazine_31 - walk the umem_magazine_31 cache
walk umem_magazine_47 - walk the umem_magazine_47 cache
walk umem_magazine_63 - walk the umem_magazine_63 cache
walk umem_magazine_7 - walk the umem_magazine_7 cache
walk umem_magazine_95 - walk the umem_magazine_95 cache
walk umem_ptc_112 - walk the per-thread cache for umem_alloc_112
walk umem_ptc_128 - walk the per-thread cache for umem_alloc_128
walk umem_ptc_16 - walk the per-thread cache for umem_alloc_16
walk umem_ptc_160 - walk the per-thread cache for umem_alloc_160
walk umem_ptc_192 - walk the per-thread cache for umem_alloc_192
walk umem_ptc_224 - walk the per-thread cache for umem_alloc_224
walk umem_ptc_256 - walk the per-thread cache for umem_alloc_256
walk umem_ptc_32 - walk the per-thread cache for umem_alloc_32
walk umem_ptc_320 - walk the per-thread cache for umem_alloc_320
walk umem_ptc_384 - walk the per-thread cache for umem_alloc_384
walk umem_ptc_448 - walk the per-thread cache for umem_alloc_448
walk umem_ptc_48 - walk the per-thread cache for umem_alloc_48
walk umem_ptc_64 - walk the per-thread cache for umem_alloc_64
walk umem_ptc_8 - walk the per-thread cache for umem_alloc_8
walk umem_ptc_80 - walk the per-thread cache for umem_alloc_80
walk umem_ptc_96 - walk the per-thread cache for umem_alloc_96
walk umem_slab - given a umem cache, walk its slabs
walk umem_slab_cache - walk the umem_slab_cache cache
walk umem_slab_partial - given a umem cache, walk its partially allocated slabs (min 1)
walk vmem - walk vmem structures in pre-fix, depth-first order
walk vmem_alloc - given a vmem_t, walk its allocated vmem_segs
walk vmem_free - given a vmem_t, walk its free vmem_segs
walk vmem_postfix - walk vmem structures in post-fix, depth-first order
walk vmem_seg - given a vmem_t, walk all of its vmem_segs
walk vmem_span - given a vmem_t, walk its spanning vmem_segs
mdb
dcmd $< - replace input with macro
dcmd $<< - source macro
dcmd $> - log session to a file
dcmd $? - print status and registers
dcmd $C - print stack backtrace
dcmd $G - enable/disable C++ demangling support
dcmd $M - list macro aliases
dcmd $P - set debugger prompt string
dcmd $Q - quit debugger
dcmd $V - get/set disassembly mode
dcmd $W - re-open target in write mode
dcmd $X - print floating point registers
dcmd $Y - print floating point registers
dcmd $b - list traced software events
dcmd $c - print stack backtrace
dcmd $d - get/set default output radix
dcmd $e - print listing of global symbols
dcmd $f - print listing of source files
dcmd $g - get/set C++ demangling options
dcmd $i - print signals that are ignored
dcmd $l - print the representative thread's lwp id
dcmd $m - print address space mappings
dcmd $p - change debugger target context
dcmd $q - quit debugger
dcmd $r - print general-purpose registers
dcmd $s - get/set symbol matching distance
dcmd $v - print non-zero variables
dcmd $w - get/set output page width
dcmd $x - print floating point registers
dcmd $y - print floating point registers
dcmd / - format data from virtual as
dcmd :A - attach to process or core file
dcmd :R - release the previously attached process
dcmd :a - set read access watchpoint
dcmd :b - breakpoint at the specified address
dcmd :c - continue target execution
dcmd :d - delete traced software events
dcmd :e - step target over next instruction
dcmd :i - ignore signal (delete all matching events)
dcmd :k - forcibly kill and release target
dcmd :p - set execute access watchpoint
dcmd :r - run a new target process
dcmd :s - single-step target to next instruction
dcmd :t - stop on delivery of the specified signals
dcmd :u - step target out of current function
dcmd :w - set write access watchpoint
dcmd :z - delete all traced software events
dcmd = - format immediate value
dcmd > - assign variable
dcmd ? - format data from object file
dcmd @ - format data from physical as
dcmd \ - format data from physical as
dcmd array - print each array element's address
dcmd attach - attach to process or core file
dcmd bp - breakpoint at the specified addresses or symbols
dcmd cat - concatenate and display files
dcmd cont - continue target execution
dcmd context - change debugger target context
dcmd dcmds - list available debugger commands
dcmd delete - delete traced software events
dcmd dem - demangle C++ symbol names
dcmd dis - disassemble near addr
dcmd disasms - list available disassemblers
dcmd dismode - get/set disassembly mode
dcmd dmods - list loaded debugger modules
dcmd dump - dump memory from specified address
dcmd echo - echo arguments
dcmd enum - print an enumeration
dcmd eval - evaluate the specified command
dcmd events - list traced software events
dcmd evset - set software event specifier attributes
dcmd files - print listing of source files
dcmd fltbp - stop on machine fault
dcmd formats - list format specifiers
dcmd fpregs - print floating point registers
dcmd grep - print dot if expression is true
dcmd head - limit number of elements in pipe
dcmd help - list commands/command help
dcmd kill - forcibly kill and release target
dcmd list - walk list using member as link pointer
dcmd load - load debugger module
dcmd log - log session to a file
dcmd map - print dot after evaluating expression
dcmd mappings - print address space mappings
dcmd next - step target over next instruction
dcmd nm - print symbols
dcmd nmadd - add name to private symbol table
dcmd nmdel - remove name from private symbol table
dcmd objects - print load objects information
dcmd offsetof - print the offset of a given struct or union member
dcmd print - print the contents of a data structure
dcmd printf - print and format the member(s) of a data structure
dcmd quit - quit debugger
dcmd regs - print general purpose registers
dcmd release - release the previously attached process
dcmd run - run a new target process
dcmd set - get/set debugger properties
dcmd showrev - print version information
dcmd sigbp - stop on delivery of the specified signals
dcmd sizeof - print the size of a type
dcmd stack - print stack backtrace
dcmd stackregs - print stack backtrace and registers
dcmd status - print summary of current target
dcmd step - single-step target to next instruction
dcmd sysbp - stop on entry or exit from system call
dcmd term - display current terminal type
dcmd typedef - create synthetic types
dcmd typeset - set variable attributes
dcmd unload - unload debugger module
dcmd unset - unset variables
dcmd vars - print listing of variables
dcmd version - print debugger version string
dcmd vtop - print physical mapping of virtual address
dcmd walk - walk data structure
dcmd walkers - list available walkers
dcmd whatis - given an address, return information
dcmd whence - show source of walk or dcmd
dcmd which - show source of walk or dcmd
dcmd wp - set a watchpoint at the specified address
dcmd xdata - print list of external data buffers
mdb_kb
mdb_kproc
ctor 0x445910 - target constructor
mdb_kvm
ctor 0x448420 - target constructor
mdb_proc
ctor 0x45ef30 - target constructor
dcmd $? - print status and registers
dcmd $C - print stack backtrace
dcmd $L - print list of the active lwp ids
dcmd $X - print floating point registers
dcmd $Y - print floating point registers
dcmd $c - print stack backtrace
dcmd $i - print signals that are ignored
dcmd $l - print the representative thread's lwp id
dcmd $r - print general-purpose registers
dcmd $x - print floating point registers
dcmd $y - print floating point registers
dcmd :A - attach to process or core file
dcmd :R - release the previously attached process
dcmd :i - ignore signal (delete all matching events)
dcmd :k - forcibly kill and release target
dcmd attach - attach to process or core file
dcmd findstack - find user thread stack
dcmd fpregs - print floating point registers
dcmd gcore - produce a core file for the attached process
dcmd getenv - display an environment variable
dcmd kill - forcibly kill and release target
dcmd regs - print general-purpose registers
dcmd release - release the previously attached process
dcmd setenv - set an environment variable
dcmd stack - print stack backtrace
dcmd stackregs - print stack backtrace and registers
dcmd status - print summary of current target
dcmd tls - lookup TLS data in the context of a given thread
dcmd unsetenv - clear an environment variable
walk thread - walk list of valid thread identifiers
mdb_raw
ctor 0x4605f0 - target constructor
v8
dcmd findjsobjects - find JavaScript objects
dcmd jsframe - summarize a JavaScript stack frame
dcmd jsprint - print a JavaScript object
dcmd jsstack - print a JavaScript stacktrace
dcmd v8array - print elements of a V8 FixedArray
dcmd v8classes - list known V8 heap object C++ classes
dcmd v8code - print information about a V8 Code object
dcmd v8field - manually add a field to a given class
dcmd v8frametypes - list known V8 frame types
dcmd v8function - print JSFunction object details
dcmd v8load - load canned config for a specific V8 version
dcmd v8print - print a V8 heap object
dcmd v8str - print the contents of a V8 string
dcmd v8type - print the type of a V8 heap object
dcmd v8types - list known V8 heap object types
walk jsframe - walk V8 JavaScript stack frames
walk jsprop - walk property values for an object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment