Cross-Kernel Control-Flow-Graph Analysis for Event-Driven Real-Time Systems

被引:7
作者
Dietrich, Christian [1 ]
Hoffmann, Martin [1 ]
Lohmann, Daniel [1 ]
机构
[1] Univ Erlangen Nurnberg, Nurnberg, Germany
关键词
global control-flow graph; static analysis; OSEK; AUTOSAR; static system tailoring; whole-system optimization;
D O I
10.1145/2670529.2754963
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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 inter-procedural 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.
引用
收藏
页数:10
相关论文
共 24 条
[1]  
Allen F. E., 1970, ACM Sigplan Notices, V5, P1, DOI DOI 10.1145/390013.808479
[2]  
[Anonymous], 2013, SPEC OP SYST VERS 51
[3]  
[Anonymous], 2004, Guidelines for the Use of the C Language in Critical Systems
[4]  
[Anonymous], LECT NOTES INFORM
[5]   Inter-task register-allocation for static operating systems [J].
Barthelmann, V .
ACM SIGPLAN NOTICES, 2002, 37 (07) :149-154
[6]   Control-flow checking via regular expressions [J].
Benso, A ;
Di Carlo, S ;
Di Natale, G ;
Prinetto, P ;
Tagliaferri, L .
10TH ASIAN TEST SYMPOSIUM, PROCEEDINGS, 2001, :299-303
[7]  
Bertran Ramon, 2006, WSHOP INT OP SYST CO
[8]  
Broy M., 2006, 28th International Conference on Software Engineering Proceedings, P33, DOI 10.1145/1134285.1134292
[9]  
Cooling J.E., 2003, SOFTWARE ENG REAL TI
[10]  
Erhardt C., 2011, JTRES'11: Proceedings of the 9th International Workshop on Java Technologies for Real-Time and Embedded Systems. (York, P96, DOI DOI 10.1145/2043910.2043927