Lightweight Instrumentation for Accurate Performance Monitoring in RTOSes

Bruno Forlin, Kuan Hsun Chen, Nikolaos Alachiotis, Luca Cassano, Marco Ottavi

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

Abstract

Evaluating performance metrics in embedded systems poses challenges, particularly due to the limited set of tools available for monitoring performance counters. In addition, performance evaluation frameworks for Real-Time Operating Systems (RTOSes) often lack the sophistication and capabilities available in general-purpose operating systems like Linux, which benefit from utilities such as perf-event. To bridge this gap, this paper presents an accurate and low-overhead instrumentation utility tailored for RTOSes. Our approach utilizes performance monitoring counters to observe individual user applications within the RTOS environment. Importantly, it enables comprehensive application monitoring by strategically placing probes at points of inherent system interference, thereby minimizing additional overhead. A pre-calibration of these probes allows for fine-grained measurements within user applications. This results in the elimination of 100 % of the overheads for most counters in our test configuration, impacting the context switch by only three additional instructions per monitored counter.

Original languageEnglish
Title of host publication2024 Design, Automation and Test in Europe Conference and Exhibition, DATE 2024 - Proceedings
PublisherIEEE
ISBN (Electronic)9798350348590
Publication statusPublished - 10 Jun 2024
EventDesign, Automation & Test in Europe Conference & Exhibition, DATE 2024 - Valencia, Spain
Duration: 25 Mar 202427 Mar 2024

Publication series

NameProceedings -Design, Automation and Test in Europe, DATE
ISSN (Print)1530-1591

Conference

ConferenceDesign, Automation & Test in Europe Conference & Exhibition, DATE 2024
Abbreviated titleDATE 2024
Country/TerritorySpain
CityValencia
Period25/03/2427/03/24

Keywords

  • 2024 OA procedure
  • Monitoring
  • RISC-V
  • RTOS
  • Trace
  • Hardware Perfomance Counters

Fingerprint

Dive into the research topics of 'Lightweight Instrumentation for Accurate Performance Monitoring in RTOSes'. Together they form a unique fingerprint.

Cite this