Abstract:Autonomy and controllability are important directions for the development of software and hardware in China’s information systems. As a leader in domestic hardware construction, the Sunway processor’s promotion is still limited by the relative inadequacy of the software ecosystem, especially in such fields as user-space operating system subsystems, tracing tools, sandboxes, performance analysis tools, and operating system emulation layers. The core functions of these tools, including process behavior control, resource isolation, and system call redirection, require efficient and reliable system call interception mechanisms. However, existing system call interception tools still face issues with insufficient correctness, poor usability, limited scalability, and interception performance to be optimized. In particular, the application on the Sunway platform faces many challenges. To solve the above problems, this study employs binary rewriting technology to implement a system call interception tool for the domestic Sunway platform. Meanwhile, a simple micro-benchmark test and four high-performance server tests verify the correctness and performance improvement of the implemented system call interception tool for the domestic Sunway platform.