Created to learn how strace(1) works.
Build the program with the following command.
make
./strace PROG [ARGS]
For example, to trace ls -l
./strace ls -l
./strace -p PID
For example, to trace a running top command (pid = 27891')
./strace -p 27891
A simple system call tracer (strace)
Created to learn how strace(1) works.
Build the program with the following command.
make
./strace PROG [ARGS]
For example, to trace ls -l
./strace ls -l
./strace -p PID
For example, to trace a running top command (pid = 27891')
./strace -p 27891