From 15230bbb9b1f69def9b0e1b41a097638c0fda734 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 28 Apr 2020 09:11:18 +0000 Subject: deploy: fef4d6ff2ad9f48e6dccde0f061453e6a3ac624e --- strace.html | 242 ------------------------------------------------------------ 1 file changed, 242 deletions(-) delete mode 100644 strace.html (limited to 'strace.html') diff --git a/strace.html b/strace.html deleted file mode 100644 index 9a82958..0000000 --- a/strace.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - strace - Notes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - -
-
-

strace(1)

-
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
-
-
<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:

-
strace -f -e trace=open,socket -p <pid>
-
-

Trace signals delivered to a running process:

-
strace -f -e signal -p <pid>
-
- -
- - -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3