A hybrid approach to testing for nonfunctional faults in embedded systems using genetic algorithms. (16th August 2018)
- Record Type:
- Journal Article
- Title:
- A hybrid approach to testing for nonfunctional faults in embedded systems using genetic algorithms. (16th August 2018)
- Main Title:
- A hybrid approach to testing for nonfunctional faults in embedded systems using genetic algorithms
- Authors:
- Yu, Tingting
Srisa‐an, Witawas
Cohen, Myra B.
Rothermel, Gregg - Abstract:
- Summary: Embedded systems are challenging to program correctly, because they use an interrupt‐driven programming paradigm and run in resource‐constrained environments. This leads to various classes of nonfunctional faults that can be detected only by customized verification techniques. These nonfunctional faults are specifically related to usage of resources such as time and memory. For example, the presence of interrupts can induce delays in interrupt servicing and in system execution time. Such delays can occur when multiple interrupt service routines and interrupts of different priorities compete for resources on a given CPU. As another example, stack overflows are caused when the combination of active methods and interrupt invocations on the stack grows too large, and these can lead to data loss and other significant device failures. To detect these types of nonfunctional faults, developers need to estimate worst‐case resource usage. Most existing approaches for calculating such estimates are based on static analysis; however, these have a tendency to overapproximate the resources needed. Dynamic techniques such as random testing, in contrast, often underapproximate resource usage. In this article, we presentSimEspresso, a framework that uses a combination of static analysis and a test case generation algorithm to estimate worst‐case resource usage. There are three different worst‐case resource usage scenarios that we consider: (1) worst‐case execution times,Summary: Embedded systems are challenging to program correctly, because they use an interrupt‐driven programming paradigm and run in resource‐constrained environments. This leads to various classes of nonfunctional faults that can be detected only by customized verification techniques. These nonfunctional faults are specifically related to usage of resources such as time and memory. For example, the presence of interrupts can induce delays in interrupt servicing and in system execution time. Such delays can occur when multiple interrupt service routines and interrupts of different priorities compete for resources on a given CPU. As another example, stack overflows are caused when the combination of active methods and interrupt invocations on the stack grows too large, and these can lead to data loss and other significant device failures. To detect these types of nonfunctional faults, developers need to estimate worst‐case resource usage. Most existing approaches for calculating such estimates are based on static analysis; however, these have a tendency to overapproximate the resources needed. Dynamic techniques such as random testing, in contrast, often underapproximate resource usage. In this article, we presentSimEspresso, a framework that uses a combination of static analysis and a test case generation algorithm to estimate worst‐case resource usage. There are three different worst‐case resource usage scenarios that we consider: (1) worst‐case execution times, (2) worst‐case interrupt latencies, and (3) worst‐case stack usage.SimEspresso first uses static analysis to identify program paths and interrupt interleavings that potentially lead to worst‐case scenarios. It then uses a genetic algorithm to generate test cases that guide program execution down these paths, using these particular interrupt interleavings. We performed an empirical study to evaluate the effectiveness ofSimEspresso ; our results show thatSimEspresso is more effective than static analysis approaches and improves significantly over the state of the art dynamic technique, random test case generation. We also find that when we use only the genetic algorithm, omitting the static analysis, SimEspresso performs almost as effectively, but takes significantly longer to complete its task. Abstract : Modern embedded software systems suffer from various classes of non‐functional faults that are related to usage of resources. To detect these types of faults, developers need to estimate worst‐case resource usage. In this article, we present SimEspresso, a framework that utilizes a combination of static analysis and a test case generation algorithm to estimate worst‐case resource usage. We consider three different worst‐case resource usage: (1) worst‐case execution times, (2) worst‐case interrupt latencies, and (3) worst‐case stack usage. … (more)
- Is Part Of:
- Software testing, verification & reliability. Volume 28:Number 7(2018)
- Journal:
- Software testing, verification & reliability
- Issue:
- Volume 28:Number 7(2018)
- Issue Display:
- Volume 28, Issue 7 (2018)
- Year:
- 2018
- Volume:
- 28
- Issue:
- 7
- Issue Sort Value:
- 2018-0028-0007-0000
- Page Start:
- n/a
- Page End:
- n/a
- Publication Date:
- 2018-08-16
- Subjects:
- embedded systems -- genetic algorithms -- interrupt‐driven programs -- software testing
Computer software -- Testing -- Periodicals
Computer software -- Verification -- Periodicals
Computer software -- Reliability -- Periodicals
005.14 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/stvr.1686 ↗
- Languages:
- English
- ISSNs:
- 0960-0833
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 8321.457500
British Library DSC - BLDSS-3PM
British Library STI - ELD Digital store - Ingest File:
- 8395.xml