hal
A command of the separate bcma command line; see Commands for other chip families.
HAL debug access.
hal dma trace|notrace|track|status|fill|nofill|sys [-|<prefix>]
dma dump [bytes|chunks|raw]
Built-in help
Track or trace memory allocations through the HAL API.
Traced allocations will be shown in real time according
to the specified trace prefix list. Special prefix string
'*' means all and '-' means off.
The trace function also supports an exclusion list of
prefix strings (notrace).
Tracked allocations will be shown via the dump command
according to the specified track prefix. Specifying 'bytes'
or 'chunks' will dump a consolidated list of allocation IDs
sorted either by number of bytes or chunks allocated.
Specifying 'raw' will dump additional internal control data
for each tracked allocation.
A tilde (~) in the prefix will match any uppercase character.
This feature can be used to match a prefix which is a
sub-string of another prefix. For example 'bcmlt~' will
match 'bcmltHdl', but not 'bcmltmInfo', while 'bcmlt' will
match both.
Allocated and freed memory will be filled with a fixed
pattern by default. Use nofill/fill to turn this off/on.
The sys command will extract statistics from the underlying
(system-provided) DMA memory allocator (if supported).
Built-in examples
dma status
dma trace *
dma trace bcmptm
dma trace -
dma notrace bcmpkt
dma track bcmpc
dma nofill
dma sys
dma dump bytes