{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,30]],"date-time":"2026-09-30T17:33:11Z","timestamp":1790789591360,"version":"4.1.0"},"reference-count":27,"publisher":"Association for Computing Machinery (ACM)","issue":"5s","license":[{"start":{"date-parts":[[2014,12,15]],"date-time":"2014-12-15T00:00:00Z","timestamp":1418601600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Embed. Comput. Syst."],"published-print":{"date-parts":[[2014,12,15]]},"abstract":"<jats:p>In software debugging, trace generation techniques are used to resolve highly complex bugs. However, the emulators increasingly used for embedded software development do not yet offer the types of trace generation infrastructure available in hardware. In this article, we make changes to the ARM ISA emulation of the QEMU emulator to allow for continuous instruction-level trace generation. Using a standard GDB client, tracepoints can be inserted to dynamically log registers and memory addresses without altering executing code. The ability to run trace experiments in five different modes allows the scope of trace generation to be narrowed as needed, down to the level of a single Linux process. Our scheme collects the execution traces of a Linux process on average between 9.6x--0.7x the speed of existing QEMU trace capabilities, with 96.7% less trace data volume. Compared to a software-instrumented tracing scheme, our method is both unobtrusive and performs on average between 3--4 orders of magnitude faster.<\/jats:p>","DOI":"10.1145\/2678022","type":"journal-article","created":{"date-parts":[[2014,12,16]],"date-time":"2014-12-16T13:39:54Z","timestamp":1418737194000},"page":"1-18","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":10,"title":["Dynamically Instrumenting the QEMU Emulator for Linux Process Trace Generation with the GDB Debugger"],"prefix":"10.1145","volume":"13","author":[{"given":"Bojan","family":"Mihajlovi\u0107","sequence":"first","affiliation":[{"name":"McGill University, Quebec, Canada"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"\u017deljko","family":"\u017dili\u0107","sequence":"additional","affiliation":[{"name":"McGill University, Quebec, Canada"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Warren J.","family":"Gross","sequence":"additional","affiliation":[{"name":"McGill University, Quebec, Canada"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2014,12,15]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1109\/DSN.2013.6575355"},{"key":"e_1_2_1_2_1","unstructured":"ARM. 2011. Embedded trace macrocell architecture specification. http:\/\/infocenter.arm.com\/help\/topic\/com.arm.doc.ihi0014q\/IHI0014Q etm architecture spec.pdf.  ARM. 2011. Embedded trace macrocell architecture specification. http:\/\/infocenter.arm.com\/help\/topic\/com.arm.doc.ihi0014q\/IHI0014Q etm architecture spec.pdf."},{"key":"e_1_2_1_3_1","unstructured":"ARM. 2013. ARM fast models. http:\/\/www.arm.com\/products\/tools\/models\/fast-models.  ARM. 2013. ARM fast models. http:\/\/www.arm.com\/products\/tools\/models\/fast-models."},{"key":"e_1_2_1_4_1","unstructured":"ARM. 2001. ARM developer suite: Debug target guide. http:\/\/infocenter.arm.com\/help\/topic\/com.arm.doc.dui0058d\/DUI0058.pdf.  ARM. 2001. ARM developer suite: Debug target guide. http:\/\/infocenter.arm.com\/help\/topic\/com.arm.doc.dui0058d\/DUI0058.pdf."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.5555\/1247360.1247401"},{"key":"e_1_2_1_6_1","first-page":"248","article-title":"Couverture: An innovative open framework for coverage analysis of safety critical applications","volume":"30","author":"Bordin Matteo","year":"2009","unstructured":"Matteo Bordin , Cyrille Comar , Tristan Gingold , Jerome Guitton , Olivier Hainque , Thomas Quinot , Julien Delange , Jerome Hugues , and Laurent Pautet . 2009 . Couverture: An innovative open framework for coverage analysis of safety critical applications . Ada User J. 30 , 4, 248 -- 255 . Matteo Bordin, Cyrille Comar, Tristan Gingold, Jerome Guitton, Olivier Hainque, Thomas Quinot, Julien Delange, Jerome Hugues, and Laurent Pautet. 2009. Couverture: An innovative open framework for coverage analysis of safety critical applications. Ada User J. 30, 4, 248--255.","journal-title":"Ada User J."},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1109\/TCAD.2010.2095631"},{"key":"e_1_2_1_8_1","volume-title":"Proceedings of the Ottawa Linux Symposium (OLS'06)","author":"Desnoyers Mathieu","unstructured":"Mathieu Desnoyers and Michel R. Dagenais . 2006. The LTTng tracer: A low impact performance and behavior monitor for GNU\/Linux . In Proceedings of the Ottawa Linux Symposium (OLS'06) . 209--224. Mathieu Desnoyers and Michel R. Dagenais. 2006. The LTTng tracer: A low impact performance and behavior monitor for GNU\/Linux. In Proceedings of the Ottawa Linux Symposium (OLS'06). 209--224."},{"key":"e_1_2_1_9_1","unstructured":"Frank C. Eigler Vara Prasad Will Cohen Hien Nguyen Martin Hunt Jim Keniston and Brad Chen. 2005. Architecture of systemtap: A Linux trace\/probe tool. http:\/\/sourceware.org\/systemtap\/archpaper.pdf.  Frank C. Eigler Vara Prasad Will Cohen Hien Nguyen Martin Hunt Jim Keniston and Brad Chen. 2005. Architecture of systemtap: A Linux trace\/probe tool. http:\/\/sourceware.org\/systemtap\/archpaper.pdf."},{"key":"e_1_2_1_10_1","unstructured":"Antonio Giovanazzi. 2010. Single process emulation with QEMU to support dynamic analysis. Master's thesis Politecnico di Milano Milan Italy http:\/\/hdl.handle.net\/10589\/2241.  Antonio Giovanazzi. 2010. Single process emulation with QEMU to support dynamic analysis. Master's thesis Politecnico di Milano Milan Italy http:\/\/hdl.handle.net\/10589\/2241."},{"key":"e_1_2_1_11_1","volume-title":"Proceedings of the CAV Workshop on Exploiting Concurrency Efficiently and Correctly (CAV'08)","author":"Godefroid Patrice","year":"2008","unstructured":"Patrice Godefroid and Nachiappan Nagappan . 2008 . Concurrency at Microsoft: An exploratory survey . In Proceedings of the CAV Workshop on Exploiting Concurrency Efficiently and Correctly (CAV'08) . Patrice Godefroid and Nachiappan Nagappan. 2008. Concurrency at Microsoft: An exploratory survey. In Proceedings of the CAV Workshop on Exploiting Concurrency Efficiently and Correctly (CAV'08)."},{"key":"e_1_2_1_12_1","volume-title":"GDB: The GNU project debugger","author":"GNU.","year":"2013","unstructured":"GNU. 2013 . GDB: The GNU project debugger . http:\/\/www.gnu.org\/software\/gdb. GNU. 2013. GDB: The GNU project debugger. http:\/\/www.gnu.org\/software\/gdb."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.sysarc.2012.06.003"},{"key":"e_1_2_1_14_1","volume-title":"DTrace: Dynamic Tracing in Oracle Solaris","author":"Gregg Brendan","unstructured":"Brendan Gregg and Jim Mauro . 2011. DTrace: Dynamic Tracing in Oracle Solaris , Mac OS X and FreeBSD. Prentice Hall . Brendan Gregg and Jim Mauro. 2011. DTrace: Dynamic Tracing in Oracle Solaris, Mac OS X and FreeBSD. Prentice Hall."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.5555\/1128020.1128563"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1147\/sj.411.0004"},{"key":"e_1_2_1_17_1","first-page":"1","article-title":"IEEE standard test access port and boundary-scan architecture","volume":"1149","author":"IEEE.","year":"2001","unstructured":"IEEE. 2001 . IEEE standard test access port and boundary-scan architecture . IEEE Std 1149 . 1 - 2001 , 1--200. http:\/\/standards.ieee.org\/findstds\/standard\/1149.1-2001.html. IEEE. 2001. IEEE standard test access port and boundary-scan architecture. IEEE Std 1149.1-2001, 1--200. http:\/\/standards.ieee.org\/findstds\/standard\/1149.1-2001.html.","journal-title":"IEEE Std"},{"key":"e_1_2_1_18_1","volume-title":"Proceedings of the 8th Real-Time Linux Workshop. 105--114","author":"Mcguire Nicholas","year":"2007","unstructured":"Nicholas Mcguire and Wang Baojun . 2007 . A hardware architecture independant implementation of GDB tracepoints for linux . In Proceedings of the 8th Real-Time Linux Workshop. 105--114 . Nicholas Mcguire and Wang Baojun. 2007. A hardware architecture independant implementation of GDB tracepoints for linux. In Proceedings of the 8th Real-Time Linux Workshop. 105--114."},{"key":"e_1_2_1_19_1","volume-title":"Multicore Technology: Architecture, Reconfiguration, and Modeling, Muhammad Yasir Qadri and Stephen J","author":"Mihajlovic Bojan","unstructured":"Bojan Mihajlovic , Warren J. Gross , and Zeljko Zilic . 2013. Software debugging infrastructure for multicore systems-on-chip . In Multicore Technology: Architecture, Reconfiguration, and Modeling, Muhammad Yasir Qadri and Stephen J . Sangwine, Eds., CRC Press , Boca Raton, FL , 259--284. Bojan Mihajlovic, Warren J. Gross, and Zeljko Zilic. 2013. Software debugging infrastructure for multicore systems-on-chip. In Multicore Technology: Architecture, Reconfiguration, and Modeling, Muhammad Yasir Qadri and Stephen J. Sangwine, Eds., CRC Press, Boca Raton, FL, 259--284."},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/1973009.1973075"},{"key":"e_1_2_1_21_1","volume-title":"Proceedings of the Ottawa Linux Symposium (OLS'08)","author":"Milenkovic Milena","year":"2008","unstructured":"Milena Milenkovic , Scott Jones , Frank Levine , and Enio Pineda . 2008 . Performance inspector tools with instruction tracing and per-thread\/function profiling . In Proceedings of the Ottawa Linux Symposium (OLS'08) . 75--84. Milena Milenkovic, Scott Jones, Frank Levine, and Enio Pineda. 2008. Performance inspector tools with instruction tracing and per-thread\/function profiling. In Proceedings of the Ottawa Linux Symposium (OLS'08). 75--84."},{"key":"e_1_2_1_22_1","unstructured":"Achim Nohl. 2012. Debugging embedded software using virtual prototypes. White paper Synopsys. http:\/\/www.synopsys.com\/cgi-bin\/sld\/pdfdla\/docsdl\/debugging\/wp.pdf&quest;file=debugging\/wp.pdf.  Achim Nohl. 2012. Debugging embedded software using virtual prototypes. White paper Synopsys. http:\/\/www.synopsys.com\/cgi-bin\/sld\/pdfdla\/docsdl\/debugging\/wp.pdf&quest;file=debugging\/wp.pdf."},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.5555\/1782654.1782707"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.1984.5010304"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1109\/MC.2012.191"},{"key":"e_1_2_1_26_1","volume-title":"Proceedings of the Workshop on Modeling, Benchmarking and Simulation (MoBS'07)","author":"Xu Min","year":"2007","unstructured":"Min Xu , Vyacheslav Malyugin , Jeffrey Sheldon , Ganesh Venkitachalam , and Boris Weissman . 2007 . Re-Trace: Collecting execution trace with virtual machine deterministic replay . In Proceedings of the Workshop on Modeling, Benchmarking and Simulation (MoBS'07) . Min Xu, Vyacheslav Malyugin, Jeffrey Sheldon, Ganesh Venkitachalam, and Boris Weissman. 2007. Re-Trace: Collecting execution trace with virtual machine deterministic replay. In Proceedings of the Workshop on Modeling, Benchmarking and Simulation (MoBS'07)."},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1109\/ISCE.2011.5973904"}],"container-title":["ACM Transactions on Embedded Computing Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2678022","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/2678022","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T06:12:52Z","timestamp":1750227172000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2678022"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2014,12,15]]},"references-count":27,"journal-issue":{"issue":"5s","published-print":{"date-parts":[[2014,12,15]]}},"alternative-id":["10.1145\/2678022"],"URL":"https:\/\/doi.org\/10.1145\/2678022","relation":{},"ISSN":["1539-9087","1558-3465"],"issn-type":[{"value":"1539-9087","type":"print"},{"value":"1558-3465","type":"electronic"}],"subject":[],"published":{"date-parts":[[2014,12,15]]},"assertion":[{"value":"2013-06-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2014-09-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2014-12-15","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}