Eugene Syromyatnikov 030b61c92f io: use umoven_or_printaddr_ignore_syserror as umove function in tprint_iov_upto
This enables printing of iovec arrays even in case of failed syscall
(failed syscall doesn't mean that iovec itself is inaccessible and
useless).  One caveat here is that we should explicitly provide proper
IOV_DECODE_* value based on syserror value in case printing is performed
on exiting; we can't simply override it to IOV_DECODE_ADDR on exiting
when syserror is up, since this may be called by code which tries to
print iovec containing local data, which should be perfectly accessible
(on the other hand, there are no cases of such behaviour at the moment).

Since iovecs themselves are printed even if syscall has failed now,
preadv test is updated to reflect this.  It is notable, though, that this
is the only place where this case is checked.

* io.c (tprint_iov_upto): Specify umoven_or_printaddr_ignore_syserror
instead of umoven_or_printaddr as umoven_func parameter.
(SYS_FUNC(readv), do_preadv): Specify decode_iov parameter value
based on syserror(tcp) value.
* scsi.c: (print_sg_io_v3_res, print_sg_io_v4_res): Likewise.
* tests/preadv.c: Update expected output for the case when preadv
with singe-item iovec failed.
2016-10-28 18:40:11 +00:00
2016-10-05 06:19:41 +00:00
2016-09-12 13:55:59 +00:00
2016-09-08 22:56:25 +00:00
2015-07-20 22:03:07 +00:00
2016-07-12 16:22:22 +00:00
2009-07-08 21:01:21 +00:00
2015-07-20 22:03:07 +00:00
2016-08-21 22:03:05 +00:00
2013-05-17 23:18:55 +00:00
2015-11-25 19:10:56 +00:00
2016-01-08 18:53:27 +00:00
2015-08-28 08:46:23 +00:00
2016-08-15 21:08:56 +00:00
2016-07-18 22:12:45 +00:00
2015-07-20 22:03:07 +00:00
2015-07-20 22:03:07 +00:00
2016-05-30 00:29:14 +00:00
2012-02-25 15:29:21 +01:00
2015-11-22 23:10:12 +00:00
2015-11-22 23:10:12 +00:00
2016-07-22 19:28:06 +00:00
2016-05-29 22:58:56 +00:00
2016-06-17 16:12:13 +00:00
2016-07-18 22:12:45 +00:00
2015-09-16 00:14:55 +00:00
2016-10-05 06:19:41 +00:00
2016-05-25 16:36:37 +00:00
2016-06-21 16:56:21 +00:00
2016-10-05 06:19:41 +00:00
2016-04-07 01:15:58 +00:00
2016-09-08 22:56:25 +00:00
2016-09-08 22:56:25 +00:00
2016-06-18 22:53:25 +00:00
2016-05-07 23:37:53 +00:00
2015-12-07 00:38:38 +00:00
2016-07-26 16:14:50 +00:00
2015-08-28 08:46:23 +00:00

This is strace -- a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.

strace is released under a Berkeley-style license at the request of Paul Kranenburg; see the file COPYING for details.

See the file NEWS for information on what has changed in recent versions.

Please send bug reports and enhancements to the strace mailing list.

Build Status Code Coverage

Description
No description provided
Readme 17 MiB
Languages
C 92.2%
Shell 3.4%
M4 1.4%
Makefile 0.8%
Roff 0.7%
Other 1.5%