%0 Conference Proceedings %T Extracting Threaded Traces in Simulation Environments %+ Beijing Institute of Technology (BIT) %A Ji, Weixing %A Liu, Yi %A Huo, Yuanhong %A Wang, Yizhuo %A Shi, Feng %Z Part 1: Session 1: Parallel Programming and Algorithms %< avec comité de lecture %( Lecture Notes in Computer Science %B 10th International Conference on Network and Parallel Computing (NPC) %C Guiyang, China %Y Ching-Hsien Hsu %Y Xiaoming Li %Y Xuanhua Shi %Y Ran Zheng %I Springer %3 Network and Parallel Computing %V LNCS-8147 %P 27-38 %8 2013-09-19 %D 2013 %R 10.1007/978-3-642-40820-5_3 %K program trace %K full system simulation %K multi-core processor %Z Computer Science [cs]Conference papers %X Instruction traces play an important role in analyzing and understanding the behavior of target applications; however, existing tracing tools are built on specific platforms coupled with excessive reliance on compilers and operating systems. In this paper, we propose a precise thread level instruction tracing approach for modern chip multi-processor simulators, which inserts instruction patterns into programs at the beginning of main thread and slave threads. The target threads are identified and captured in a full system simulator using the instruction patterns without any modifications to the compiler and the operating system. We implemented our approach in the GEM5 simulator and evaluations were performed to test the accuracy on x86-Linux using standard benchmarks. We compared our traces to the ones collected by a Pin-tool. Experimental results show that traces extracted by our approach exhibit high similarity to the traces collected by the Pin-tool. Our approaches of extracting traces can be easily applied to other simulators with minor modification to the instruction execution engines. %G English %2 https://inria.hal.science/hal-01513764/document %2 https://inria.hal.science/hal-01513764/file/978-3-642-40820-5_3_Chapter.pdf %L hal-01513764 %U https://inria.hal.science/hal-01513764 %~ IFIP-LNCS %~ IFIP %~ IFIP-NPC %~ IFIP-LNCS-8147