aio.c: use print_array function

* aio.c (print_iocbp): New function.
(SYS_FUNC(io_submit)): Use it via print_array.  Use widen_to_long
to process long int argument.
(print_io_event): Change to print struct io_event fetched elsewhere.
(SYS_FUNC(io_cancel)): Update use of print_io_event.
(SYS_FUNC(io_getevents)): Use print_io_event via print_array.
Use widen_to_long to print long int arguments.
* tests/aio.c (main): Check decoding of io_submit with negative "nr".
2 files changed
tree: ea6285c3249d13612359549b019002bf0120ecbe
  1. debian/
  2. linux/
  3. m4/
  4. maint/
  5. qemu_multiarch_testing/
  6. test/
  7. tests/
  8. xlat/
  9. .gitignore
  10. .mailmap
  11. .travis.yml
  12. access.c
  13. affinity.c
  14. aio.c
  15. alpha.c
  16. AUTHORS
  17. bjm.c
  18. block.c
  19. bootstrap
  20. bpf.c
  21. build_static_example.sh
  22. cacheflush.c
  23. capability.c
  24. caps0.h
  25. caps1.h
  26. ChangeLog-CVS
  27. chdir.c
  28. chmod.c
  29. clone.c
  30. configure.ac
  31. copy_file_range.c
  32. COPYING
  33. count.c
  34. CREDITS.in
  35. defs.h
  36. desc.c
  37. dirent.c
  38. dirent64.c
  39. empty.h
  40. epoll.c
  41. errnoent.sh
  42. evdev.c
  43. eventfd.c
  44. execve.c
  45. exit.c
  46. fadvise.c
  47. fallocate.c
  48. fanotify.c
  49. fchownat.c
  50. fcntl.c
  51. fetch_seccomp_fprog.c
  52. fetch_struct_flock.c
  53. fetch_struct_statfs.c
  54. file.c
  55. file_handle.c
  56. flock.c
  57. flock.h
  58. fstatfs.c
  59. fstatfs64.c
  60. futex.c
  61. gcc_compat.h
  62. generate_mpers_am.sh
  63. generate_sen.sh
  64. generate_xlat_in.sh
  65. get_robust_list.c
  66. getcpu.c
  67. getcwd.c
  68. getrandom.c
  69. git-set-file-times
  70. git-version-gen
  71. gitlog-to-changelog
  72. HACKING-scripts
  73. hostname.c
  74. inotify.c
  75. INSTALL
  76. io.c
  77. ioctl.c
  78. ioctlsort.c
  79. ioperm.c
  80. iopl.c
  81. ioprio.c
  82. ipc_defs.h
  83. ipc_msg.c
  84. ipc_msgctl.c
  85. ipc_sem.c
  86. ipc_shm.c
  87. ipc_shmctl.c
  88. kcmp.c
  89. kernel_types.h
  90. kexec.c
  91. keyctl.c
  92. ldt.c
  93. link.c
  94. lookup_dcookie.c
  95. loop.c
  96. lseek.c
  97. make-dist
  98. Makefile.am
  99. mem.c
  100. membarrier.c
  101. memfd_create.c
  102. mknod.c
  103. mount.c
  104. mpers.awk
  105. mpers.sh
  106. mpers_test.sh
  107. mpers_type.h
  108. mq.c
  109. mtd.c
  110. native_defs.h
  111. net.c
  112. NEWS
  113. numa.c
  114. open.c
  115. or1k_atomic.c
  116. pathtrace.c
  117. perf.c
  118. personality.c
  119. poll.c
  120. prctl.c
  121. print_mq_attr.c
  122. print_msgbuf.c
  123. print_sigevent.c
  124. print_statfs.c
  125. print_time.c
  126. print_timex.c
  127. printmode.c
  128. printrusage.c
  129. printsiginfo.c
  130. printsiginfo.h
  131. printstat.h
  132. process.c
  133. process_vm.c
  134. ptp.c
  135. ptrace.h
  136. quota.c
  137. readahead.c
  138. readlink.c
  139. README
  140. README-hacking
  141. README-linux-ptrace
  142. README-mpers
  143. README.md
  144. reboot.c
  145. regs.h
  146. renameat.c
  147. resource.c
  148. rtc.c
  149. sched.c
  150. scsi.c
  151. seccomp.c
  152. seccomp_fprog.h
  153. sendfile.c
  154. sigaltstack.c
  155. sigevent.h
  156. signal.c
  157. signalent.sh
  158. signalfd.c
  159. sigreturn.c
  160. sock.c
  161. socketutils.c
  162. sram_alloc.c
  163. statfs.c
  164. statfs.h
  165. statfs64.c
  166. strace-graph
  167. strace-log-merge
  168. strace.1
  169. strace.c
  170. strace.spec
  171. swapon.c
  172. sync_file_range.c
  173. sync_file_range2.c
  174. syscall.c
  175. syscallent.sh
  176. sysctl.c
  177. sysinfo.c
  178. syslog.c
  179. sysmips.c
  180. term.c
  181. time.c
  182. times.c
  183. travis-ci.sh
  184. truncate.c
  185. uid.c
  186. uid16.c
  187. umask.c
  188. umount.c
  189. uname.c
  190. unwind.c
  191. upeek.c
  192. userfaultfd.c
  193. util.c
  194. utime.c
  195. utimes.c
  196. v4l2.c
  197. vsprintf.c
  198. wait.c
  199. xattr.c
  200. xlat.h
  201. xlate.el
  202. xmalloc.c
README.md

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