Categories

{{ selectedCategory.name }}

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!

OSEK / AUTOSAR: How to export Profiler data to BTF format?

23-Dec-2021

BTF (Best Trace Format) s a CSV-based trace format supported by different timing tool vendors. The winIDEA Analyzer can export OS-aware traces into BTF.


BTF export requires Task-State information.


BTF Export via iTCHi 

If you already use iTCHi for Task-State Profiling, iTCHi can automatically create the BTF mapping, and the BTF export should work.

If you use Running Task/ISR Profiling, this doesn't include State information by default. Using iTCHi, you can configure the winIDEA Analyzer so that Task and ISR states for BTF export become available.

The recommended way to export BTF is a Task-State trace. Only use the approaches below in cases where Task-State tracing is not feasible.


1. Make sure two attributes listed below are included in your iTCHi configuration file. You can find more information in the Basic Configuration section.

  • orti_file
  • profiler_xml_file 

2. Execute iTCHI and use the following command:

itchi-bin.exe --running_taskisr_btf


BTF Export via winIDEA

1. Load symbols via the Load Symbols Only button in the winIDEA Debug toolbar to ensure that the latest iSYSTEM Profiler XML is in use.

2. Record a trace with the necessary configuration to record Tasks, ISRs and optionally Runnables.

3. Press Export button in the Profiler Timeline toolbar. 

4. Select BTF format export.

5. Press Export


More resources:


Was this answer helpful?

Sorry this article didn't answer your question, we'd love to hear how we can improve it.
Note: This form won't submit a case. We'll just use it to make this article better.

Similar topics

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No similar topics found!

Other topics in the same category

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!