Explore a 41-minute conference talk that introduces a platform-neutral subsystem for Zephyr tracing and profiling based on compiler function instrumentation. Learn how to leverage the -finstrumentation-functions flag in Clang and GCC compilers to generate code tracing and profiling information without relying on proprietary tools or platform-specific limitations. Discover the potential applications of this new tool, including creating instrumented call graphs with timestamps and calculating runtime metrics for top functions. Gain insights into various data visualization methods, such as flame graphs, to effectively analyze the collected information. Understand how this approach overcomes the limitations of existing profiling and tracing features in Zephyr, offering a more versatile and accessible solution for developers working with the Zephyr real-time operating system.
Overview
Syllabus
Leveraging Compiler Code Instrumentation for Zephyr Tracing &... - Gustavo Romero & Kevin Townsend
Taught by
Linux Foundation