Hybrid dynamic data race detection in SystemC
16th Conference on Languages, Design Methods, and Tools for Electronic System Design, FDL 2014, Munich, Almanya, 14 - 16 Ekim 2014, cilt.361, ss.41-54, (Tam Metin Bildiri)
- Yayın Türü: Bildiri / Tam Metin Bildiri
- Cilt numarası: 361
- Doi Numarası: 10.1007/978-3-319-24457-0_3
- Basıldığı Şehir: Munich
- Basıldığı Ülke: Almanya
- Sayfa Sayıları: ss.41-54
- Boğaziçi Üniversitesi Adresli: Evet
Özet
Data races are one of the most common problems in concurrent programs. As SystemC standard allows nondeterministic scheduling of processes, this leads to many concurrency problems. Data races are the most commonly encountered concurrency problems and they need to be detected for improving SoC design quality. Different executions of the same concurrent program may lead to unexpected results due to race conditions. We develop a hybrid dynamic data race detection algorithm for SystemC/TLM designs that adopts the well-studied dynamic race detection algorithms; lockset and happens-before. We develop a segment-based technique where a segment is defined as a set of consecutive memory accesses by a single thread. Experiments show that our solution has fewer false positives than lockset and fewer false negatives than happens-before algorithms. Our implementation uses dynamic binary instrumentation allowing us to work on designs for which source codes may not be available such as pre-compiled IPs.