From 364b1580accf607d8edacbe15376ef785b5b4d9a Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sat, 13 Nov 2021 23:00:09 +0100 Subject: strace: add useful flags + update examples --- src/trace_profile/strace.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/trace_profile/strace.md b/src/trace_profile/strace.md index c610df3..ce77d17 100644 --- a/src/trace_profile/strace.md +++ b/src/trace_profile/strace.md @@ -9,6 +9,10 @@ strace [opts] [prg] -o ... log output into -c .......... dump syscall statitics at the end -k .......... dump stack trace for each syscall + -P ... only trace syscall accesing path + -y .......... print paths for FDs + -tt ......... print absolute timestamp (with us precision) + -r .......... print relative timestamp ``` ```markdown @@ -29,5 +33,5 @@ strace -f -e trace=open,socket -p Trace signals delivered to a running process: ```markdown -strace -f -e signal -p +strace -e signal -e 'trace=!all' -p ``` -- cgit v1.2.3