1. 03 Mar, 2021 4 commits
  2. 02 Mar, 2021 11 commits
  3. 01 Mar, 2021 13 commits
    • Dmitry V. Levin's avatar
      alpha: use print_fields.h helpers · df17fa24
      Dmitry V. Levin authored
      * src/alpha.c (SYS_FUNC(osf_statfs), SYS_FUNC(osf_fstatfs)): Use
      tprint_arg_next and PRINT_VAL_U.
      df17fa24
    • Dmitry V. Levin's avatar
      aio: use print_fields.h helpers · d9ce6110
      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.
      d9ce6110
    • Dmitry V. Levin's avatar
      affinity: use print_fields.h helpers · 28472581
      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.
      28472581
    • Dmitry V. Levin's avatar
      access: use print_fields.h helpers · 233a9fe3
      Dmitry V. Levin authored
      * src/access.c (decode_access, decode_faccessat, SYS_FUNC(faccessat2)):
      Use tprint_arg_next.
      233a9fe3
    • Dmitry V. Levin's avatar
      Replace printllval with print_arg_lld and print_arg_llu · 4fa56f12
      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.
      4fa56f12
    • Dmitry V. Levin's avatar
      truncate: use print_fields.h helpers · c266eac1
      Dmitry V. Levin authored
      * src/truncate.c (SYS_FUNC(truncate), SYS_FUNC(ftruncate64)): Use
      tprint_arg_next and PRINT_VAL_U.
      c266eac1
    • Dmitry V. Levin's avatar
      sync_file_range2: use print_fields.h helpers · 272cefc2
      Dmitry V. Levin authored
      * src/sync_file_range2.c (SYS_FUNC(sync_file_range2)): Use
      tprint_arg_next.
      272cefc2
    • Dmitry V. Levin's avatar
      sync_file_range: use print_fields.h helpers · 455c3320
      Dmitry V. Levin authored
      * src/sync_file_range.c (SYS_FUNC(sync_file_range)): Use
      tprint_arg_next.
      455c3320
    • Dmitry V. Levin's avatar
      readahead: use print_fields.h helpers · 0a9d9f8b
      Dmitry V. Levin authored
      * src/readahead.c (SYS_FUNC(readahead)): Use tprint_arg_next and
      PRINT_VAL_U.
      0a9d9f8b
    • Dmitry V. Levin's avatar
      lookup_dcookie: use print_fields.h helpers · 86e54cde
      Dmitry V. Levin authored
      * src/lookup_dcookie.c (SYS_FUNC(lookup_dcookie)): Use tprint_arg_next
      and PRINT_VAL_U.
      86e54cde
    • Dmitry V. Levin's avatar
      io: use print_fields.h helpers · 8b3af49e
      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.
      8b3af49e
    • Dmitry V. Levin's avatar
      fallocate: use print_fields.h helpers · 6d9855de
      Dmitry V. Levin authored
      * src/fallocate.c (SYS_FUNC(fallocate.c)): Use tprint_arg_next.
      6d9855de
    • Dmitry V. Levin's avatar
      fadvise: use print_fields.h helpers · d81f37c8
      Dmitry V. Levin authored
      * src/fadvise.c (SYS_FUNC(fadvise64), SYS_FUNC(fadvise64_64)): Use
      tprint_arg_next and PRINT_VAL_U.
      d81f37c8
  4. 28 Feb, 2021 1 commit
  5. 27 Feb, 2021 1 commit
    • Dmitry V. Levin's avatar
      print_fields.h: introduce tprint*_arg_* helpers · 1caa2df4
      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.
      1caa2df4
  6. 26 Feb, 2021 1 commit
    • Dmitry V. Levin's avatar
      print_fields.h: introduce tprint_unavailable helper · f3a9b0d8
      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.
      f3a9b0d8
  7. 25 Feb, 2021 1 commit
  8. 24 Feb, 2021 3 commits
  9. 23 Feb, 2021 4 commits
    • Dmitry V. Levin's avatar
      tests: switch to use bundled <linux/perf_event.h> · 961bad1b
      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.
      961bad1b
    • Dmitry V. Levin's avatar
      tests: switch to use bundled <linux/stat.h> · 78343656
      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.
      78343656
    • Dmitry V. Levin's avatar
      tests: do not include "statx.h" · 7a45b12a
      Dmitry V. Levin authored
      * tests/xstatx.c: Do not include unused "statx.h".
      
      Fixes: v4.17~152 "Implement decoding of statx syscall"
      7a45b12a
    • Vineet Gupta's avatar
      ARC: Enable automatic support for newer ARC ISA variants (ARCv3) · 9705120f
      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: default avatarVineet Gupta <vgupta@synopsys.com>
      9705120f
  10. 22 Feb, 2021 1 commit
    • Dmitry V. Levin's avatar
      netlink: switch to use bundled <linux/netfilter/nfnetlink_osf.h> · 30c997cd
      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.
      30c997cd