From 14fad56fff1633df972f86775a15a65ca4a24c48 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 17 Mar 2020 21:26:49 +0100 Subject: updated strace --- src/strace.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/strace.md b/src/strace.md index ff0f9d3..34abf3b 100644 --- a/src/strace.md +++ b/src/strace.md @@ -4,7 +4,7 @@ strace [opts] [prg] -f .......... follow child processes on fork(2) -p .... attach to running process - -s ... max string size (default: 32) + -s ... max string size, truncate of longer (default: 32) -e ... expression for trace filtering -o ... log output into -c .......... dump syscall statitics at the end @@ -21,12 +21,12 @@ strace [opts] [prg] # Examples -Trace `'open & socket` syscalls for a running process + childs. +Trace `open(2)` & `socket(2)` syscalls for a running process + child processes: ```markdown -strace -f -p -e trace=open,socket +strace -f -e trace=open,socket -p ``` -Trace signals delivered to a running process. +Trace signals delivered to a running process: ```markdown -strace -f -p -e signal +strace -f -e signal -p ``` -- cgit v1.2.3