ALPM
A command of the separate bcma command line; see Commands for other chip families.
Debug command for ALPM. Use this tool only when PTRM-ALPM is idle, meaning there is no commits to ALPM LTs in parallel.
ALPM show [Mtop=0|1] [Pipe=0|1|..] [db=0|1|2|3] [OutputFile=<file>] \
[Verbose=0|1] [Brief=0|1]
recreate [Mtop=0|1]
dump [Mtop=0|1] [Pipe=0|1|..] [db=0|1|2|3] [Index=<l1_index>] \
[Levels=1|2|3]
sanity [Mtop=0|1] [lt=<table name>]
Built-in help
show
If the 'db' parameter is not set, default db=0 is used.
If the 'Pipe' is not set, default pipe=0 is used.
If the 'Verbose' parameter is not set, default verbose=0 is used.
If the 'Brief' parameter is not set, default brief=0 is used.
If the 'OutputFile' parameter is set, the output
will be logged to the specified file name.
recreate
Deinit and recreate RM-ALPM states based on PT-cache.
It is expected after recreate, the show result is same as
the one prior to recreate. Only exceptition is number of reads.
After recreate done, time elapsed for this
operation will be shown.
dump
Dump ALPM DB table from top to bottom
If 'db' is not set, default db=0 is used.
If 'Index' is not set, it dumps all index.
If 'Levels' is not set, default levels=1.
If 'Pipe' is not set, default pipe=0 is used.
sanity
Verify all existing entries can be correctly located with
each's pivot (and pre-pivot if any). This tool is not aimed
to verifying everything, just focus on the trie. It does
cross check between various tries: the level-1 pivot trie,
level-2 pivot trie, level-3 pivot trie, the bucket trie holding
the pivot, and the bucket trie holding the route entry.
Built-in examples
show
show m=1
show v=1
show v=1 db=0
show v=1 db=0 b=1
show v=1 db=0 p=1
show v=1 of=show.log
recreate
dump
dump m=1
dump db=0 index=0x400 levels=1
dump db=2 levels=3
dump db=2 levels=3 p=0
sanity
sanity m=1
sanity lt=L3_IPV4_UC_ROUTE