Global Optimization of Fixed-Priority Real-Time Systems by RTOS-Aware Control-Flow Analysis

Author:

Dietrich Christian1,Hoffmann Martin1,Lohmann Daniel1

Affiliation:

1. Friedrich-Alexander-Universität Erlangen-Nürnberg, Erlangen, Germany

Abstract

Cyber--physical systems typically target a dedicated purpose; their embedded real-time control system, such as an automotive control unit, is designed with a well-defined set of functionalities. On the software side, this results in a large amount of implicit and explicit static knowledge about the system and its behavior already at compile time. Compilers have become increasingly better at extracting and exploiting such static knowledge. For instance, many optimizations have been lifted up to the interprocedural or even to the whole-program level. However, whole-program optimizations generally stop at the application--kernel boundary: control-flow transitions between different threads are not yet analyzed. In this article, we cross the application--kernel boundary by combining the semantics of a real-time operating system (RTOS) with deterministic fixed-priority scheduling (e.g., OSEK/AUTOSAR, ARINC 653, μITRON, POSIX.4) and the explicit application knowledge to enable system-wide, flow-sensitive compiler optimizations. We present two methods to extract a cross-kernel, control-flow--graph that provides a global view on all possible execution paths of a real-time system. Having this knowledge at hand, we tailor the operating system kernel more closely to the particular application scenario. For the example of a real-world safety-critical control system, we present three possible use cases. (1) Runtime optimizations, by means of specialized system calls for each call site, allow one speed up the kernel execution path by 28% in our benchmark scenario. Furthermore, we target transient hardware fault tolerance with two automated software-based countermeasures: (2) generation of OS state assertions on the expected system behavior, and (3) a system-wide dominator-region based control-flow error detection, both of which leverage significant robustness improvements.

Funder

German Research Foundation

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference32 articles.

1. Airlines Electronic Engineering Committee (AEEC). 2003. Avionics Application Software Standard Interface (ARINC Specification 653-1). Airlines Electronic Engineering Committee (AEEC). 2003. Avionics Application Software Standard Interface (ARINC Specification 653-1).

2. Design and evaluation of system-level checks for on-line control flow error detection

3. Control flow analysis

4. Inter-task register-allocation for static operating systems

5. Control-flow checking via regular expressions

Cited by 9 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. MultiSSE: Static Syscall Elision and Specialization for Event-Triggered Multi-Core RTOS;2023 IEEE 29th Real-Time and Embedded Technology and Applications Symposium (RTAS);2023-05

2. ARA: Static Initialization of Dynamically-Created System Objects;2021 IEEE 27th Real-Time and Embedded Technology and Applications Symposium (RTAS);2021-05

3. Hubs for VirtuosoNext: Online verification of real-time coordinators;Science of Computer Programming;2021-03

4. Dependability Aspects in Configurable Embedded Operating Systems;Dependable Embedded Systems;2020-12-10

5. SSCFM: Separate Signature-Based Control Flow Error Monitoring for Multi-Threaded and Multi-Core Environments;Electronics;2019-02-01

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3