Lcrash Command Reference

Lcrash HOWTO
Prev |  | Next

# Chapter 4. Lcrash Command Reference

# 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

Command | Description | Aliases | alpha | i386 | ia64 | s390(x)
--- | --- | --- | --- | --- | --- | ---
base | Display a number in binary, octal, decimal, and hex. |  | x | x | x | x
deftask | Set/display the default task. | dt | x | x | x | x
dis | Display the disassembled code. | id | x | x | x | x
dump | Display dump. | md, od | x | x | x | x
findsym | Display symbol information for given symbol addresses and names. | fsym, symbol | x | x | x | x
help | Display command help. | ? | x | x | x | x
history | Set/display command history of lcrash. | h | x | x | x | x
ldcmds | Dynamically load a library of lcrash commands. |  | x | x | x | x
livedump | Create a system dump from live system memory. |  | x | x | x | x
load | Load a sial macro. |  | x | x | x | x
mktrace | Construct a stack backtrace from scratch. |  |  | x |  |
mmap | Display information for mm_struct structs. |  | x | x | x | x
module | Display information for module structs. |  | x | x | x | x
namelist | Add type information from namelist, list opened namelists. | nmlist, addtypes | x | x | x | x
page | Display information for page structs. |  | x | x | x | x
print | Evaluate and print expressions. | p,pb, pd,po, px | x | x | x | x
quit | Exit lcrash. | q, q! | x | x | x | x
report | Display a crash dump report. |  | x | x | x | x
s390dbf | Display Debug logs. |  |  |  |  | x
sizeof | Determine size of types. Display offset of struct members. | offset | x | x | x | x
stat | Display system statistics and the log_buf array. |  | x | x | x | x
strace | Displays all complete and unique stack traces. |  | x | x | x | x
symtab | Add/remove/list symbol table information. |  | x | x | x | x
task | Display information for task_struct structs. | ps | x | x | x | x
trace | Display stack trace for task_struct. | t | x | x | x | x
unload | Unload sial macros. |  | x | x | x | x
vi | Start a vi session of a sial file/function. |  | x | x | x | x
vtop | Determine the physical address of an virtual one. |  | x | x | x | x
walk | Walk a linked list of kernel structures or memory blocks. |  | x | x | x | x
whatis | Display type information and symbol information. |  | x | x | x | x

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

Prev | Home | Next
User Interface |  | Common Options