Cross-Kernel Control-Flow--Graph Analysis for Event-Driven Real-Time Systems
Authors:
Open Access
- 4 June 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-10
Abstract
Embedded real-time control systems generally have a dedicated purpose and fixed set of functionalities. This manifests in a large amount of implicit and explicit static knowledge, available already at compile time. Modern compilers can extract and exploit this information to perform extensive whole-program analyses and interprocedural optimizations. However, these analyses typically end at the application--kernel boundary, thus control-flow transitions between different threads are not covered, yet. This restriction stems from the pessimistic assumption of a probabilistic scheduling policy of the underlying operating system, impeding detailed predictions of the overall system behavior. Real-time operating systems, however, do provide deterministic and exactly specified scheduling decisions, as embedded control systems rely on a timely and precise behavior. In this paper, we present an approach that incorporates the RTOS semantics into the control-flow analysis, to cross the application--kernel boundary. By combining operating system semantics, the static system configuration and the application logic, we determine 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, enables us to tailor the operating system kernel more closely to the particular application scenario. On the example of a real-world safety-critical control system, we present two possible use cases: Run-time optimizations, by means of specialized system calls for each call site, allow to speed up the kernel execution path by 33 percent in our benchmark scenario. An automated generation of OS state assertions on the expected system behavior, targeting transient hardware fault tolerance, leverages significant robustness improvements.Keywords
This publication has 14 references indexed in Scilit:
- dOSEK: the design and implementation of a dependability-oriented static embedded kernel2015
- Exploiting static application knowledge in a Java compiler for embedded systems2011
- Modeling and Verifying the Code-Level OSEK/VDX Operating System with CSP2011
- Challenges in automotive software engineering2006
- Control-flow checking by software signaturesIEEE Transactions on Reliability, 2002
- Inter-task register-allocation for static operating systems2002
- Specialization tools and techniques for systematic optimization of system softwareACM Transactions on Computer Systems, 2001
- Control-flow checking via regular expressions2001
- A fast algorithm for finding dominators in a flowgraphACM Transactions on Programming Languages and Systems, 1979
- Control flow analysisACM SIGPLAN Notices, 1970