| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
| |
* src/xlat/rtnl_ifla_brport_attrs.in (IFLA_BRPORT_MAB): New constant
introduced by Linux kernel commit v6.2-rc1~99^2~297^2~1.
* src/xlat/rtnl_link_attrs.in (IFLA_DEVLINK_PORT): New constant
introduced by Linux kernel commit v6.2-rc1~99^2~296^2.
* src/rtnl_link.c (ifla_brport_nla_decoders): Add IFLA_BRPORT_MAB.
(ifinfomsg_nla_decoders): Add IFLA_DEVLINK_PORT.
* tests/nlattr_ifla_brport.c (main): Update expected output.
* tests/nlattr_ifla_linkinfo.c: Likewise.
* NEWS: Mention this.
|
|
|
|
|
|
|
|
| |
It performs differential ShellCheck scans and report results directly in
pull request.
documentation:
https://github.com/redhat-plumbers-in-action/differential-shellcheck
|
|
|
|
|
|
|
| |
* src/xlat/bpf_map_types.in (BPF_MAP_TYPE_CGRP_STORAGE): New constant
introduced by Linux kernel commit v6.2-rc1~99^2~309^2~7^2~6.
* NEWS: Mention this change.
* tests/bpf.c (BPF_MAP_CREATE_checks): Update.
|
|
|
|
|
|
| |
* src/xlat/sock_alg_options.in (ALG_SET_KEY_BY_KEY_SERIAL): New constant
introduced by Linux kernel commit v6.2-rc1~87^2~128.
* NEWS: Mention this change.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bundled/linux/include/uapi/linux/btrfs.h: Update to headers_install'ed
Linux kernel v6.2-rc2.
* bundled/linux/include/uapi/linux/btrfs_tree.h: Likewise.
* bundled/linux/include/uapi/linux/dcbnl.h: Likewise.
* bundled/linux/include/uapi/linux/fscrypt.h: Likewise.
* bundled/linux/include/uapi/linux/if_alg.h: Likewise.
* bundled/linux/include/uapi/linux/if_bridge.h: Likewise.
* bundled/linux/include/uapi/linux/if_link.h: Likewise.
* bundled/linux/include/uapi/linux/input-event-codes.h: Likewise.
* bundled/linux/include/uapi/linux/io_uring.h: Likewise.
* bundled/linux/include/uapi/linux/landlock.h: Likewise.
* bundled/linux/include/uapi/linux/mptcp.h: Likewise.
* bundled/linux/include/uapi/linux/neighbour.h: Likewise.
* bundled/linux/include/uapi/linux/netfilter/ipset/ip_set.h: Likewise.
* bundled/linux/include/uapi/linux/netfilter/nf_tables.h: Likewise.
* bundled/linux/include/uapi/linux/netfilter/nfnetlink_cttimeout.h: Likewise.
* bundled/linux/include/uapi/linux/tcp.h: Likewise.
* bundled/linux/include/uapi/linux/v4l2-common.h: Likewise.
* bundled/linux/include/uapi/linux/v4l2-controls.h: Likewise.
* bundled/linux/include/uapi/linux/version.h: Likewise.
* bundled/linux/include/uapi/linux/videodev2.h: Likewise.
* bundled/linux/include/uapi/rdma/ib_user_verbs.h: Likewise.
|
|
|
|
|
|
|
| |
* src/io_uring.c: Include "kernel_time_types.h".
(UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H): New macro.
* tests/io_uring_register.c: Likewise.
* tests/io_uring_setup.c: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tests/msg_control.c: Do not include <linux/time_types.h>,
include "kernel_time_types.h" unconditionally instead.
(test_scm_timestamp_new, test_scm_timestampns_new): Compile
unconditionally.
(test_sol_socket): Call them unconditionally.
* tests/sockopt-timestamp.c: Do not include <linux/time_types.h>,
include "kernel_time_types.h" unconditionally instead.
(print_timestamp_new, print_timestampns_new): Compile unconditionally.
(main): Call them unconditionally.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If kernel headers do not provide linux/time_types.h, provide
fallback definitions for __kernel_sock_timeval and __kernel_timespec.
* src/kernel_timespec.h [!HAVE_STRUCT___KERNEL_TIMESPEC]
(__kernel_timespec): New macro.
* src/kernel_timespec.h (struct kernel_timespec64_t,
struct kernel_timespec32_t): New types.
* src/kernel_time_types.h: New file.
* src/Makefile.am (libstrace_a_SOURCES): Add it.
|
|
|
|
|
|
|
|
|
| |
* src/print_fields.h (tprint_sysret_begin, tprints_sysret_next,
tprints_sysret_string, tprint_sysret_pseudo_rval, tprint_sysret_end):
New functions.
* src/strace.c (print_event_exit): Use them.
* src/syscall.c (print_err_ret, print_injected_note, print_erestart,
syscall_exiting_trace): Likewise.
|
|
|
|
|
|
|
|
| |
* src/syscall.c (print_syscall_resume): Explicitly update printing_tcp
so that printing_tcp is updated even if printleader is not invoked.
(syscall_exiting_trace): Do not update printing_tcp after
print_syscall_resume invocation.
* src/strace.c (print_event_exit): Likewise.
|
|
|
|
|
|
|
|
|
|
|
| |
* src/strace.c (printleader): Do not mark staged output
in other processes as unfinished.
* tests/status-successful-threads.c: New file.
* tests/status-successful-threads.test: New test.
* tests/.gitignore: Add status-successful-threads.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(status_successful_threads_LDADD): New variable.
(MISC_TESTS): Add status-successful-threads.test.
|
|
|
|
|
|
|
|
|
|
|
| |
* src/strace.c (print_event_exit): When handling PTRACE_EVENT_EXIT for
a process, do not mark staged output in other processes as unfinished.
* tests/status-detached-threads.c: New file.
* tests/status-detached-threads.test: New test.
* tests/.gitignore: Add status-detached-threads.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(status_detached_threads_LDADD): New variable.
(MISC_TESTS): Add status-detached-threads.test.
|
|
|
|
|
|
|
| |
This macro was not intended to be used outside print_fields.h
* src/v4l2.c (PRINT_FIELD_FRACT): Replace STRACE_PRINTF with
tprintf_string.
|
|
|
|
|
| |
* src/strace.c (tprints_comment): Use tprint_comment_begin
and tprint_comment_end.
|
|
|
|
|
| |
* src/syscall.c (print_erestart): New function.
(syscall_exiting_trace): Use it.
|
|
|
|
|
| |
* src/syscall.c (syscall_exiting_trace): Print the auxiliary string
and the injection note just in one location.
|
|
|
|
|
|
| |
* src/syscall.c (syscall_exiting_trace): In all cases where injection
note is printed, make sure it is printed after the auxiliary string,
not before it.
|
|
|
|
|
|
|
| |
* src/defs.h (tprint_arg_name_end): New function.
* src/clone.c (SYS_FUNC(clone)): Use it.
Co-authored-by: Dmitry V. Levin <ldv@strace.io>
|
|
|
|
| |
Co-authored-by: Dmitry V. Levin <ldv@strace.io>
|
|
|
|
| |
Co-authored-by: Dmitry V. Levin <ldv@strace.io>
|
|
|
|
| |
Co-authored-by: Dmitry V. Levin <ldv@strace.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/defs.h (printflags64_in): Rename from printflags64.
(printflags_in): Rename from printflags. Use printflags64_in.
(printflags64, printflags): New functions.
* src/capability.c (print_cap_bits): Use printflags_in instead of
printflags.
* src/fanotify.c (SYS_FUNC(fanotify_init)): Likewise.
* src/ipc_msg.c (SYS_FUNC(msgget)): Likewise.
* src/ipc_sem.c (SYS_FUNC(semget)): Likewise.
* src/ipc_shm.c (SYS_FUNC(shmget)): Likewise.
* src/net.c (tprint_sock_type): Likewise.
* src/personality.c (SYS_FUNC(personality)): Likewise.
* src/statx.c (SYS_FUNC(statx)): Likewise.
* src/swapon.c (SYS_FUNC(swapon)): Likewise.
* src/v4l2.c (print_v4l2_buffer_flags, print_v4l2_cid): Likewise.
* src/clone.c (SYS_FUNC(clone)): Use printflags64_in instead of
printflags64.
* src/kexec.c (SYS_FUNC(kexec_load)): Likewise.
* src/mount.c (SYS_FUNC(mount)): Likewise.
* src/term.c (decode_oflag, decode_cflag): Likewise.
Co-authored-by: Dmitry V. Levin <ldv@strace.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/print_fields.h (tprint_flags_begin, tprint_flags_end): New
functions.
(PRINT_FIELD_FLAGS_VERBOSE): Use them.
* src/bpf_filter.c (print_bpf_filter_code): Likewise.
* src/bpf_seccomp_filter.c (print_seccomp_filter_k): Likewise.
* src/capability.c (print_cap_bits): Likewise.
* src/clone.c (SYS_FUNC(clone), SYS_FUNC(clone3)): Likewise.
* src/fanotify.c (SYS_FUNC(fanotify_init)): Likewise.
* src/futex.c (do_futex): Likewise.
* src/ioctl.c (ioctl_print_code): Likewise.
* src/ipc.c (SYS_FUNC(ipc)): Likewise.
* src/ipc_defs.h (PRINTCTL): Likewise.
* src/ipc_msg.c (SYS_FUNC(msgget)): Likewise.
* src/ipc_sem.c (SYS_FUNC(semget)): Likewise.
* src/ipc_shm.c (SYS_FUNC(shmget)): Likewise.
* src/kd_ioctl.c (kd_mk_tone): Likewise.
* src/kexec.c (SYS_FUNC(kexec_load)): Likewise.
* src/mem.c (print_mmap_flags): Likewise.
* src/memfd_create.c (SYS_FUNC(memfd_create)): Likewise.
* src/mount.c (SYS_FUNC(mount)): Likewise.
* src/net.c (tprint_sock_type): Likewise.
* src/netlink.c (decode_nlmsg_type_netfilter, decode_nlmsg_flags):
Likewise.
* src/nlattr.c (print_nlattr, decode_nla_flags): Likewise.
* src/numa.c (print_mode): Likewise.
* src/perf.c (print_perf_event_attr): Likewise.
* src/personality.c (SYS_FUNC(personality)): Likewise.
* src/sched.c (SYS_FUNC(sched_getattr)): Likewise.
* src/scsi.c (scsi_ioctl): Likewise.
* src/statx.c (SYS_FUNC(statx)): Likewise.
* src/swapon.c (SYS_FUNC(swapon)): Likewise.
* src/tee.c (tee_print_param_fn): Likewise.
* src/term.c (decode_oflag, decode_cflag): Likewise.
* src/v4l2.c (print_v4l2_buffer_flags, print_v4l2_cid): Likewise.
* src/wait.c (printstatus): Likewise.
Co-authored-by: Dmitry V. Levin <ldv@strace.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/print_fields.h (tprint_shift_begin, tprint_shift_end): New
functions.
* src/futex.c (do_futex): Use them.
* src/ipc.c (SYS_FUNC(ipc)): Likewise.
* src/ipc_shm.c (SYS_FUNC(shmget)): Likewise.
* src/kd_ioctl.c (kd_mk_tone): Likewise.
* src/mem.c (print_mmap_flags): Likewise.
* src/memfd_create.c (SYS_FUNC(memfd_create)): Likewise.
* src/netlink.c (decode_nlmsg_type_netfilter): Likewise.
* src/perf.c (print_perf_event_attr): Likewise.
* src/term.c (decode_cflag): Likewise.
* src/util.c (print_abnormal_hi): Likewise.
* src/wait.c (printstatus): Likewise.
Co-authored-by: Dmitry V. Levin <ldv@strace.io>
|
|
|
|
|
|
|
|
|
|
|
| |
* src/print_fields.h (tprint_array_index_equal): Rename from
tprint_array_index_end.
(tprint_array_index_end): New function.
* src/btrfs.c (btrfs_ioctl): Use them.
* src/term.c (print_cc_char): Likewise.
* src/util.c (print_array_ex): Likewise.
Co-authored-by: Dmitry V. Levin <ldv@strace.io>
|
|
|
|
| |
Co-authored-by: Dmitry V. Levin <ldv@strace.io>
|
|
|
|
|
|
| |
* NEWS: Add a header line for the next release.
* debian/changelog.in: Add a changelog entry for 6.1-1.
* strace.spec.in: Likewise.
|
|
|
|
| |
* NEWS: Update for 6.1 release.
|
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
|
|
|
|
|
| |
* src/statx.h (struct_statx): Add stx_mnt_id, stx_dio_mem_align,
and stx_dio_offset_align fields, update reserved2 field.
* src/statx.c (SYS_FUNC(statx)): Print the new fields when
the appropriate bits of struct statx.stx_mask are set.
* tests/xstatx.c (print_stat) [IS_STATX]: Update expected output.
* NEWS: Mention this change.
|
|
|
|
|
|
| |
* src/statx.c (SYS_FUNC(statx)): Make printing of optional struct statx
fields dependent on the value of struct statx.stx_mask.
* tests/xstatx.c (print_stat): Update expected output.
|
|
|
|
|
|
|
|
| |
* src/xlat/tls_info_ciphers.in (TLS_CIPHER_ARIA_GCM_128,
TLS_CIPHER_ARIA_GCM_256): New constants introduced by Linux kernel
commit v6.1-rc1~170^2~85.
* tests/nlattr_inet_diag_msg.c (main): Update expected output.
* NEWS: Mention this change.
|
|
|
|
|
|
|
| |
* src/xlat/statx_masks.in (STATX_DIOALIGN): New constant introduced
by Linux kernel commit v6.1-rc1~187^2~7.
* tests/xstatx.c (main): Update expected output.
* NEWS: Mention this change.
|
|
|
|
|
|
|
|
| |
* src/xlat/perf_branch_sample_type.in (PERF_SAMPLE_BRANCH_PRIV_SAVE):
New constant introduced by Linux kernel commit v6.1-rc1~97^2~60.
* tests/perf_event_open.c (BRANCH_TYPE_ALL, main): Update expected
output.
* NEWS: Mention this change.
|
|
|
|
|
|
|
| |
* src/xlat/nlmsgerr_attrs.in (NLMSGERR_ATTR_MISS_TYPE,
NLMSGERR_ATTR_MISS_NEST): New constants introduced by Linux kernel
commit v6.1-rc1~170^2~313^2~4.
* NEWS: Mention this change.
|
|
|
|
|
|
| |
* src/xlat/kvm_cap.in (KVM_CAP_DIRTY_LOG_RING_ACQ_REL): New constant
introduced by Linux kernel commit v6.1-rc1~49^2~1^2~1^2~4.
* NEWS: Mention this change.
|
|
|
|
|
|
| |
* src/xlat/evdev_abs.in (ABS_PROFILE): New constant introduced
by Linux kernel commit v6.1-rc1~54^2^2~9.
* NEWS: Mention this change.
|
|
|
|
|
|
|
| |
* src/xlat/rtnl_link_attrs.in (IFLA_ALLMULTI): New constant introduced
by Linux kernel commit v6.1-rc1~170^2~218.
* src/rtnl_link.c (ifinfomsg_nla_decoders) <IFLA_ALLMULTI>: New entry.
* NEWS: Mention this change.
|
|
|
|
|
|
|
| |
* src/xlat/ethernet_protocols.in (ETH_P_CANXL): New constant introduced
by Linux kernel commit v6.1-rc1~170^2~209^2^2~2.
* tests/nlattr_ifla_vfinfo.c (main): Update expected output.
* NEWS: Mention this change.
|
|
|
|
|
|
|
| |
* src/xlat/counter_ioctl_event_types.in (COUNTER_EVENT_CAPTURE): New
constant introduced by Linux kernel commit v6.1-rc1~113^2~16.
* tests/ioctl_counter.c (main): Update expected output.
* NEWS: Mention this change.
|
|
|
|
|
|
|
| |
* src/xlat/btrfs_features_compat_ro.in
(BTRFS_FEATURE_COMPAT_RO_BLOCK_GROUP_TREE): New constant introduced
by Linux kernel commit v6.1-rc1~142^2~102.
* NEWS: Mention this change.
|
|
|
|
|
|
|
| |
* src/xlat/bpf_map_types.in (BPF_MAP_TYPE_USER_RINGBUF): New constant
introduced by Linux kernel commit v6.1-rc1~170^2~10^2~39^2~3.
* NEWS: Mention this change.
* tests/bpf.c (BPF_MAP_CREATE_checks): Update.
|
|
|
|
|
|
| |
* src/xlat/madvise_cmds.in (MADV_COLLAPSE): New constant
introduced by Linux kernel commit v6.1-rc1~21^2~577.
* NEWS: Mention this.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In addition to linux/io_uring.h that was excluded from updates because
of non-trivial implications caused by use of linux/time_types.h in that
header file starting with v6.0, linux/in.h is also excluded from updates
due to its use of linux/stddef.h starting with v6.1.
* bundled/linux/include/uapi/asm-generic/hugetlb_encode.h: Update to
headers_install'ed Linux kernel v6.1.
* bundled/linux/include/uapi/linux/btrfs.h: Likewise.
* bundled/linux/include/uapi/linux/btrfs_tree.h: Likewise.
* bundled/linux/include/uapi/linux/counter.h: Likewise.
* bundled/linux/include/uapi/linux/if_link.h: Likewise.
* bundled/linux/include/uapi/linux/input-event-codes.h: Likewise.
* bundled/linux/include/uapi/linux/landlock.h: Likewise.
* bundled/linux/include/uapi/linux/netfilter/ipset/ip_set.h: Likewise.
* bundled/linux/include/uapi/linux/netlink.h: Likewise.
* bundled/linux/include/uapi/linux/perf_event.h: Likewise.
* bundled/linux/include/uapi/linux/pkt_sched.h: Likewise.
* bundled/linux/include/uapi/linux/stat.h: Likewise.
* bundled/linux/include/uapi/linux/tls.h: Likewise.
* bundled/linux/include/uapi/linux/userfaultfd.h: Likewise.
* bundled/linux/include/uapi/linux/v4l2-controls.h: Likewise.
* bundled/linux/include/uapi/linux/version.h: Likewise.
* bundled/linux/include/uapi/linux/videodev2.h: Likewise.
* bundled/linux/include/uapi/mtd/mtd-abi.h: Likewise.
* bundled/linux/include/uapi/mtd/ubi-user.h: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Given that sysctl syscall was removed by Linux kernel commit
v5.5-rc1~102^2, do not spend limited resources on the incomplete decoder
of sysctl syscall and reduce it to the bare minimum. At the same time,
add mpers support and a test for the new decoder to make sure it works
properly.
* src/sysctl.c: Rewrite.
* src/xlat/sysctl_*.in: Remove.
* tests/sysctl.c: New file.
* tests/gen_tests.in (sysctl): New test.
* tests/pure_executables.list: Add sysctl.
* tests/.gitignore: Likewise.
|
|
|
|
|
|
|
|
|
| |
Apparently, sysctl syscall has never been decoded on ia64. Although the
syscall is now removed from the Linux kernel, it's never late to fix the
decoder on ia64.
* src/linux/ia64/syscallent.h (sysctl): Use the sysctl decoder
instead of printargs.
|
|
|
|
|
|
|
|
|
|
| |
This fixes the following diagnostic warning:
Node.js 12 actions are deprecated. For more information see:
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
* .github/workflows/ci.yml: Replace actions/checkout@v2 with
actions/checkout@v3.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/linux/32/ioctls_inc_align16.h: Update from linux v6.1-rc7 using
ioctls_gen.sh.
* src/linux/32/ioctls_inc_align32.h: Likewise.
* src/linux/32/ioctls_inc_align64.h: Likewise.
* src/linux/64/ioctls_inc.h: Likewise.
* src/linux/x32/ioctls_inc0.h: Likewise.
* src/linux/s390/ioctls_arch0.h: Likewise.
* src/linux/s390x/ioctls_arch0.h: Likewise.
* NEWS: Mention this.
|
|
|
|
|
|
|
| |
* src/net.c (print_icmp_filter): Fix next_set_bit usage.
Fixes: v6.0-27-g238f5799f "print_icmp_filter: print icmp_filter as a bitset"
Resolves: https://github.com/strace/strace/issues/229
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/print_fields.h (tprint_attribute_begin, tprint_attribute_end):
New inline functions.
* src/print_instruction_pointer.c (print_instruction_pointer): Use them.
* src/print_syscall_number.c (print_syscall_number): Likewise.
* src/secontext.c (selinux_printfdcon, selinux_printfilecon,
selinux_printpidcon): Likewise.
* src/strace.c (printleader): Likewise.
* src/syscall.c (stub_sysent): Update sys_name.
* tests/kill_child.c: Update comment.
* tests/kill_child.test: Update expected output.
|