Interview Prep/Linux/Boot Process & Kernel

What is a system call? How can you see which ones a process makes?

IntermediateConceptBoot Process & Kernel
Answer

A system call is the controlled entry point from user space into the kernel. glibc wraps most of them (printf eventually calls write).

strace -f -e trace=openat,connect curl -s https://example.com -o /dev/null
strace -c -p 1234      # syscall count summary for a running PID

strace uses ptrace and slows the target noticeably, so use it carefully in production.

All Linux questions Roadmap: Linux

More on Boot Process & Kernel