- 03 Mar, 2021 4 commits
-
-
Dmitry V. Levin authored
* src/eventfd.c (do_eventfd): Use tprint_arg_next and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/epoll.c (SYS_FUNC(epoll_create), SYS_FUNC(epoll_ctl), epoll_wait_common, print_timeout_int, epoll_pwait_common): Use tprint_arg_next, PRINT_VAL_D, and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/dup.c (dup_123): Use tprint_arg_next.
-
Dmitry V. Levin authored
* src/dirent.c (SYS_FUNC(readdir)): Use tprint_arg_next and PRINT_VAL_U.
-
- 02 Mar, 2021 11 commits
-
-
Dmitry V. Levin authored
* src/copy_file_range.c (SYS_FUNC(copy_file_range)): Use tprint_arg_next and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/close_range.c (SYS_FUNC(close_range)): Use tprint_arg_next.
-
Dmitry V. Levin authored
* src/chmod.c (decode_chmod, SYS_FUNC(fchmodat), SYS_FUNC(fchmod)): Use tprint_arg_next.
-
Dmitry V. Levin authored
* src/cacheflush.c (SYS_FUNC(cacheflush)): Use tprint_arg_next and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/btrfs.c: Use tprint_arg_next, tprint_struct_next, tprint_array_begin, tprint_array_next, tprint_array_end, and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/print_fields.h (tprint_array_index_begin, tprint_array_index_end): New inline functions. * src/btrfs.c (btrfs_ioctl): Use them. * src/util.c (print_array_ex): Likewise.
-
Dmitry V. Levin authored
* src/bpf.c: Use tprint_arg_next and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/bpf.c (decode_attr_extra_data): When printing extra data, print an imaginary field name "extra_data" followed by the data itself and the comment. * tests/bpf.c (print_extra_data): Update expected output.
-
Dmitry V. Levin authored
* src/block.c (block_ioctl): Use tprint_arg_next and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/bjm.c (SYS_FUNC(delete_module), SYS_FUNC(init_module), SYS_FUNC(finit_module)): Use tprint_arg_next and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/bind.c (SYS_FUNC(bind)): Use tprint_arg_next and PRINT_VAL_D.
-
- 01 Mar, 2021 13 commits
-
-
Dmitry V. Levin authored
* src/alpha.c (SYS_FUNC(osf_statfs), SYS_FUNC(osf_fstatfs)): Use tprint_arg_next and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/aio.c (SYS_FUNC(io_setup), SYS_FUNC(io_submit), SYS_FUNC(io_cancel), print_io_getevents): Use tprint_arg_next, PRINT_VAL_U, and PRINT_VAL_D.
-
Dmitry V. Levin authored
* src/affinity.c (print_affinitylist): Use tprint_array_* and tprint_more_data_follows. (SYS_FUNC(sched_setaffinity), SYS_FUNC(sched_getaffinity)): Use tprint_arg_next and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/access.c (decode_access, decode_faccessat, SYS_FUNC(faccessat2)): Use tprint_arg_next.
-
Dmitry V. Levin authored
Unlike printllval, print_arg_lld and print_arg_llu do not have format arguments which helps in making output more structured. Also, change the type of getllval index argument and return value from signed int to unsigned int. * src/defs.h (getllval): Change the type of index argument and return value from int to unsigned int. All callers updated. (printllval): Remove. (print_arg_lld, print_arg_llu): New prototypes. * src/util.c (getllval): Change the type of index argument and return value from int to unsigned int. (printllval): Remove. (print_arg_lld, print_arg_llu): New functions. * src/fadvise.c (SYS_FUNC(fadvise64), SYS_FUNC(fadvise64_64)): Replace printllval with print_arg_lld. * src/fallocate.c (SYS_FUNC(fallocate)): Likewise. * src/io.c (SYS_FUNC(pread), SYS_FUNC(pwrite)): Likewise. * src/readahead.c (SYS_FUNC(readahead)): Likewise. * src/sync_file_range.c (SYS_FUNC(sync_file_range)): Likewise. * src/sync_file_range2.c (SYS_FUNC(sync_file_range2)): Likewise. * src/lookup_dcookie.c (SYS_FUNC(lookup_dcookie)): Replace printllval with print_arg_llu. * src/truncate.c (SYS_FUNC(truncate64), SYS_FUNC(ftruncate64)): Likewise.
-
Dmitry V. Levin authored
* src/truncate.c (SYS_FUNC(truncate), SYS_FUNC(ftruncate64)): Use tprint_arg_next and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/sync_file_range2.c (SYS_FUNC(sync_file_range2)): Use tprint_arg_next.
-
Dmitry V. Levin authored
* src/sync_file_range.c (SYS_FUNC(sync_file_range)): Use tprint_arg_next.
-
Dmitry V. Levin authored
* src/readahead.c (SYS_FUNC(readahead)): Use tprint_arg_next and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/lookup_dcookie.c (SYS_FUNC(lookup_dcookie)): Use tprint_arg_next and PRINT_VAL_U.
-
Dmitry V. Levin authored
* src/io.c (SYS_FUNC(read), SYS_FUNC(write), print_iovec, SYS_FUNC(readv), SYS_FUNC(writev), SYS_FUNC(pread), SYS_FUNC(pwrite), do_preadv, do_pwritev, SYS_FUNC(tee), SYS_FUNC(splice), SYS_FUNC(vmsplice)): Use tprint_arg_next and PRINT_VAL_U. (print_lld_from_low_high_val): Use PRINT_VAL_D.
-
Dmitry V. Levin authored
* src/fallocate.c (SYS_FUNC(fallocate.c)): Use tprint_arg_next.
-
Dmitry V. Levin authored
* src/fadvise.c (SYS_FUNC(fadvise64), SYS_FUNC(fadvise64_64)): Use tprint_arg_next and PRINT_VAL_U.
-
- 28 Feb, 2021 1 commit
-
-
Dmitry V. Levin authored
* src/print_timespec.h (print_sec_nsec): Remove. (print_timespec_t): Rewrite using print_fields.h tools. (PRINT_TIMESPEC_ARRAY_DATA_SIZE): Use tprint_array_* functions.
-
- 27 Feb, 2021 1 commit
-
-
Dmitry V. Levin authored
* src/print_fields.h (tprint_arg_begin, tprint_arg_next, tprint_arg_end, tprints_arg_name): New inline functions. * src/syscall.c (syscall_entering_decode, syscall_entering_trace): Use tprint_arg_begin. (syscall_exiting_trace): Use tprint_arg_end. * src/clone.c (SYS_FUNC(clone)): Use tprints_arg_name and tprint_arg_next. (SYS_FUNC(clone3), SYS_FUNC(setns)): Use tprint_arg_next.
-
- 26 Feb, 2021 1 commit
-
-
Dmitry V. Levin authored
* src/print_fields.h (tprint_unavailable): New inline function. * src/dm.c (dm_decode_dm_target_spec, dm_decode_dm_target_deps, dm_decode_dm_name_list, dm_decode_dm_target_versions, dm_decode_dm_target_msg, dm_decode_string): Use it. * src/perf.c (print_perf_event_attr): Likewise. * src/print_timespec.h (PRINT_TIMESPEC_DATA_SIZE, PRINT_TIMESPEC_ARRAY_DATA_SIZE): Likewise. * src/print_timeval.c (print_struct_timeval_data_size): Likewise. * src/util.c (print_quoted_string_ex, print_nonzero_bytes, print_array_ex): Likewise. * tests/msg_control.c (test_scm_timestamp_old, test_scm_timestampns_old, test_scm_timestamping_old, test_scm_timestamp_new, test_scm_timestampns_new, test_scm_timestamping_new): Update expected output.
-
- 25 Feb, 2021 1 commit
-
-
Dmitry V. Levin authored
* src/print_fields.h (tprint_alternative_value): New inline function. * src/defs.h (print_big_u64_addr): Use it. * src/ioctl.c (SYS_FUNC(ioctl)): Use it.
-
- 24 Feb, 2021 3 commits
-
-
Dmitry V. Levin authored
* src/print_fields.h (PRINT_FIELD_UINT_ARRAY2D): Remove. (PRINT_FIELD_VAL_ARRAY2D): New macro. (PRINT_FIELD_X_ARRAY2D): Use it.
-
Dmitry V. Levin authored
* src/print_fields.h (PRINT_FIELD_UINT_ARRAY, PRINT_FIELD_SINT_ARRAY): Remove. (PRINT_FIELD_VAL_ARRAY): New macro. (PRINT_FIELD_D_ARRAY): Use it instead of PRINT_FIELD_SINT_ARRAY. (PRINT_FIELD_U_ARRAY, PRINT_FIELD_X_ARRAY): Use it instead of PRINT_FIELD_UINT_ARRAY. * src/sockaddr.c (print_sockaddr_data_ipx): Likewise.
-
Dmitry V. Levin authored
* src/print_fields.h (PRINT_VAL_D, PRINT_VAL_U, PRINT_VAL_X, PRINT_VAL_0X): New macros. (PRINT_FIELD_D, PRINT_FIELD_U, PRINT_FIELD_U_CAST, PRINT_FIELD_X, PRINT_FIELD_X_CAST, PRINT_FIELD_0X, PRINT_FIELD_IDm PRINT_FIELD_U64): Use them.
-
- 23 Feb, 2021 4 commits
-
-
Dmitry V. Levin authored
* bundled/linux/include/uapi/linux/perf_event.h: New file, copied from headers_install'ed Linux kernel v5.11. * bundled/Makefile.am (EXTRA_DIST): Add it. * configure.ac (AC_CHECK_MEMBERS): Remove struct perf_event_attr. (AC_CHECK_HEADERS): Remove linux/perf_event.h. * tests/ioctl_perf-success.c: Include <linux/perf_event.h> unconditionally, assume it defines all its types and constants. * tests/ioctl_perf.c [!HAVE_LINUX_PERF_EVENT_H, !u64]: Remove. * tests/perf_event_open_nonverbose.cc [!HAVE_LINUX_PERF_EVENT_H]: Remove. * tests/perf_event_open.c: Likewise. Assume <linux/perf_event.h> defines all its types and constants.
-
Dmitry V. Levin authored
* bundled/linux/include/uapi/linux/stat.h: New file, copied from headers_install'ed Linux kernel v5.11. * bundled/Makefile.am (EXTRA_DIST): Add it. * configure.ac (AC_CHECK_TYPES): Remove struct statx. * tests/statx.c [!HAVE_STRUCT_STATX]: Remove.
-
Dmitry V. Levin authored
* tests/xstatx.c: Do not include unused "statx.h". Fixes: v4.17~152 "Implement decoding of statx syscall"
-
Vineet Gupta authored
The syscall TRAP instruction used to be 4 bytes on legacy ARCompact based ARC700 cores. Since then ARCv2 (circa 2014) and the upcoming ARCv3 use the same 2-byte TRAP_S instruction. To ease porting of software to new ISA, special case ARC700. This is the only change needed to get strace working on 64-bit ARCv3 cores (kudos to strace for making porting so easy). Signed-off-by:
Vineet Gupta <vgupta@synopsys.com>
-
- 22 Feb, 2021 1 commit
-
-
Dmitry V. Levin authored
* bundled/linux/include/uapi/linux/netfilter/nfnetlink_osf.h: New file, copied from headers_install'ed Linux kernel v5.11. * bundled/Makefile.am (EXTRA_DIST): Add it. * configure.ac (AC_CHECK_HEADERS): Remove linux/netfilter/xt_osf.h. * src/netlink.c: Include <linux/netfilter/nfnetlink_osf.h>. * src/xlat/nf_osf_msg_types.in: Add #unconditional, remove fallback definitions. * tests/nfnetlink_osf.c: Include <linux/netfilter/nfnetlink_osf.h> instead of <linux/ip.h>, <linux/tcp.h>, and <linux/netfilter/xt_osf.h>. [!HAVE_LINUX_NETFILTER_XT_OSF_H]: Remove.
-