mmxsrup / simple-strace

A simple system call tracer (strace)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-strace

Created to learn how strace(1) works.

Usage

Build the program with the following command.

make

When tracing a newly executed program

./strace PROG [ARGS]

For example, to trace ls -l

./strace ls -l

When tracing a program that is already running

./strace -p PID

For example, to trace a running top command (pid = 27891')

./strace -p 27891

About

A simple system call tracer (strace)

License:MIT License


Languages

Language:C 61.2%Language:Python 30.6%Language:Makefile 8.3%