Chapter 4. Lcrash Command Reference

Table of Contents
4.1. Command Overview
4.2. Common Options
4.3. base
4.4. deftask
4.5. dis
4.6. dump
4.7. findsym
4.8. help
4.9. history
4.10. ldcmds
4.11. livedump
4.12. load
4.13. mktrace
4.14. mmap
4.15. module
4.16. namelist
4.17. page
4.18. print
4.19. quit
4.20. report
4.21. s390dbf
4.22. sizeof
4.23. stat
4.24. strace
4.25. symtab
4.26. task
4.27. trace
4.28. unload
4.29. vi
4.30. vtop
4.31. walk
4.32. whatis

4.1. Command Overview

Lcrash provides a whole bunch of commands. For some commands synonyms are provided. Furthermore the behavior of commands may be platform dependent or even a command is not available on a platform. A short overview of lcrash commands is given in table Table 4-1.

The following subsections explain lcrash commands in more detail. The commands can be grouped as shown in table Table 4-2 - hopefully this helps not to loose the overall view of the commands.

Table 4-1. Overview of lcrash commands

CommandDescriptionAliasesalphai386ia64s390(x)
baseDisplay a number in binary, octal, decimal, and hex. xxxx
deftaskSet/display the default task.dtxxxx
disDisplay the disassembled code.idxxxx
dumpDisplay dump.md, odxxxx
findsymDisplay symbol information for given symbol addresses and names.fsym, symbolxxxx
helpDisplay command help.?xxxx
historySet/display command history of lcrash.hxxxx
ldcmdsDynamically load a library of lcrash commands. xxxx
livedumpCreate a system dump from live system memory. xxxx
loadLoad a sial macro. xxxx
mktraceConstruct a stack backtrace from scratch.  x  
mmapDisplay information for mm_struct structs.  xxxx
moduleDisplay information for module structs. xxxx
namelistAdd type information from namelist, list opened namelists.nmlist, addtypesxxxx
pageDisplay information for page structs. xxxx
printEvaluate and print expressions.p,pb, pd,po, pxxxxx
quitExit lcrash.q, q!xxxx
reportDisplay a crash dump report. xxxx
s390dbfDisplay Debug logs.    x
sizeofDetermine size of types. Display offset of struct members.offsetxxxx
statDisplay system statistics and the log_buf array. xxxx
straceDisplays all complete and unique stack traces. xxxx
symtabAdd/remove/list symbol table information. xxxx
taskDisplay information for task_struct structs.psxxxx
traceDisplay stack trace for task_struct.txxxx
unloadUnload sial macros. xxxx
viStart a vi session of a sial file/function. xxxx
vtopDetermine the physical address of an virtual one. xxxx
walkWalk a linked list of kernel structures or memory blocks. xxxx
whatisDisplay type information and symbol information. xxxx

Table 4-2. Classification of lcrash commands

General Purpose base, help, history, ldcmds, quit
Data Inspection dis, dump, print, vtop, walk
Accessing Symbol and Type Information findsym, namelist, sizeof, symtab, whatis
Support for Special Structures deftask, mmap, module, page, task
Stack Tracing mktrace, strace, trace,
Sial Support load, unload, vi
Other Commands livedump, report, s390dbf, stat