Syscalls for Rustaceans
summary
Demonstrates a working Rust program that implements strace in Rust, spawning a child, using ptrace to stop on syscalls and reading registers to identify calls (example: write(fd=1, "hello\n", 6)). Targets Linux x86_64, relies on libc/unsafe FFI and a table of roughly 300 syscall numbers, increments counts per syscall and prints totals. Notes portability risk: mapping is tied to a kernel version and works against the newest kernel tested.
AI-written summary · about
chapters (5)
- 0:00Start
- 2:211970s: Systems Programming Language
- 8:57Write implementation in Rust
- 15:08POSIX and system calls
- 22:56Fetching register values with ptrace








