Queries related to TraceX Icon R

fei 46 Reputation points
2022-06-22T13:02:24.567+00:00

Hi,
I have some queries related to TraceX Icon R:

  1. 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.
  2. 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!

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
335 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Ken Maxwell 706 Reputation points Microsoft Employee
    2022-06-24T16:01:17.8+00:00

    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.


  2. fei 46 Reputation points
    2022-06-27T05:29:05.327+00:00

    215149-tracex.png

    0 comments No comments

  3. 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."

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.