The tool of Strace can show the system call that comes from the user-space program. Strace not only can display these system call and their parameters, but also return a value .
Several commonly used options like the following:
1. "-f" meaning that Strace will trace the process comes from fork() and vfork() in the same time. For example: starce -f ./a.out
2. "starce -o xxx.txt" meaning that the result output to xxx.txt.
3. "strace -e trace=nanosleep" meaning that Starce only reacording the related process. "nanosleep" can also be "network, filename, file descriptor"
4. "strace -p pid" //trace the background process.
5. "strace -T" //reacording the time that every system call spended.
6. "strace -t" //reacording the time of every system call happened.
Several commonly used options like the following:
1. "-f" meaning that Strace will trace the process comes from fork() and vfork() in the same time. For example: starce -f ./a.out
2. "starce -o xxx.txt" meaning that the result output to xxx.txt.
3. "strace -e trace=nanosleep" meaning that Starce only reacording the related process. "nanosleep" can also be "network, filename, file descriptor"
4. "strace -p pid" //trace the background process.
5. "strace -T" //reacording the time that every system call spended.
6. "strace -t" //reacording the time of every system call happened.