Unix system call monitor

How to control system calls for a process?

+4
source share
1 answer

Tick strace

In the simplest case, strace runs the specified command before it exits. It intercepts and records system calls made by the process and the signals received by the process. The name of each system call, its arguments and its return value are printed by standard error or in the file specified in the -o option.

Each line in the trace contains the name of the system call, and then its arguments in parentheses and its return value.

+10
source

Source: https://habr.com/ru/post/1286391/


All Articles