Home > Meetings >

Live Q&A - Painless Multithreading: How to Verify RTOS Best Practices in Runtime

Dr. Johan Kraft - Watch Now - Duration: 20:29

Live Q&A with Dr. Johan Kraft for the talk titled Painless Multithreading: How to Verify RTOS Best Practices in Runtime
M↓ MARKDOWN HELP
italicssurround text with
*asterisks*
boldsurround text with
**two asterisks**
hyperlink
[hyperlink](https://example.com)
or just a bare URL
code
surround text with
`backticks`
strikethroughsurround text with
~~two tilde characters~~
quote
prefix with
>

JohanKraft
Score: 0 | 5 months ago | no reply

Hi Tommy. The recorder library we use for FreeRTOS (and soon also Zephyr) can be used for bare metal systems as well, although you need to add suitable instrumentation. This is facilitated by the new SDK, that will be included in Tracealyzer v4.5 (coming soon).
Interrupts can be traced by calling the recorder library from the ISR. The overhead is typically a few microseconds, but depend on the processor and compiler settings. This is not recommended to trace highly frequent or timing-critical ISRs (where microseconds matter) as the overhead might become a problem.

tommypro
Score: 0 | 5 months ago | no reply

Are there trace techniques for bare metal functions/tasks?
How is interrupt tracing handled, and what is the overhead for this?

10:40:47	 From  Dave Nadler : Thanks for a great presentation! You didn't mention potential deadlock detection - Does Tracelyzer include detection of different-order mutex acquisition etc.?
10:43:48	 From  Keith J : Thanks Johan - One of the better explanations of priority inversion and inheritance I've seen.  Will help me explain it to others.  Thank you!
10:45:07	 From  Radu Pralea : Can we also analyze the RTOS implementation (calls)overhead (every platform is different)?
10:45:07	 From  Peter Sik : What can be a measure to help decide if using an RTOS is worth it compared to bare-metal?
10:45:44	 From  Michael Kirkhart : Not directly related, but are there static analysis tools which are RTOS aware and can flag potential deadlocks?
10:45:50	 From  Dave Nadler : Do you mean super-loop when you say bare metal?
10:45:56	 From  Peter Sik : Yes
10:46:12	 From  Gary : Does Tracealyzer support multi-core architectures like stm32h7?
10:46:18	 From  JackW : Is it possible to store Tracealyzer diagnostics in non-volatile memory on an air-gapped embedded device, to be extracted for analysis later?
10:46:45	 From  Gary : Is Tracealyzer RTOS agnostic? Can it be used with Zephyr? 
10:47:08	 From  Dave Comer : How does (or does it) Tracealyizer work with QP?
10:47:44	 From  Erwin : Thanks for the good overview presentation. As Tracealyzer or better the trace library is currently more or less Bound to FreeRTOS hooks, are there any plans to extend further or even provide a bare metal library! JAcob you ar too fast :-)
10:51:31	 From  TommyPro : Sorry, joining late, so this question may have been asked.  Are there trace techniques for bare metal functions/tasks?
10:52:45	 From  TommyPro : How is interrupt tracing handled, and what is the overhead for this?
10:53:37	 From  Dave Nadler : Follow-on to the air-gapped capture question: Can the complete trace stream be written to storage using a background task, for later analysis?
10:54:21	 From  Jorge Conti : Are there static analysis tools which are RTOS aware and can flag potential deadlocks?
10:57:15	 From  Dave Nadler : What different hardware connections are supported from target to host?
10:57:21	 From  Nathan Jones : QP is Miro Samek's framework
10:57:32	 From  Miro Samek : QP is a real-time embedded framework
10:57:39	 From  Michael Kirkhart : https://en.wikipedia.org/wiki/QP_(framework)
10:57:57	 From  Matjaz Finc : You showed an issue in the NASA Pathfinder - was it really running FreeRTOS or I misunderstood?
10:58:21	 From  Miro Samek : Pathfinder ran VxWorks
10:58:29	 From  Matjaz Finc : thanx
10:59:39	 From  Keith J : Thank you Johan!!!
10:59:54	 From  Miro Samek : QP works at a higher level of abstraction than a naked RTOS. QP has its own software tracing (called QS), which predates Tracelyzer by many years.
11:00:29	 From  JackW : Thank you!
11:00:39	 From  Dave Nadler : Thanks Johan!

OUR SPONSORS