
GRMON3-UM
June 2019, Version 3.1.0
203
www.cobham.com/gaisler
95. thread - syntax
NAME
thread - Show OS-threads information or backtrace
SYNOPSIS
thread info ?
cpu#
?
thread bt
id
?
cpu#
?
DESCRIPTION
The thread command may be used to list all threads or to show backtrace of a specified thread. Note that the only
OS:s supported by GRMON are RTEMS, eCos and VxWorks.
thread info ?
cpu#
?
List information about the threads. This should be used to get the id:s for the thread bt command.
thread bt
id
?
cpu#
?
Show backtrace of the thread specified by
id
. The command thread info can be used find the available id:s.
RETURN VALUE
Upon successful completion, thread info returns a list of threads. Each entry is a sublist on the format format:
{
id
name
current
pc
sp
}. See table below for a detailed description.
Name
Description
id
OS specific identification number
name
Name of the thread
current
Boolean describing if the thread is the current running thread.
pc
Program counter
sp
Stack pointer
cpu
Value greater or equal to 0 means that the thread is executing on CPU. Negative value indicates
that the thread is idle.
The thread current command returns information about the current thread only, using the format described for
the return value of the command thread info above.
The other subcommands have no return value.
EXAMPLE
List all threads
grmon3> thread info
NAME TYPE ID PRIO TIME (h:m:s) ENTRY POINT PC ...
* Int. internal 0x09010001 255 0:0:0.000000000 0x4000a5b4 <+0xFFF...
TA1 classic 0x0a010002 1 0:0:0.064709999 Test_task 0x40016ab8 <_Threa...
TA2 classic 0x0a010003 1 0:0:0.061212000 Test_task 0x40016ab8 <_Threa...
TA3 classic 0x0a010004 1 0:0:0.060206998 Test_task 0x40016ab8 <_Threa...
TCL returns:
{151060481 Int. 1 1073784244 0} {167837698 {TA1 } 0 1073834680 0} {167837699
{TA2 } 0 1073834680 0} {167837700 {TA3 } 0 1073834680 0}
SEE ALSO
Section 3.8, “Thread support”
Section 3.7.6, “GDB Thread support”
Содержание GRMON3
Страница 56: ...GRMON3 UM June 2019 Version 3 1 0 56 www cobham com gaisler...
Страница 114: ...GRMON3 UM June 2019 Version 3 1 0 114 www cobham com gaisler...
Страница 123: ...GRMON3 UM June 2019 Version 3 1 0 123 www cobham com gaisler dcache...
Страница 156: ...GRMON3 UM June 2019 Version 3 1 0 156 www cobham com gaisler SEE ALSO Section 6 13 On chip logic analyzer driver...
Страница 208: ...GRMON3 UM June 2019 Version 3 1 0 208 www cobham com gaisler SEE ALSO Section 3 5 Tcl integration...