summaryrefslogtreecommitdiff
path: root/tests/filter-unavailable.c
Commit message (Collapse)AuthorAgeFilesLines
* Use loop initial declarationsDmitry V. Levin2021-11-051-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This make the code easier to read. * src/bpf.c (decode_attr_extra_data): Use "for" loop initial declarations. * src/count.c (call_summary): Likewise. * src/dm.c (dm_decode_dm_target_spec, dm_decode_dm_name_list, dm_decode_dm_target_versions): Likewise. * src/dyxlat.c (dyxlat_free, dyxlat_add_pair): Likewise. * src/filter_qualify.c (parse_poke_token): Likewise. * src/filter_seccomp.c (check_seccomp_order_tracer): Likewise. * src/ipc.c (SYS_FUNC(ipc)): Likewise. * src/kexec.c (print_seg): Likewise. * src/kvm.c (kvm_vcpu_info_free): Likewise. * src/linux/alpha/get_syscall_args.c (arch_get_syscall_args): Likewise. * src/linux/arc/get_syscall_args.c (arch_get_syscall_args): Likewise. * src/linux/bfin/get_syscall_args.c (arch_get_syscall_args): Likewise. * src/linux/ia64/get_syscall_args.c (arch_get_syscall_args): Likewise. * src/linux/metag/get_syscall_args.c (arch_get_syscall_args): Likewise. * src/linux/microblaze/get_syscall_args.c (arch_get_syscall_args): Likewise. * src/mmap_notify.c (mmap_notify_report): Likewise. * src/mmsghdr.c (dumpiov_in_mmsghdr): Likewise. * src/nlattr.c (decode_nlattr): Likewise. * src/number_set.c (clear_number_set_array, invert_number_set_array): Likewise. * src/pathtrace.c (pathmatch, pathtrace_match_set): Likewise. * src/poll.c (decode_poll_exiting): Likewise. * src/signal.c (sprintsigmask_n): Likewise. * src/sockaddr.c (print_sockaddr_data_ll): Likewise. * src/socketutils.c (unix_parse_response, get_proto_by_name, get_sockaddr_by_inode_uncached, genl_parse_families_response): Likewise. * src/strace.c (expand_tcbtab, alloctcb, droptcb, startup_attach, redirect_standard_fds, cleanup): Likewise. * src/syscall.c (decode_socket_subcall, decode_ipc_subcall): Likewise. * src/term.c (decode_termio): Likewise. * src/util.c (dumpiov_upto): Likewise. * src/v4l2.c (print_pixelformat): Likewise. * tests/add_key.c (main): Likewise. * tests/attach-f-p.c (main): Likewise. * tests/btrfs.c (max_flags_plus_one, btrfs_print_qgroup_inherit, btrfs_test_subvol_ioctls, btrfs_print_tree_search_buf, btrfs_test_space_info_ioctl, btrfs_test_ino_path_ioctls, btrfs_test_get_dev_stats_ioctl, btrfs_test_read_ioctls): Likewise. * tests/count-f.c (thread, process, main): Likewise. * tests/fanotify_init.c (main): Likewise. * tests/fanotify_mark.c (main): Likewise. * tests/file_handle.c (main): Likewise. * tests/fill_memory.c (fill_memory_ex, fill_memory16_ex, fill_memory32_ex): Likewise. * tests/filter-unavailable.c (process, main): Likewise. * tests/futex.c (invalid_op, main): Likewise. * tests/get_mempolicy.c (print_nodes): Likewise. * tests/group_req.c (main): Likewise. * tests/hexdump_strdup.c (hexdump_memdup): Likewise. * tests/hexquote_strndup.c (hexquote_strndup): Likewise. * tests/inet-cmsg.c (print_opts, main): Likewise. * tests/init_delete_module.h (print_str): Likewise. * tests/ioctl_block.c (main): Likewise. * tests/ioctl_dm.c (main): Likewise. * tests/ioctl_evdev.c (main): Likewise. * tests/ioctl_v4l2.c (init_v4l2_format, dprint_ioctl_v4l2): Likewise. * tests/ip_mreq.c (main): Likewise. * tests/ipc.c (main): Likewise. * tests/kcmp.c (main): Likewise. * tests/kexec_file_load.c (main): Likewise. * tests/kexec_load.c (main): Likewise. * tests/keyctl.c (do_keyctl, main): Likewise. * tests/ksysent.c (main): Likewise. * tests/list_sigaction_signum.c (main): Likewise. * tests/mincore.c (print_mincore): Likewise. * tests/mmsg_name.c (test_mmsg_name): Likewise. * tests/move_pages.c (print_page_array, print_node_array, print_status_array): Likewise. * tests/mq_sendrecv.c (printstr, dumpstr): Likewise. * tests/msg_control.c (print_fds, test_scm_rights3, test_sol_socket, print_ip_opts, test_ip_opts): Likewise. * tests/netlink_protocol.c (send_query): Likewise. * tests/nlattr.c (test_nlattr): Likewise. * tests/nlattr_ifla_linkinfo.c (TEST_UNKNOWN_TUNNELS): Likewise. * tests/nlattr_rtmsg.c (print_quoted_hex_ellipsis): Likewise. * tests/perf_event_open.c (main): Likewise. * tests/perf_event_open_nonverbose.c (main): Likewise. * tests/pkey_alloc.c (main): Likewise. * tests/pkey_free.c (main): Likewise. * tests/pkey_mprotect.c (main): Likewise. * tests/poll.c (print_pollfd_array_entering, print_pollfd_array_exiting): Likewise. * tests/prctl-arg2-intptr.c (main): Likewise. * tests/prctl-name.c (main): Likewise. * tests/pread64-pwrite64.c (dump_str, print_hex, test_dump, main): Likewise. * tests/preadv.c (print_iov, print_iovec): Likewise. * tests/print_quoted_string.c (print_quoted_memory_ex, print_quoted_hex): Likewise. * tests/process_vm_readv_writev.c (print_iov): Likewise. * tests/pwritev.c (print_iovec, main): Likewise. * tests/qual_fault.c (main): Likewise. * tests/qual_signal.c (main): Likewise. * tests/read-write.c (dump_str_ex, print_hex, test_dump, main): Likewise. * tests/readahead.c (main): Likewise. * tests/redirect-fds.c (main): Likewise. * tests/request_key.c (main): Likewise. * tests/rt_sigsuspend.c (iterate): Likewise. * tests/s390_pci_mmio_read_write.c (main): Likewise. * tests/s390_runtime_instr.c (main): Likewise. * tests/seccomp-filter-v.c (main): Likewise. * tests/seccomp_get_action_avail.c (main): Likewise. * tests/set_mempolicy.c (print_nodes): Likewise. * tests/setfsugid.c (main): Likewise. * tests/setns.c (main): Likewise. * tests/setresugid.c (main): Likewise. * tests/setreugid.c (main): Likewise. * tests/setugid.c (main): Likewise. * tests/socketcall.c (main): Likewise. * tests/sockopt-sol_netlink.c (main): Likewise. * tests/test_nlattr.h (print_sockfd): Likewise. * tests/test_printpath.c (test_printpath_at, test_printpath): Likewise. * tests/test_printstrn.c (test_printstrn_at, test_efault, test_printstrn): Likewise. * tests/unix-pair-send-recv.c (transpose): Likewise. * tests/unix-pair-sendto-recvfrom.c (transpose): Likewise. * tests/unshare.c (main): Likewise. * tests/xchownx.c (main): Likewise.
* Update copyright headersDmitry V. Levin2021-02-161-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* Change my email addressDmitry V. Levin2020-12-311-1/+1
|
* Update copyright headersDmitry V. Levin2018-12-241-1/+1
|
* tests: change the license to GPL-2.0-or-laterDmitry V. Levin2018-12-101-21/+1
| | | | | strace test suite is now provided under the terms of the GNU General Public License version 2 or later, see tests/COPYING for more details.
* tests/filter-unavailable.c: use libtestsDmitry V. Levin2016-01-061-4/+9
| | | | * tests/filter-unavailable.c (main): Use perror_msg_and_fail.
* Add copyright headers to some files which lack themDmitry V. Levin2015-12-171-0/+27
| | | | | | | | | | Before this change, all files that exist since 20th century had copyright headers, while most files that appeared later didn't. This change fixes the inconsistency by adding missing copyright headers. It doesn't mean that copyright headers became maintained. In my view, git history provides much better information on this subject and is much more accurate than copyright headers.
* Fix filtering of <unavailable> syscallsDmitry V. Levin2015-06-301-0/+54
* syscall.c (trace_syscall_exiting): Skip filtered syscalls also in case of get_regs or get_syscall_result failure. * tests/filter-unavailable.c: New file. * tests/filter-unavailable.expected: Likewise. * tests/filter-unavailable.test: New test. * tests/Makefile.am (check_PROGRAMS): Add filter-unavailable. (filter_unavailable_LDFLAGS): Add -pthread. (TESTS): Add filter-unavailable.test. (EXTRA_DIST): Add filter-unavailable.expected. * tests/.gitignore: Add filter-unavailable. Reported-by: Bryan Matsuo <bryan.matsuo@gmail.com>