diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-07-24 22:59:17 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-07-24 22:59:17 +0200 |
commit | 5778d4cb2db3081aa346f66cf3f3b7500b342dc6 (patch) | |
tree | 82c9db1152415702b0e9ffab3cb9b052128ff0c6 /src/trace_profile | |
parent | 996473c86e68ca7c735958e24dc984cbb84d9a4f (diff) | |
download | notes-5778d4cb2db3081aa346f66cf3f3b7500b342dc6.tar.gz notes-5778d4cb2db3081aa346f66cf3f3b7500b342dc6.zip |
strace: extend useful options
Diffstat (limited to 'src/trace_profile')
-rw-r--r-- | src/trace_profile/strace.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/trace_profile/strace.md b/src/trace_profile/strace.md index ce77d17..390edd4 100644 --- a/src/trace_profile/strace.md +++ b/src/trace_profile/strace.md @@ -3,16 +3,24 @@ ```markdown strace [opts] [prg] -f .......... follow child processes on fork(2) + -ff ......... follow fork and separate output file per child -p <pid> .... attach to running process -s <size> ... max string size, truncate of longer (default: 32) -e <expr> ... expression for trace filtering -o <file> ... log output into <file> -c .......... dump syscall statitics at the end + -C .......... like -c but dump regular ouput as well -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 + -z .......... log only successful syscalls + -Z .......... log only failed syscalls + -n .......... print syscall numbers + -y .......... translate fds (eg file path, socket) + -yy ......... translate fds with all information (eg IP) + -x .......... print non-ASCII chars as hex string ``` ```markdown |