1. 16 Apr, 2019 1 commit
  2. 15 Apr, 2019 13 commits
    • Dmitry V. Levin's avatar
      alpha: wire up getegid, geteuid, and getppid syscalls · 1a130338
      Dmitry V. Levin authored
      * linux/alpha/syscallent.h [530..532]: Wire up getegid, geteuid,
      and getppid syscalls introduced on this architecture by linux commit
      v5.1-rc1~160^2~3^2~1.
      * NEWS: Mention this.
      1a130338
    • Dmitry V. Levin's avatar
      alpha: wire up statfs64 and fstatfs64 syscalls · a4651436
      Dmitry V. Levin authored
      * linux/alpha/syscallent.h [528..529]: Wire up statfs64 and fstatfs64
      syscalls introduced on this architecture by linux commit
      v5.1-rc1~160^2~3^2~2.
      * NEWS: Mention this.
      a4651436
    • Dmitry V. Levin's avatar
      Wire up pkey_* and rseq syscalls on remaining architectures · ce317f2d
      Dmitry V. Levin authored
      * linux/alpha/syscallent.h [524..527]: Wire up pkey_mprotect,
      pkey_alloc, pkey_free, and rseq syscalls introduced on this architecture
      by linux commit v5.1-rc1~160^2~3^2~3.
      * linux/hppa/syscallent.h [351..354]: Likewise.
      * linux/ia64/syscallent.h [1024 + 330..333]: Likewise.
      * linux/m68k/syscallent.h [381..384]: Likewise.
      * linux/sh/syscallent.h [384..387]: Likewise.
      * linux/sparc/syscallent.h [362..365]: Likewise.
      * linux/sparc64/syscallent.h: Likewise.
      * linux/s390/syscallent.h [384..386]: Wire up pkey_mprotect,
      pkey_alloc, and pkey_free syscalls introduced on this architecture
      by linux commit v5.1-rc1~160^2~3^2~3.
      * linux/s390x/syscallent.h: Likewise.
      * linux/xtensa/syscallent.h [352]: Wire up rseq syscall introduced
      on this architecture by linux commit v5.1-rc1~160^2~3^2~3.
      * NEWS: Mention this.
      ce317f2d
    • Dmitry V. Levin's avatar
      Wire up direct ipc syscalls on m68k, mips, powerpc*, s390*, sh, sparc*, x86 · 7a76a81a
      Dmitry V. Levin authored
      * linux/i386/syscallent.h [393..402]: Wire up semget, semctl, shmget,
      shmctl, shmat, shmdt, msgget, msgsnd, msgrcv, and msgctl syscalls
      introduced on this architecture by linux commit v5.1-rc1~160^2~3^2~4.
      * linux/m68k/syscallent.h: Likewise.
      * linux/powerpc/syscallent.h: Likewise.
      * linux/s390/syscallent.h: Likewise.
      * linux/sh/syscallent.h: Likewise.
      * linux/sparc/syscallent.h: Likewise.
      * linux/mips/syscallent-o32.h [4393..4402]: Wire up semget, semctl,
      shmget, shmctl, shmat, shmdt, msgget, msgsnd, msgrcv, and msgctl syscalls
      introduced on this architecture by linux commit v5.1-rc1~160^2~3^2~4.
      * linux/powerpc64/syscallent.h [392..402]: Wire up semtimedop, semget,
      semctl, shmget, shmctl, shmat, shmdt, msgget, msgsnd, msgrcv, and msgctl
      syscalls introduced on this architecture by linux commit
      v5.1-rc1~160^2~3^2~4.
      * linux/s390x/syscallent.h: Likewise.
      * linux/sparc64/syscallent.h: Likewise.
      * NEWS: Mention this.
      7a76a81a
    • Dmitry V. Levin's avatar
      powerpc, powerpc64: remove direct ipc syscall entries · e661282e
      Dmitry V. Levin authored
      * linux/powerpc/syscallent.h [366..377]: Remove entries reserved for
      direct ipc syscalls, they were added by linux kernel commit
      v4.4-rc1~98^2~32 and removed by linux kernel commit v4.4-rc6~5^2~2.
      * linux/powerpc64/syscallent.h: Likewise.
      e661282e
    • Dmitry V. Levin's avatar
      sh: wire up statx syscall · b3ef0c40
      Dmitry V. Levin authored
      * linux/sh/syscallent.h [380]: Wire up statx syscall
      introduced on sh by linux commit v5.1-rc1~160^2~3^2~7.
      * NEWS: Mention this.
      b3ef0c40
    • Dmitry V. Levin's avatar
      m68k: wire up seccomp syscall · b9ba5ce9
      Dmitry V. Levin authored
      * linux/m68k/syscallent.h [380]: Wire up seccomp syscall
      introduced on m68k by linux commit v5.1-rc1~160^2~3^2~9.
      * NEWS: Mention this.
      b9ba5ce9
    • Dmitry V. Levin's avatar
      arm: wire up kexec_file_load syscall · 7c27426a
      Dmitry V. Levin authored
      * linux/arm/syscallent.h [401]: Wire up kexec_file_load syscall
      introduced on arm by linux commit v5.1-rc1~160^2~3^2~10.
      * NEWS: Mention this.
      7c27426a
    • Dmitry V. Levin's avatar
      arm: wire up migrate_pages syscall · 8621b95e
      Dmitry V. Levin authored
      * linux/arm/syscallent.h [400]: Wire up migrate_pages syscall
      introduced on arm by linux commit v5.1-rc1~160^2~3^2~11.
      * NEWS: Mention this.
      8621b95e
    • Dmitry V. Levin's avatar
      alpha: wire up io_pgetevents syscall · cac17f36
      Dmitry V. Levin authored
      * linux/alpha/syscallent.h [523]: Wire up io_pgetevents syscall
      introduced on alpha by linux commit v5.1-rc1~160^2~3^2~13.
      * NEWS: Mention this.
      cac17f36
    • Dmitry V. Levin's avatar
      ia64: wire up perf_event_open and seccomp syscalls · 23ace0d1
      Dmitry V. Levin authored
      * linux/ia64/syscallent.h [1024 + 327..328]: Wire up perf_event_open
      and seccomp syscalls introduced on ia64 by linux commit
      v5.1-rc1~160^2~3^2~14.
      * NEWS: Mention this.
      23ace0d1
    • Dmitry V. Levin's avatar
      ia64: wire up statx and io_pgetevents syscalls · e93ea516
      Dmitry V. Levin authored
      * linux/ia64/syscallent.h [1024 + 326..327]: Wire up statx and
      io_pgetevents syscalls introduced on ia64 by linux commit
      v5.1-rc1~160^2~3^2~15.
      * NEWS: Mention this.
      e93ea516
    • Dmitry V. Levin's avatar
      ia64: make syscall entry table numbers more readable · ff28b0d3
      Dmitry V. Levin authored
      * linux/ia64/syscallent.h: Format syscall numbers using base+offset form.
      * scno.am (SCNO_SED): Update to handle this format.
      ff28b0d3
  3. 24 Mar, 2019 2 commits
    • Guo Ren's avatar
      Add C-SKY architecture support · 2dd07185
      Guo Ren authored
      This is port of C-SKY architecture for strace.  There is a little
      difference between abiv1 and abiv2, we use __CSKYABIV2__ from GCC-csky
      to distinguish.
      Signed-off-by: Guo Ren's avatarGuo Ren <ren_guo@c-sky.com>
      Reviewed-By: 's avatarDmitry V. Levin <ldv@altlinux.org>
      
      * cacheflush.c [CSKY] (cacheflush_flags, SYS_FUNC(cacheflush)): Define.
      * clone.c [CSKY] (ARG_*): Define.
      * configure.ac [$host_cpu == csky*]: Define CSKY.
      * linux/csky/arch_regs.c: New file.
      * linux/csky/get_error.c: Likewise.
      * linux/csky/get_scno.c: Likewise.
      * linux/csky/get_syscall_args.c: Likewise.
      * linux/csky/ioctls_arch0.h: Likewise.
      * linux/csky/ioctls_inc0.h: Likewise.
      * linux/csky/raw_syscall.h: Likewise.
      * linux/csky/set_error.c: Likewise.
      * linux/csky/set_scno.c: Likewise.
      * linux/csky/syscallent.h: Likewise.
      * Makefile.am (EXTRA_DIST): Add them.
      * NEWS: Mention this change.
      2dd07185
    • Guo Ren's avatar
      riscv: Fixup wrong clone's arguments define · bf81998f
      Guo Ren authored
      In linux kernel riscv select CLONE_BACKWARDS in
      linux/arch/riscv/Kconfig, and in linux/kernel/fork.c:
      
      ifdef CONFIG_CLONE_BACKWARDS
      SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp,
      		 int __user *, parent_tidptr,
      		 unsigned long, tls,
      		 int __user *, child_tidptr)
      elif ...
      
      So we must make the riscv clone-arguments' sequence to be:
        define ARG_FLAGS	0
        define ARG_STACK	1
        define ARG_PTID	2
        define ARG_TLS	3
        define ARG_CTID	4
      Signed-off-by: Guo Ren's avatarGuo Ren <ren_guo@c-sky.com>
      Reviewed-By: 's avatarDmitry V. Levin <ldv@altlinux.org>
      
      * clone.c [RISCV]: Use default definitions for ARG_* macros.
      * NEWS: Mention this fix.
      bf81998f
  4. 20 Mar, 2019 1 commit
    • Dmitry V. Levin's avatar
      Post-release administrivia · 7fb30f2f
      Dmitry V. Levin authored
      * NEWS: Add a header line for the next release.
      * debian/changelog.in: Add a changelog entry for 5.0-1.
      * strace.spec.in: Likewise.
      7fb30f2f
  5. 19 Mar, 2019 2 commits
  6. 18 Mar, 2019 7 commits
  7. 17 Mar, 2019 3 commits
    • Shankara Pailoor's avatar
      Honor xlat styles when decoding mac addresses · c256b45d
      Shankara Pailoor authored
      * defs.h (print_mac_addr): Add xlat_style support, move ...
      * print_mac.c: ... here.
      * tests/sockaddr_xlat.c [HAVE_BLUETOOTH_BLUETOOTH_H]: Include
      <bluetooth/bluetooth.h>, <bluetooth/hci.h>, <bluetooth/l2cap.h>
      <bluetooth/rfcomm.h>, and <bluetooth/sco.h>.
      [HAVE_BLUETOOTH_BLUETOOTH_H] (check_sco, check_rc): New functions.
      (main) [HAVE_BLUETOOTH_BLUETOOTH_H]: Call them to verify
      new xlat_style support in print_mac_addr().
      * tests/net-packet_mreq.c: Handle XLAT_RAW, XLAT_ABBREV,
      and XLAT_VERBOSE macros.
      * tests/net-packet_mreq-Xabbrev.c: New test.
      * tests/net-packet_mreq-Xraw.c: Likewise.
      * tests/net-packet_mreq-Xverbose.c: Likewise.
      * tests/gen_tests.in (net-packet_mreq-Xabbrev, net-packet_mreq-Xraw,
      net-packet_mreq-Xverbose): New tests.
      * tests/pure_executables.list: Add net-packet_mreq-Xabbrev,
      net-packet_mreq-Xraw, and et-packet_mreq-Xverbose.
      * tests/.gitignore: Likewise.
      Co-Authored-by: 's avatarDmitry V. Levin <ldv@altlinux.org>
      c256b45d
    • Shankara Pailoor's avatar
      net: print mac address consistently · 8e48eb51
      Shankara Pailoor authored
      * net.c (print_packet_mreq): Call PRINT_FIELD_MAC_SZ instead of custom
      print.
      * tests/net-packet_mreq.c (test_packet_mreq): Update expected output.
      Co-Authored-by: 's avatarDmitry V. Levin <ldv@altlinux.org>
      8e48eb51
    • Dmitry V. Levin's avatar
      Change -D option to imply -I4 · 4249fe48
      Dmitry V. Levin authored
      * strace.c (init) [daemonized_tracer && !opt_intr]: Set opt_intr
      to INTR_BLOCK_TSTP_TOO.
      * strace.1.in: Document this.
      * NEWS: Mention this change.
      
      Resolves: https://github.com/strace/strace/issues/96
      4249fe48
  8. 15 Mar, 2019 1 commit
    • Tuan Hoang's avatar
      s390: fix SIGNAL_FRAMESIZE macro · 6d2ed715
      Tuan Hoang authored
      Since __SIGNAL_FRAMESIZE is in private name space, it is better not to
      use it directly. This macro has been stable on s390/s390x so it is safe
      to use the integer value.
      
      * linux/s390/arch_sigreturn.c [!SIGNAL_FRAMESIZE] (SIGNAL_FRAMESIZE):
      Define to 96.
      * linux/s390x/arch_sigreturn.c (arch_sigreturn == s390_arch_sigreturn):
      Remove S390_SIGNAL_FRAMESIZE and SIGNAL_FRAMESIZE.
      (arch_sigreturn == s390x_arch_sigreturn): Define SIGNAL_FRAMESIZE.
      * linux/s390/rt_sigframe.h (SIGNAL_FRAMESIZE): Define.
      (struct_rt_sigframe): Replace __SIGNAL_FRAMESIZE with SIGNAL_FRAMESIZE.
      Signed-off-by: 's avatarTuan Hoang <tmhoang@linux.ibm.com>
      Co-Authored-by: 's avatarDmitry V. Levin <ldv@altlinux.org>
      6d2ed715
  9. 14 Mar, 2019 1 commit
    • Dmitry V. Levin's avatar
      bpf: add support for new seven fields in BPF_PROG_LOAD · 5b9b904e
      Dmitry V. Levin authored
      * bpf_attr.h (struct BPF_PROG_LOAD_struct): Add prog_btf_fd,
      func_info_rec_size, func_info, func_info_cnt, line_info_rec_size,
      line_info, and line_info_cnt fields.
      * bpf.c (BEGIN_BPF_CMD_DECODER(BPF_PROG_LOAD)): Decode these fields
      introduced by Linux commits v5.0-rc1~129^2~209^2~16^2~8 and
      v5.0-rc1~129^2~114^2~5^2~6.
      * tests/bpf.c (BPF_PROG_LOAD_checks): Check it.
      * tests/kernel_version.c (print_bpf_attr): Update expected output.
      * tests/bpf-obj_get_info_by_fd.c (print_prog_load): Likewise.
      5b9b904e
  10. 13 Mar, 2019 5 commits
    • Dmitry V. Levin's avatar
      bpf: implement decoding of BPF_TASK_FD_QUERY command · 4207c111
      Dmitry V. Levin authored
      BPF_TASK_FD_QUERY command was introduced by Linux commit
      v4.18-rc1~114^2~148^2~1^2~5.
      
      * bpf_attr.h (struct BPF_TASK_FD_QUERY_struct): New type.
      (BPF_TASK_FD_QUERY_struct_size,
      expected_BPF_TASK_FD_QUERY_struct_size): New macros.
      * bpf.c: Include "xlat/bpf_task_fd_type.h".
      (BEGIN_BPF_CMD_DECODER(BPF_TASK_FD_QUERY)): New bpf command decoder.
      (SYS_FUNC(bpf)) <bpf_cmd_decoders[]>: Add
      BPF_CMD_ENTRY(BPF_TASK_FD_QUERY).
      * xlat/bpf_task_fd_type.in: New file.
      * tests/bpf.c (union bpf_attr_data): Add
      BPF_ATTR_DATA_FIELD(BPF_TASK_FD_QUERY).
      (BPF_TASK_FD_QUERY_checks): New checks array.
      (main) <checks>: Add CHK(BPF_TASK_FD_QUERY).
      4207c111
    • Dmitry V. Levin's avatar
      bpf: implement decoding of BPF_MAP_LOOKUP_AND_DELETE_ELEM command · 0373ab45
      Dmitry V. Levin authored
      BPF_MAP_LOOKUP_AND_DELETE_ELEM command was introduced by Linux commit
      v4.20-rc1~151^2~32^2~11^2~2.
      
      * bpf.c (decode_BPF_MAP_LOOKUP_AND_DELETE_ELEM): Alias
      to decode_BPF_MAP_LOOKUP_ELEM.
      (SYS_FUNC(bpf)) <bpf_cmd_decoders[]>: Add
      BPF_CMD_ENTRY(BPF_MAP_LOOKUP_AND_DELETE_ELEM).
      * tests/bpf.c (BPF_MAP_LOOKUP_AND_DELETE_ELEM_checks): Alias
      to BPF_MAP_LOOKUP_ELEM_checks.
      (main) <checks>: Add CHK(BPF_MAP_LOOKUP_AND_DELETE_ELEM).
      0373ab45
    • Dmitry V. Levin's avatar
      bpf: implement decoding of BPF_BTF_GET_FD_BY_ID command · 9c183d96
      Dmitry V. Levin authored
      BPF_BTF_GET_FD_BY_ID command was introduced by Linux commit
      v4.18-rc1~114^2~223^2~21^2~4.
      
      * bpf_attr.h (struct BPF_BTF_GET_FD_BY_ID_struct): New type.
      (BPF_BTF_GET_FD_BY_ID_struct_size,
      expected_BPF_BTF_GET_FD_BY_ID_struct_size): New macros.
      * bpf.c (BEGIN_BPF_CMD_DECODER(BPF_BTF_GET_FD_BY_ID)): New bpf command
      decoder.
      (SYS_FUNC(bpf)) <bpf_cmd_decoders[]>: Add
      BPF_CMD_ENTRY(BPF_BTF_GET_FD_BY_ID).
      * tests/bpf.c (union bpf_attr_data): Add
      BPF_ATTR_DATA_FIELD(BPF_BTF_GET_FD_BY_ID).
      (BPF_BTF_GET_FD_BY_ID_checks): New checks array.
      (main) <checks>: Add CHK(BPF_BTF_GET_FD_BY_ID).
      9c183d96
    • Dmitry V. Levin's avatar
      bpf: implement decoding of BPF_BTF_LOAD command · bc4224a8
      Dmitry V. Levin authored
      BPF_BTF_LOAD command was introduced by Linux commit
      v4.18-rc1~114^2~417^2~1^2~5.
      
      * bpf_attr.h (struct BPF_BTF_LOAD_struct): New type.
      (BPF_BTF_LOAD_struct_size, expected_BPF_BTF_LOAD_struct_size): New
      macros.
      * bpf.c (BEGIN_BPF_CMD_DECODER(BPF_BTF_LOAD)): New bpf command decoder.
      (SYS_FUNC(bpf)) <bpf_cmd_decoders[]>: Add BPF_CMD_ENTRY(BPF_BTF_LOAD).
      * tests/bpf.c (union bpf_attr_data): Add
      BPF_ATTR_DATA_FIELD(BPF_BTF_LOAD).
      (init_BPF_BTF_LOAD_attr): New function.
      (BPF_BTF_LOAD_checks): New checks array.
      (main) <checks>: Add CHK(BPF_BTF_LOAD).
      bc4224a8
    • Dmitry V. Levin's avatar
      bpf: make decoders of BPF_*_GET_FD_BY_ID commands return RVAL_FD · 52563831
      Dmitry V. Levin authored
      These bpf commands return file descriptors.
      
      * bpf.c (BPF_PROG_GET_FD_BY_ID, BPF_MAP_GET_FD_BY_ID): Add RVAL_FD
      to END_BPF_CMD_DECODER.
      52563831
  11. 12 Mar, 2019 4 commits
    • Dmitry V. Levin's avatar
      bpf: add support for new twelve fields in struct bpf_prog_info · 940fe50f
      Dmitry V. Levin authored
      * bpf_attr.h (struct bpf_prog_info_struct): Add btf_id,
      func_info_rec_size, func_info, nr_func_info, nr_line_info, line_info,
      jited_line_info, nr_jited_line_info, line_info_rec_size,
      jited_line_info_rec_size, nr_prog_tags, and prog_tags fields.
      * bpf.c (struct obj_get_info_saved): Add func_info_rec_size,
      nr_func_info, nr_line_info, jited_line_info, nr_jited_line_info,
      line_info_rec_size, jited_line_info_rec_size, and nr_prog_tags fields.
      (print_bpf_prog_info): Decode the twelve fields introduced by Linux
      commits v5.0-rc1~129^2~209^2~16^2~8, v5.0-rc1~129^2~114^2~5^2~6,
      v5.0-rc1~129^2~114^2^2~2, and v5.0-rc1~129^2~15^2~22.
      * NEWS: Mention the latest bpf decoding enhancements.
      * tests/bpf-obj_get_info_by_fd.c (main): Update expected output.
      
      Resolves: https://github.com/strace/strace/issues/94
      940fe50f
    • Dmitry V. Levin's avatar
      bpf: add support for *jited_ksyms and *jited_func_lens fields in struct bpf_prog_info · d1f90bcd
      Dmitry V. Levin authored
      * bpf_attr.h (struct bpf_prog_info_struct): Add nr_jited_ksyms,
      nr_jited_func_lens, jited_ksyms, and jited_func_lens fields.
      * bpf.c (struct obj_get_info_saved): Likewise.
      (print_bpf_prog_info): Decode these fields introduced by Linux commits
      v4.18-rc1~114^2~148^2~3^2~6 and v4.18-rc1~114^2~148^2~3^2~2.
      * tests/bpf-obj_get_info_by_fd.c (main): Update expected output.
      d1f90bcd
    • Dmitry V. Levin's avatar
      bpf: add support for btf_* fields in struct bpf_map_info · 27bd13d3
      Dmitry V. Levin authored
      * bpf_attr.h (struct bpf_map_info_struct): Add btf_fd, btf_key_type_id,
      and btf_value_type_id fields.
      * bpf.c (print_bpf_map_info): Decode btf_fd, btf_key_type_id,
      and btf_value_type_id fields introduced by Linux commits
      v4.18-rc1~114^2~223^2~21^2~4 and v4.18-rc1~114^2~148^2~7^2~2.
      * tests/bpf-obj_get_info_by_fd.c (main): Update expected output.
      27bd13d3
    • Dmitry V. Levin's avatar
      bpf: add support for btf_* fields in BPF_MAP_CREATE · 14a9b6ca
      Dmitry V. Levin authored
      * bpf_attr.h (struct BPF_MAP_CREATE_struct): Add btf_fd,
      btf_key_type_id, and btf_value_type_id fields.
      * bpf.c (BEGIN_BPF_CMD_DECODER(BPF_MAP_CREATE)): Decode btf_fd,
      btf_key_type_id, and btf_value_type_id fields introduced by Linux
      commits v4.18-rc1~114^2~417^2~1^2~3 and v4.18-rc1~114^2~148^2~7^2~2.
      * tests/bpf.c (BPF_MAP_CREATE_checks): Check it.
      * tests/bpf-obj_get_info_by_fd.c (print_map_create): Update expected
      output.
      14a9b6ca