aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/strace.md
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-04-19 22:13:44 +0200
committerjohannst <johannes.stoelp@gmail.com>2020-04-19 22:13:44 +0200
commitfef4d6ff2ad9f48e6dccde0f061453e6a3ac624e (patch)
treec21dfcf8e7c8895a94e1c72cb9588c94794656b1 /src/strace.md
parent43e402ba2320ced7972d33c9442b2745afe230f6 (diff)
downloadnotes-fef4d6ff2ad9f48e6dccde0f061453e6a3ac624e.tar.gz
notes-fef4d6ff2ad9f48e6dccde0f061453e6a3ac624e.zip
added new hierarchy
Diffstat (limited to 'src/strace.md')
-rw-r--r--src/strace.md32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/strace.md b/src/strace.md
deleted file mode 100644
index 34abf3b..0000000
--- a/src/strace.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# strace(1)
-
-```markdown
-strace [opts] [prg]
- -f .......... follow child processes on fork(2)
- -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
-```
-
-```markdown
-<expr>:
- trace=syscall[,syscall] .... trace only syscall listed
- trace=file ................. trace all syscall that take a filename as arg
- trace=process .............. trace process management related syscalls
- trace=signal ............... trace signal related syscalls
- signal ..................... trace signals delivered to the process
-```
-
-# Examples
-
-Trace `open(2)` & `socket(2)` syscalls for a running process + child processes:
-```markdown
-strace -f -e trace=open,socket -p <pid>
-```
-
-Trace signals delivered to a running process:
-```markdown
-strace -f -e signal -p <pid>
-```