Looking into it. The event is indeed defined on the TraceX side, but I'm not sure the sequence that inserts this event on the ThreadX side. Will get back to you.
Queries related to TraceX Icon R
fei
46
Reputation points
Hi,
I have some queries related to TraceX Icon R:
- The event of icon R should be inserted by TraceX Tool, right?
Because I can not find this event (event id is 6, means Running) in trace buffer. - How does TraceX Tool insert this R event?
From TraceX document, it says "This event represents running within a thread context or idle system. It is used to illustrate subsequent changes
in context as a result of an interrupt". So R event only inserted before or after interrupt? How to calcute the timestamp of R event?
I noticed that "Delta Previous" of R event is 0 ticks mostly, but sometimes it will be xx ticks (e.g 12 ticks), why?
Thanks!
3 answers
Sort by: Most helpful
-
-
-
Ken Maxwell 706 Reputation points Microsoft Employee
2022-06-27T16:56:25.373+00:00 Further detail added by a colleague: The TML_TRACE_RUNNING event is something TraceX inserts to help better display what is happening, i.e., you will not find it in the actual trace buffer. This is mainly used to show execution in threads that are not making any ThreadX API calls. We insert the TML_TRACE_RUNNING event just so we can show that the thread was running when the interrupt happened."