the way to dump both input and output

Masatake YAMATO yamato at redhat.com
Tue Mar 17 10:23:11 UTC 2015


Hi,

-e write=N and -e read=N  are quite useful.
It there way to specifying the both?

I tried "-e write=4 -e read=4" and "-e write=4,read=4", but strace
doesn't work as I expected.

	$ strace -s 4096 -f -x -p 12268 -e write=4 -e read=4
	Process 595 attached
	restart_syscall(<... resuming interrupted call ...>) = 1
	read(3, 0x7fff24217d50, 16)             = -1 EAGAIN (Resource temporarily unavailable)
	write(3, "\x01\x00\x00\x00\x00\x00\x00\x00", 8) = 8
	read(4, "{\"execute\":\"guest-sync\", \"arguments\":{\"id\":1426586643380}}\n", 1024) = 59
	| 00000  7b 22 65 78 65 63 75 74  65 22 3a 22 67 75 65 73  {"execute":"gues |
	| 00010  74 2d 73 79 6e 63 22 2c  20 22 61 72 67 75 6d 65  t-sync", "argume |
	| 00020  6e 74 73 22 3a 7b 22 69  64 22 3a 31 34 32 36 35  nts":{"id":14265 |
	| 00030  38 36 36 34 33 33 38 30  7d 7d 0a                 86643380}}.      |
	read(4, 0x7f44c193143b, 1024)           = -1 EAGAIN (Resource temporarily unavailable)
	write(4, "{\"return\": 1426586643380}\n", 26) = 26
	$ strace  -s 4096 -f -x -p 595 -e write=4,read=4
	strace: invalid descriptor 'read=4'

Masatake YAMATO




More information about the Strace-devel mailing list