Design and Implementation of Pin-like Instrumentation Tools for the LoongArch
This paper presents the design and implementation of several instrumentation tools supporting the LoongArch platform, modeled after Intel Pin. Each tool consists of four primary components: main function, analysis function, instrumentation function, and termination function. These tools utilize five distinct levels of API granularity: instruction level, basic block level, trace level, image level, and routine level. Implemented in C++, these tools enable dynamic binary instrumentation, facilitating the comprehensive analysis of instructions, functions, registers, memory access patterns, and control flow. To validate the accuracy and practical utility of these tools, we developed several simple C/C++ programs for validation. Furthermore, our source code has been made publicly accessible on Github for broader evaluation and use.
Authors
- Y. Mu
- Wei Xu (ORCID: https://orcid.org/0000-0003-0312-7528)
- Wenjun Xie (ORCID: https://orcid.org/0000-0003-1292-3868)
- Linping Gao
Institutions
- University of Science and Technology of China (CN)
- Hefei University of Technology (CN)
Publication Details
- Published
- 2024-10-25
- DOI
- https://doi.org/10.1145/3705754.3705759
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00