From 2a064a9d1bbb8de6ce489b685cce026eee167cd2 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 17 Mar 2020 22:48:49 +0000 Subject: deploy: fb719f52b73920fb18c7f3080ebb1fc73300be49 --- strace.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'strace.html') diff --git a/strace.html b/strace.html index 910c5ad..bbf5a16 100644 --- a/strace.html +++ b/strace.html @@ -81,7 +81,7 @@ @@ -152,7 +152,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
@@ -165,11 +165,11 @@
   signal ..................... trace signals delivered to the process
 

Examples

-

Trace 'open & socket syscalls for a running process + childs.

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

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 -p <pid> -e signal
+

Trace signals delivered to a running process:

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