diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2021-11-13 23:00:09 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2021-11-13 23:00:09 +0100 |
commit | 364b1580accf607d8edacbe15376ef785b5b4d9a (patch) | |
tree | 251fc54de9bf2f6391523680e10b3d16f38cb8b3 /src | |
parent | d646cf94c0cbe74baef5e5711a3cd3f53afc096d (diff) | |
download | notes-364b1580accf607d8edacbe15376ef785b5b4d9a.tar.gz notes-364b1580accf607d8edacbe15376ef785b5b4d9a.zip |
strace: add useful flags + update examples
Diffstat (limited to 'src')
-rw-r--r-- | src/trace_profile/strace.md | 6 |
1 files changed, 5 insertions, 1 deletions
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 <file> ... log output into <file> -c .......... dump syscall statitics at the end -k .......... dump stack trace for each syscall + -P <path> ... 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 <pid> Trace signals delivered to a running process: ```markdown -strace -f -e signal -p <pid> +strace -e signal -e 'trace=!all' -p <pid> ``` |