!rtthread
Displays RTSS thread information.
Syntax
!rtthread <thread> [<level>]
Parameters
thread
An RTSS thread object or process object. This parameter is required. If you specify a process object, !rtthread displays information for each thread found.
level [optional]
This optional parameter specifies the level of detail to return for the thread parameter.
| Value | Returns |
|---|---|
|
0 (default) |
Summary information including name, ID, and address. |
|
1 |
Detailed information, including summary information plus thread address, thread ID, state, entry point for the thread, local memory flags, native priority, current priority, last error, stack address, stack end, stack size, stack list, and thread entry argument. |
Remarks
For information on supported Thread Flags, see About Thread Flags and Process Flags.
For a glossary of common terms found in command output, see wRTOS WinDbg Extension Commands Glossary.
This command is supported for:
Note: The stack trace for a ready thread (Thread State = Ready to run or running) is based on the stack top saved at the time the thread is scheduled. It may not match the current stack trace if the thread has executed additional function calls.
Examples
rtthread with a process object and default detail level
!rtthread 0xfffffa80055b2000
Thread Summary Information for Process 0xfffffa80055b2000:
Process Name: "C:\Program Files\IntervalZero\wRTOS SDK\2.0\Samples\Rtdll\Bin\RTSSDebug\explicitloadrtdll.rtss"
PID: 0x000003ed
TID: 0x00000012 Flags: 0x00000001
No stop count: 0x00000000 State: Sleeping
Native priority: 0x00000000 Object: 0xfffffa80054f7000
Current priority: 0x00000000 Affinity mask: 0x000000000000003c
Affined processor: 0x00000002
Process Name: "C:\Program Files\IntervalZero\wRTOS SDK\2.0\Samples\Rtdll\Bin\RTSSDebug\explicitloadrtdll.rtss"
PID: 0x000003ed
TID: 0x00000013 Flags: 0x00000060
No stop count: 0x00000000 State: Ready to run or running
Native priority: 0x0000007f Object: 0xfffffa80054f1000
Current priority: 0x0000007f Affinity mask: 0x000000000000003c
Affined processor: 0x00000002
rtthread with a process object and detail level 1
Passing a process object instead of a thread object will have the same effect as described above.
!rtthread 0xfffffa80055b2000 1
Thread Extended Information for Process 0xfffffa80055b2000:
Process Name: "C:\Program Files\IntervalZero\wRTOS SDK\2.0\Samples\Rtdll\Bin\RTSSDebug\explicitloadrtdll.rtss"
PID: 0x000003ed
TID: 0x00000012 Flags: 0x00000001
No stop count: 0x00000000 State: Sleeping
Native priority: 0x00000000 Object: 0xfffffa80054f7000
Current priority: 0x00000000 Affinity mask: 0x000000000000003c
Affined processor: 0x00000002
Entry point: 0xfffff88008e18f80 Entry argument: 0xfffffa8008cab000
Ticks executed: 0x0000000000000006 Switch in count: 0x000000000000009a
Last error: 0x0000000000000000 Stack size: 0x00008000
Stack address: 0xfffff8800892dd50 Stack end: 0xfffff88008926000
Stack Trace:
Child-SP RetAddr Frame IP
0xfffff8800892dde0 0xfffff88008e357ff 0xfffff88008e35b31 (wRTOS_Rtss!RtWaitForSingleObjectEx+0x321)
0xfffff8800892de50 0xfffffa8008cbcabc 0xfffff88008e357ff (wRTOS_Rtss!RtWaitForSingleObject+0x3f)
0xfffff8800892de90 0xfffffa8008d1cc7f 0xfffffa8008cbcabc (rttcpip!RtnIsDeviceOnline+0x2c8c)
0xfffff8800892dee0 0xfffffa8008d1a53a 0xfffffa8008d1cc7f (rttcpip!getservbyport+0x5d5cf)
0xfffff8800892df20 0xfffff88008e18fc4 0xfffffa8008d1a53a (rttcpip!getservbyport+0x5ae8a)
0xfffff8800892df50 0xfffff88008e31679 0xfffff88008e18fc4 (wRTOS_Rtss!RtssDynamicProcessStartup+0x44)
0xfffff8800892df80 0x0000000000000000 0xfffff88008e31679 (wRTOS_Rtss!RtssTmThreadStartupCode+0x2d9)
Process Name: "C:\Program Files\IntervalZero\wRTOS SDK\2.0\Samples\Rtdll\Bin\RTSSDebug\explicitloadrtdll.rtss"
PID: 0x000003ed
TID: 0x00000013 Flags: 0x00000060
No stop count: 0x00000000 State: Ready to run or running
Native priority: 0x0000007f Object: 0xfffffa80054f1000
Current priority: 0x0000007f Affinity mask: 0x000000000000003c
Affined processor: 0x00000002
Entry point: 0xfffff8800acf0500 Entry argument: 0xfffffa800827ce90
Ticks executed: 0x0000000000000000 Switch in count: 0x0000000000000002
Last error: 0x0000000000000000 Stack size: 0x00008000
Stack address: 0xfffff880099e3ec0 Stack end: 0xfffff880099dc000
Stack Trace:
Child-SP RetAddr Frame IP
0xfffff880099e3f50 0xfffff8800acf051f 0xfffffa8005601013 (explicitloadrtdll!TimerHandler+0x13)
0xfffff880099e3f80 0xfffff8800ace4d67 0xfffff8800acf051f (wRTOS_Rtss!RtssTimerHandler+0x1f)
0xfffff880099e3fb0 0x0000000000000000 0xfffff8800ace4d67 (wRTOS_Rtss!RtssTmThreadStartupCode+0x34f)
rtthread with Current CLOS information
Thread Summary Information for Process 0xffffb00660130010:
Process Name: "C:\Program Files\IntervalZero\wRTOS\bin\RtTcpip.rtss"
PID: 0x000003eb
TID: 0x0000000d Flags: 0x00000021
No stop count: 0x00000001 State: Wait on synch object
Native priority: 0x00000000 Object: 0xffffb00660196050
Current priority: 0x00000000 Affinity mask: 0x00000000000003fc
Affined processor: 0x00000002 Current CLOS: 0x00000006
Requirements
| Minimum supported version |
|---|
|
wRTOS 1.0 SDK |