EasyManua.ls Logo

COBHAM GRMON3 - Page 146

COBHAM GRMON3
239 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
GRMON3-UM
June 2019, Version 3.1.0
146 www.cobham.com/gaisler
51. inst - syntax
NAME
inst - Print AHB transfer or instruction entries in the trace buffer
SYNOPSIS
inst ?length?
inst subcommand ?args...?
DESCRIPTION
inst ?length? ?cpu#?
Print the inst trace buffer. The ?length? entries will be printed, default is 10. Use cpu# to select single
CPU.
inst filter ?cpu#?
Print the instruction trace buffer filter.
inst filter ?flt? ?cpu#?
Set the instruction trace buffer filter. See DSU manual for values of flt. (Only available in some DSU4
implementations). Use cpu# to set filter select a single CPU.
inst filter asildigit ?val...? ?cpu#?
Set which last digits that should be filtered. Only valid if filter is set to 0xE. (Only available in some DSU
implementations)
inst filter range ?index? ?addr? ?mask? ?excl? ?cpu#?
Setup a trace filter to include or exclude instructions that is within the range. Up to four range filters is
supported. (Only available in some DSU implementations)
RETURN VALUE
Upon successful completion, inst returns a list of trace buffer entries. Each entry is a sublist on the format format:
{INST time addr inst result trap em mc}. Detailed description about the different fields can be found
in the DSU core documentation in document grip.pdf [http://gaisler.com/products/grlib/grip.pdf]
The other subcommands have no return value.
EXAMPLE
Print 10 rows
grmon3> inst
TIME ADDRESS INSTRUCTION RESULT
266951 000021D4 restore %o0, %o0 [0000000D]
266954 000019E4 mov 0, %g1 [00000000]
266955 000019E8 mov %g1, %i0 [00000000]
266956 000019EC ret [000019EC]
266957 000019F0 restore [00000000]
266960 0000106C call 0x00009904 [0000106C]
266961 00001070 nop [00000000]
266962 00009904 mov 1, %g1 [00000001]
266963 00009908 ta 0x0 [ TRAP ]
267009 00000800 ta 0x0 [ TRAP ]
TCL returns:
{INST 266951 0x000021D4 0x91E80008 0x0000000D 0 0 0} {INST 266954 0x000019E4
0x82102000 0x00000000 0 0 0} {INST 266955 0x000019E8 0xB0100001 0x00000000
0 0 0} {INST 266956 0x000019EC ...
Print 2 rows
grmon3> inst 2
TIME ADDRESS INSTRUCTION RESULT
266951 000021D4 restore %o0, %o0 [0000000D]
266954 000019E4 mov 0, %g1 [00000000]
TCL returns:

Table of Contents