diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-03-17 21:26:49 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-03-17 21:26:49 +0100 |
commit | 14fad56fff1633df972f86775a15a65ca4a24c48 (patch) | |
tree | c1664648005b7817bcbced6a8112c72ddc351563 /src | |
parent | 582b90ddf4ecf5505fa3de9b3ca55ab41cf0f111 (diff) | |
download | notes-14fad56fff1633df972f86775a15a65ca4a24c48.tar.gz notes-14fad56fff1633df972f86775a15a65ca4a24c48.zip |
updated strace
Diffstat (limited to 'src')
-rw-r--r-- | src/strace.md | 10 |
1 files changed, 5 insertions, 5 deletions
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 <pid> .... attach to running process - -s <size> ... max string size (default: 32) + -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 @@ -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 <pid> -e trace=open,socket +strace -f -e trace=open,socket -p <pid> ``` -Trace signals delivered to a running process. +Trace signals delivered to a running process: ```markdown -strace -f -p <pid> -e signal +strace -f -e signal -p <pid> ``` |