Trace a process and filter output by system call

strace

strace -p {{pid}} -e {{system_call_name}}

click the source code to copy install strace on any operating system with command-not-found.com