Lightweight Instrumentation for Accurate Performance Monitoring in RTOSes

被引:0
作者
Fortin, Bruno [1 ]
Chen, Kuan-Hsun [1 ]
Alachiotis, Nikolaos [1 ]
Cassano, Luca [2 ]
Ottaviani, Marco [1 ,3 ]
机构
[1] Univ Twente, Enschede, Netherlands
[2] Politecn Milan, Milan, Italy
[3] Univ Roma Tor Vergata, Rome, Italy
来源
2024 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION, DATE | 2024年
关键词
Hardware Perfomance Counters; Monitoring; RISC-V; RTOS; Trace;
D O I
10.23919/DATE58400.2024.10546790
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页数:2
相关论文
共 5 条
[1]   SoK: The Challenges, Pitfalls, and Perils of Using Hardware Performance Counters for Security [J].
Das, Sanjeev ;
Werner, Jan ;
Antonakakis, Manos ;
Polychronakis, Michalis ;
Monrose, Fabian .
2019 IEEE SYMPOSIUM ON SECURITY AND PRIVACY (SP 2019), 2019, :20-38
[2]  
FreeRTOS, 2023, Freertos-kernel: Portable gcc risc-v code
[3]   Enhancing PAPI with Low-Overhead rdpmc Reads [J].
Liu, Yan ;
Weaver, Vincent M. .
PROGRAMMING AND PERFORMANCE VISUALIZATION TOOLS, 2019, 11027 :3-20
[4]  
Weaver Vincent M., 2013, IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS 2013), P215
[5]  
Weaver VM, 2015, INT SYM PERFORM ANAL, P102, DOI 10.1109/ISPASS.2015.7095789