Static Analysis of Embedded Real-Time Concurrent Software with Dynamic Priorities

Antoine Miné 1
1 APR - Algorithmes, Programmes et Résolution
LIP6 - Laboratoire d'Informatique de Paris 6
Abstract : In previous work, we developed a sound static analysis by abstract interpretation to check the absence of run-time errors in concurrent programs, focusing on embedded C programs composed of a fixed set of threads in a shared memory. The method is thread-modular: it considers each thread independently, analyzing them with respect to an abstraction of the effect of the other threads, so-called interference, which are also inferred automatically as part of analyzing the threads. The analysis thus proceeds in a series of rounds that reanalyze all threads, gathering an increasing set of interference, until stabilization. We proved that this method is sound and covers all possible thread interleavings. This analysis was integrated into the Astrée industrial-scale static analyzer, deployed in avionics and automotive industries. In this article, we consider the more specific case of programs running under a priority-based real-time scheduler, as is often the case in embedded systems. In such programs, higher priority threads cannot be preempted by lower priority ones (except when waiting explicitly for some resource). The programmer exploits this property to reduce the reliance on locks when protecting critical sections. We show how our analysis can be refined through partitioning in order to take into account the real-time hypothesis, remove spurious interleavings, and gain precision on programs that rely on priorities. Our analysis supports in particular dynamic priorities: we handle explicit modifications of the priorities by the program, as well as implicit ones through the priority ceiling protocol. We illustrate our construction formally on an idealized language. Following previous work, we first provide a concrete semantics in thread-modular denotational form that is complete for safety properties, and then show how to apply classic abstractions to obtain an effective static analyzer, able to detect all run-time errors, data-races, as well as deadlocks. Finally, we briefly discuss our implementation inside the Astrée analyzer and ongoing experimentation, with results limited for now to small programs.
Type de document :
Communication dans un congrès
6th International Workshop on Numerical and Symbolic Abstract Domains (NSAD 2016), Sep 2016, Edimbourg, United Kingdom. Elsevier, 331, pp.3-39, 2017, Electronic Notes in Theoretical Computer Science. 〈http://nsad16.di.univr.it/〉. 〈10.1016/j.entcs.2017.02.002〉
Liste complète des métadonnées

https://hal.sorbonne-universite.fr/hal-01489293
Contributeur : Antoine Miné <>
Soumis le : mardi 14 mars 2017 - 13:57:24
Dernière modification le : mercredi 21 mars 2018 - 18:58:00
Document(s) archivé(s) le : jeudi 15 juin 2017 - 14:15:08

Fichier

article_ok.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

Collections

Citation

Antoine Miné. Static Analysis of Embedded Real-Time Concurrent Software with Dynamic Priorities. 6th International Workshop on Numerical and Symbolic Abstract Domains (NSAD 2016), Sep 2016, Edimbourg, United Kingdom. Elsevier, 331, pp.3-39, 2017, Electronic Notes in Theoretical Computer Science. 〈http://nsad16.di.univr.it/〉. 〈10.1016/j.entcs.2017.02.002〉. 〈hal-01489293〉

Partager

Métriques

Consultations de la notice

196

Téléchargements de fichiers

48