[Crash-utility] How to use scripts in crash?

Lei Wen leiwen at marvell.com
Wed Mar 7 15:57:40 UTC 2012


Hi Dave,

Do you have some guide doc that describe how to use the scripts in crash?
Like the example, I want to print out current filesystems registered.
I then need do following
1. using "p" to get "file_systems" symbol value
2. using "list" with command as "list -o file_system_type.next -s file_system_type.name,fs_flags <the file_systems  symbol value>"

So if the previous file_systems symbol value could be stored, and then I don't need to copy the "p" result to "list" command by hand, but could let script do such kind of thing.

I also notice there is "sial" script support in crash, but that is too complex for me... I don't know how to start a basic usage with that... Is there any detailed doc that could help me from a start?

Thanks,
Lei




More information about the Crash-utility mailing list