Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Easy system call tracing for Plan 9.

Conference ·
OSTI ID:1028390

Tracing system calls makes debugging easy and fast. On Plan 9, traditionally, system call tracing has been implemented with acid. New systems do not always implement all the capabilities needed for Acid, particularly the ability to rewrite the process code space to insert breakpoints. Architecture support libraries are not always available for Acid, or may not work even on a supported architecture. The requirement that Acid's libraries be available can be a problem on systems with a very small memory footprint, such as High Performance Computing systems where every Kbyte counts. Finally, Acid tracing is inconvenient in the presence of forks, which means tracing shell pipelines is particularly troublesome. The strace program available on most Unix systems is far more convenient to use and more capable than Acid for system call tracing. A similar system on Plan 9 can simplify troubleshooting. We have built a system calling tracing capability into the Plan 9 kernel. It has proven to be more convenient than strace in programming effort. One can write a shell script to implement tracing, and the C code to implement an strace equivalent is several orders of magnitude smaller.

Research Organization:
Sandia National Laboratories
Sponsoring Organization:
USDOE
DOE Contract Number:
AC04-94AL85000
OSTI ID:
1028390
Report Number(s):
SAND2010-6029C
Country of Publication:
United States
Language:
English

Similar Records

Cross-Architecture Procedure Call
Thesis/Dissertation · Wed Dec 31 23:00:00 EST 1986 · OSTI ID:7055373

Compile-Time Library Call Detection Using CAASCADE and XALT
Conference · Mon Dec 31 23:00:00 EST 2018 · OSTI ID:1564238

Addressing the call-back problem
Journal Article · Thu Aug 01 00:00:00 EDT 1985 · Fueloil Oil Heat Sol. Syst.; (United States) · OSTI ID:5287813