tests/btrfs.c: check basic decoding of read-only ioctls

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