diff options
author | johannst <johannst@users.noreply.github.com> | 2023-07-24 21:01:38 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2023-07-24 21:01:38 +0000 |
commit | 75983cdedc08916cc08875cb8b543ecf6befb35f (patch) | |
tree | f9b8afec211c7e159c2a4c830bfcd172d62434f0 /trace_profile/strace.html | |
parent | c4435063f699569dd1688966c20748f61d56683c (diff) | |
download | notes-75983cdedc08916cc08875cb8b543ecf6befb35f.tar.gz notes-75983cdedc08916cc08875cb8b543ecf6befb35f.zip |
deploy: 5778d4cb2db3081aa346f66cf3f3b7500b342dc6
Diffstat (limited to 'trace_profile/strace.html')
-rw-r--r-- | trace_profile/strace.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/trace_profile/strace.html b/trace_profile/strace.html index dd72904..fb94616 100644 --- a/trace_profile/strace.html +++ b/trace_profile/strace.html @@ -172,16 +172,24 @@ <h1 id="strace1"><a class="header" href="#strace1">strace(1)</a></h1> <pre><code class="language-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 </code></pre> <pre><code class="language-markdown"><expr>: trace=syscall[,syscall] .... trace only syscall listed |