2019-03-19  Dmitry V. Levin  <ldv@altlinux.org>

	Prepare for 5.0 release.
	* NEWS: Update for 5.0 release.

	.mailmap: add more entries to avoid duplication in CREDITS.

2019-03-18  Dmitry V. Levin  <ldv@altlinux.org>

	strace.spec.in: do not define Group tag for modern distros.
	* strace.spec.in (Group): Conditionalize on distro version.

	References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag

2019-03-18  Dmitry V. Levin  <ldv@altlinux.org>

	strace-log-merge: enhance pid formatting.
	* strace-log-merge (max_suffix_length): New variable.
	(iterate_logfiles, process_suffix, process_logfile): New functions.
	Use them to choose the optimum width for pid column.
	* NEWS: Mention this enhancement.
	* tests/strace-log-merge-suffix.test: New test.
	* tests/Makefile.am (MISC_TESTS): Add it.

2019-03-18  Dmitry V. Levin  <ldv@altlinux.org>

	strace-log-merge: fix error diagnostics.
	* strace-log-merge: Print error diagnostics and exit with a non-zero
	status in case of no strace output.
	* NEWS: Mention this fix.
	* tests/strace-log-merge-error.test: New test.
	* tests/Makefile.am (MISC_TESTS): Add it.

	Fixes: v4.21~287 "strace-log-merge: work around corner cases of strace -ttt parsing"

2019-03-18  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Update NEWS.

2019-03-18  Dmitry V. Levin  <ldv@altlinux.org>

	Update copyright year number range.
	* COPYING: Update copyright year number range.
	* tests/COPYING: Likewise.
	* debian/copyright: Likewise.

	Update copyright headers.
	Headers updated automatically using maint/update_copyright_years.sh
	script.

2019-03-18  Dmitry V. Levin  <ldv@altlinux.org>

	Fix preprocessor indentation.
	Indent the C preprocessor directives to reflect their nesting
	using the following script:

	$ cppi -l $(git grep -El '^[[:space:]]*#[[:space:]]*(if|ifdef|ifndef|elif|else|endif|define|pragma)[[:space:]]' |grep -v '\.sh$') |while read f; do
		cppi < "$f" > "$f".cppi; mv "$f".cppi "$f"
	done

2019-03-17  Shankara Pailoor  <shankarapailoor@gmail.com>

	Honor xlat styles when decoding mac addresses.
	* 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: Dmitry V. Levin <ldv@altlinux.org>

2019-03-17  Shankara Pailoor  <shankarapailoor@gmail.com>

	net: print mac address consistently.
	* 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: Dmitry V. Levin <ldv@altlinux.org>

2019-03-17  Dmitry V. Levin  <ldv@altlinux.org>

	Change -D option to imply -I4.
	* 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

2019-03-15  Tuan Hoang  <tmhoang@linux.ibm.com>

	s390: fix SIGNAL_FRAMESIZE macro.
	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.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>

2019-03-14  Dmitry V. Levin  <ldv@altlinux.org>

	bpf: add support for new seven fields in BPF_PROG_LOAD.
	* 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.

2019-03-13  Dmitry V. Levin  <ldv@altlinux.org>

	bpf: implement decoding of BPF_TASK_FD_QUERY command.
	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).

2019-03-13  Dmitry V. Levin  <ldv@altlinux.org>

	bpf: implement decoding of BPF_MAP_LOOKUP_AND_DELETE_ELEM command.
	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).

2019-03-13  Dmitry V. Levin  <ldv@altlinux.org>

	bpf: implement decoding of BPF_BTF_GET_FD_BY_ID command.
	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).

2019-03-13  Dmitry V. Levin  <ldv@altlinux.org>

	bpf: implement decoding of BPF_BTF_LOAD command.
	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).

2019-03-13  Dmitry V. Levin  <ldv@altlinux.org>

	bpf: make decoders of BPF_*_GET_FD_BY_ID commands return RVAL_FD.
	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.

2019-03-12  Dmitry V. Levin  <ldv@altlinux.org>

	bpf: add support for new twelve fields in struct bpf_prog_info.
	* 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

2019-03-12  Dmitry V. Levin  <ldv@altlinux.org>

	bpf: add support for *jited_ksyms and *jited_func_lens fields in struct bpf_prog_info
	* 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.

	bpf: add support for btf_* fields in struct bpf_map_info.
	* 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.

	bpf: add support for btf_* fields in BPF_MAP_CREATE.
	* 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.

2019-03-12  Dmitry V. Levin  <ldv@altlinux.org>

	bpf: print struct bpf_prog_info.gpl_compatible.
	This bit field was added by Linux commit v4.18-rc1~114^2~376^2~6.

	* bpf_attr.h (struct bpf_prog_info_struct): Add gpl_compatible field.
	* bpf.c (print_bpf_prog_info): Print gpl_compatible field.
	* tests/bpf-obj_get_info_by_fd.c (main): Update expected output.

2019-03-12  Dmitry V. Levin  <ldv@altlinux.org>

	bpf: exclude bit fields from the check.
	Currently we have no instruments to check the size and offsets
	of bit fields.

	* gen_bpf_attr_check.sh: Do not print bit fields.
	* m4/gen_bpf_attr_m4.awk: Likewise.

2019-03-06  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Implement queueing of threads before dispatching them.
	It is possible that some tracees call a lot of cheap syscalls too fast,
	and that can stress the tracer to the point some tracees are not served
	for indefinite amount of time.  In order to avoid that unfairness, try
	to collect all the pending tracees first along with the relevant
	information and only then dispatch the events.

	* defs.h: Include "list.h".
	(struct tcb): Add wait_data_idx, delayed_wait_data, and wait_list
	fields.
	* strace.c (struct tcb_wait_data): Add "msg" field.
	(tcb_wait_tab, tcb_wait_tab_size): New static variables.
	(alloctcb): Initialize wait_list.
	(droptcb): Remove tcp from wait_list.
	(maybe_switch_tcbs): Get old pid from
	tcb_wait_tab[tcp->wait_data_idx].msg instead of calling
	ptrace(PTRACE_GETEVENTMSG).
	(trace_wait_data_size, init_trace_wait_data, copy_trace_wait_data,
	free_trace_wait_data, tcb_wait_tab_check_size): New functions, in order
	to allow the code outside next_event to operate with wait_data as with
	an opaque object (needed for dispatch_event and restart_delayed_tcb).
	(next_event): Add pending_tcps, extra_tcp, wait_nohang, elem, and
	wait_tab_pos variables; check for elements in pending_tcps and skip
	waiting if the list is not empty; check for extra_tcp and skip waiting
	along with swapping wait_data_idx with wait_extra_data_idx;
	after the initial wait4(), call wait4() in loop with WNOHANG flag set;
	fetch siginfo on signal and eventmsg on PTRACE_EVENT_EXEC;
	return the first tcp in pending_tcps list.
	(dispatch_event): Store a pointer to a copy of tcb_wait_data in
	tcp->delayed_wait_data if tcp's restart has to be delayed.
	(restart_delayed_tcb): Use tcp->delayed_wait_data, create a stub
	tcb_wait_data if it is NULL, free temporary trace_wait_data.
	* tests/Makefile.am (XFAIL_TEST): Remove looping_threads.test.

	Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=478419
	Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=526740
	Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=851457
	Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1609318
	Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1610774
	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
	Co-Authored-by: Denys Vlasenko <dvlasenk@redhat.com>
	Co-Authored-by: Andreas Schwab <aschwab@redhat.com>
	Co-Authored-by: Jeff Law <law@redhat.com>
	Co-Authored-by: DJ Delorie <dj@redhat.com>

2019-03-06  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Add a generic list implementation.
	Similar to the one used in the Linux kernel.

	* macros.h (cast_ptr, containerof): New macros.
	* list.h: New file.
	* Makefile.am (strace_SOURCES): Add it.

2019-03-06  Dmitry V. Levin  <ldv@altlinux.org>

	tests: check tracing of looping threads.
	* test/many_looping_threads.c: Remove.
	* test/.gitignore: Remove many_looping_threads.
	* test/Makefile (PROGS): Likewise.
	(many_looping_threads): Remove.
	* tests/looping_threads.c: New file.
	* tests/looping_threads.test: New test.
	* tests/.gitignore: Add looping_threads.
	* tests/Makefile.am (check_PROGRAMS): Likewise.
	(looping_threads_LDADD): New variable.
	(MISC_TESTS, XFAIL_TESTS): Add looping_threads.test.

2019-03-06  Dmitry V. Levin  <ldv@altlinux.org>

	Bump SYS_socket_subcall from 400 to 500.
	Make room for syscalls that are going to be introduced in Linux 5.1.

	* linux/i386/syscallent.h (SYS_socket_subcall): Raise from 400 to 500.
	* linux/m68k/syscallent.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/mips/syscallent-o32.h (SYS_socket_subcall): Raise from 4400
	to 4500.
	* linux/mips/syscallent-n64.h (SYS_socket_subcall): Raise from 5400
	to 5500.
	* linux/mips/syscallent-n32.h (SYS_socket_subcall): Raise from 6400
	to 6500.

2019-03-06  Dmitry V. Levin  <ldv@altlinux.org>

	tests: check tracing of orphaned process group.
	* tests/orphaned_process_group.c: New file.
	* tests/.gitignore: Add orphaned_process_group.
	* tests/Makefile.am (check_PROGRAMS): Likewise.
	* tests/gen_tests.in (orphaned_process_group): New test.

2019-03-06  Dmitry V. Levin  <ldv@altlinux.org>

	tests: move PTRACE_SEIZE check to a separate file.
	The check is going to be used by another test soon.

	* tests/PTRACE_SEIZE.sh: New file.
	* tests/detach-stopped.test: Use it.
	* tests/Makefile.am (EXTRA_DIST): Add PTRACE_SEIZE.sh.

2019-02-25  Eugene Syromyatnikov  <evgsyr@gmail.com>

	strace.c: fix up formatting after commit v4.24~48.
	The commit v4.24~48 "Implement -e kvm= option on all architectures",
	while removing #ifdef, left formatting of the help message string a bit
	inconsistent.

	* strace.c (usage): Move "\n\" bit after "kvm", remove double quotes.

	Complements: v4.24~48 "Implement -e kvm= option on all architectures"

2019-02-25  Eugene Syromyatnikov  <evgsyr@gmail.com>

	tests: fix xgetrlimit output when syscall returns an error.
	* tests/xgetrlimit.c (main): Expect pointer to rlimit as the second
	argument when syscall returns an error.  Use sprintrc().

	strace.c: pass signal number to cleanup()
	* strace.c (die): Pass 0 as an argument to cleanup().
	(cleanup): Add fatal_sig parameter, remove the local variable
	of the same name, do not use interrupted.
	(terminate): Initialise a new local variable "sig" with "interrupted",
	pass it to cleanup() and use it instead of "interrupted" for exit_code
	initialisation.

2019-02-25  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>

	Update ioctl entries from linux v5.0.
	* linux/32/ioctls_inc_align16.h: Update from linux v5.0-rc8
	using ioctls_gen.sh.
	* linux/32/ioctls_inc_align32.h: Likewise.
	* linux/32/ioctls_inc_align64.h: Likewise.
	* linux/64/ioctls_inc.h: Likewise.
	* linux/x32/ioctls_inc0.h: Likewise.
	* linux/aarch64/ioctls_arch0.h: Likewise.
	* linux/arm/ioctls_arch0.h: Likewise.
	* linux/mips/ioctls_arch0.h: Likewise.
	* linux/powerpc/ioctls_arch0.h: Likewise.
	* linux/s390/ioctls_arch0.h: Likewise.
	* linux/s390x/ioctls_arch0.h: Likewise.
	* NEWS: Mention this.

	maint: update for linux 5.0-rc8.
	* maint/ioctls_sym.sh (x86_list): Add KVM_GET_SUPPORTED_HV_CPUID.

2019-02-24  Dmitry V. Levin  <ldv@altlinux.org>

	xlat/gen.sh: disable file name globbing by default.
	As the script uses file name globbing only in one place,
	disable it by default and enable it when necessary.

	* xlat/gen.sh: Add -f to shebang.
	(main): Enable file name globbing to generate the list of input files.

2019-02-24  Eugene Syromyatnikov  <evgsyr@gmail.com>

	xlat/gen.sh: speedup, part 5.
	* xlat/gen.sh (gen_header): Process xlat line with sed only when "/*"
	substring is present in it.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>

2019-02-24  Eugene Syromyatnikov  <evgsyr@gmail.com>

	xlat/gen.sh: speedup, part 4.
	* xlat/gen.sh (cond_xlat): Use read instead of sed for xlat entry
	parsing.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>

2019-02-24  Eugene Syromyatnikov  <evgsyr@gmail.com>

	xlat/gen.sh: speedup, part 3.
	* xlat/gen.sh (cond_def): Use parameter substitution instead of sed
	for xlat line parsing.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>

2019-02-24  Eugene Syromyatnikov  <evgsyr@gmail.com>

	xlat/gen.sh: speedup, part 2.
	* xlat/gen.sh (gen_header): Use "grep -q" instead of "grep > /dev/null".

	xlat/gen.sh: speedup, part 1.
	* xlat/gen.sh (cond_def, cond_xlat): Use printf builtin instead of cat.

	xlat/gen.sh: cleanup.
	* xlat/gen.sh: Export LC_ALL=C so it could be omitted from individual
	invocations.
	(cond_def): Remove LC_ALL=C from sed invocation.
	(gen_header): Remove LC_COLLATE=C.

2019-02-22  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Makefile.am: pass D variable to shell scripts' environment.
	And set -x if D is set to 1, so the commands called by various shell scripts
	are easier to see during debugging.

	* Makefile.am (bpf_attr_check.c, sen.h, mpers-m%.stamp, $(srcdir)/CREDITS): Pass
	D variable in the environment to the shell script call.
	* gen_bpf_attr_check.sh: Set -x if D is set to 1.
	* generate_mpers_am.sh: Likewise.
	* generate_sen.sh: Likewise.
	* maint/gen-contributors-list.sh: Likewise.
	* mpers.sh: Likewise.
	* mpers_test.sh: Likewise.

2019-02-21  Eugene Syromyatnikov  <evgsyr@gmail.com>

	tests: add checks for dumpstr output into read-write test.
	util.c:dumpstr() now aligns offsets in accordance with the total length
	of the dump and also may perform only partial dump, so let's add checks
	for these cases.

	* tests/fill_memory.c (fill_memory_ex): Change the type of the period
	argument from unsigned char to unsigned int.
	* tests/tests.h (fill_memory_ex): Likewise.
	* tests/read-write.c (dump_str_ex): Rename from dump_str, add idx_w
	argument, support len greater than 240 bytes.
	(dump_str): New function, wrapper for dump_str_ex with the default index
	width.
	(print_hex): Add checks for dumpstr output, close fd 1 later.

2019-02-20  Eugene Syromyatnikov  <evgsyr@gmail.com>

	util: update dumpstr.
	Use a buffer of a limited size, use proper type for dump amount, avoid
	hard-coding of byte counts, calculate output buffer size more accurately
	and minimise its rewriting, pad offset with zeros in accordance
	with expected output amount.

	* defs.h (dumpstr): Change the type of len argument from int to
	kernel_ulong_t.
	* macros.h (ROUNDUP_DIV): New macro.
	(ROUNDUP): Rewrite using ROUNDUP_DIV.
	* util.c (ILOG2_ITER_): New macro.
	(ilog2_64, ilog2_32): New functions.
	(ilog2_klong): New macro, wrapper around ilog2_32/ilog2_64, so (potentially
	more expensive) ilog2_64 is not used for ilog2 calculation
	of a kernel_ulong_t-typed variable on architectures with 32-bit kernel long.
	(dumpstr): Update.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>

2019-02-20  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Generalise UUID printing.
	It was open-coded (using yet another open-coded hexadecimal character
	printing) in btrfs.c and can be used in other places (like dm.c or
	rtnl_link.c).

	* defs.h (print_uuid): New declaration.
	* print_fields.h (PRINT_FIELD_UUID): New macro.
	* util.c (print_uuid): New function.
	* btrfs.c (prnibble, UUID_STRING_SIZE, btrfs_unparse_uuid): Remove.
	(btrfs_ioctl): Use PRINT_FIELD_UUID for UUID printing.

2019-02-20  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Generalise some printing primitives.
	Character class checks and hexadecimal number formatting are open-coded
	all over the place, let's try to de-duplicate them a bit.

	* print_utils.h: New file.
	* Makefile.am (strace_SOURCES): Add it.
	* util.c: Include "print_utils.h".
	(string_quote, dumpstr): Use sprint_byte_hex and is_print.
	* v4l2.c: Include "print_utils.h".
	(print_pixelformat): Use is_print and BYTE_HEX_CHARS_PRINTF_QUOTED,
	add a note that the routine is rather generic.

2019-02-19  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Move call_summary() from cleanup() to terminate()
	cleanup() has exactly two call sites, die() and terminate(), and the
	first one resets cflag in order to prevent call_summary() invocation.
	Move the call to terminate() in order to avoid bogus cflag reset.

	* strace.c (die): Remove cflag reset.
	(cleanup): Move call_summary() call ...
	(terminate): ... here.

2019-02-19  Eugene Syromyatnikov  <evgsyr@gmail.com>

	defs.h: define stack_trace_enabled to 0 is stack tracing is not enabled.
	This allows avoiding ifdefs sometimes.

	* defs.h [!ENABLE_STACKTRACE] (stack_trace_enabled): Define as 0.
	* strace.c (init): Remove #ifdef ENABLE_STACKTRACE around -c/-k check.

2019-02-19  Dmitry V. Levin  <ldv@altlinux.org>

	build: fix --with-libiberty.
	* m4/st_demangle.m4 (st_DEMANGLE): Move the check for cplus_demangle
	out of AC_CHECK_HEADERS because the latter checks for demangle.h in two
	different places and an absence of demangle.h in one of these places
	would cause a build error in --with-libiberty=yes mode.
	* NEWS: Mention this fix.

	Resolves: https://github.com/strace/strace/issues/92

2019-02-18  Shankara Pailoor  <shankarapailoor@gmail.com>

	Honor xlat styles when decoding ioprio_get and ioprio_set.
	* ioprio.c (SYS_FUNC(ioprio_get), SYS_FUNC(ioprio_set)): Add xlat_style
	support.
	* tests/ioprio-Xabbrev.c: New file.
	* tests/ioprio-Xraw.c: Likewise.
	* tests/ioprio-Xverbose.c: Likewise.
	* tests/ioprio.c: Handle XLAT_RAW, XLAT_ABBREV, and XLAT_VERBOSE macros.
	* tests/gen_tests.in (ioprio-Xabbrev, ioprio-Xraw, ioprio-Xverbose): New
	tests.
	* tests/pure_executables.list: Add ioprio-Xabbrev, ioprio-Xraw, and
	ioprio-Xverbose.
	* tests/.gitignore: Likewise.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>

2019-02-18  Shankara Pailoor  <shankarapailoor@gmail.com>

	move_pages: honor xlat styles.
	* numa.c (print_status): Add xlat_style support for status argument.
	* tests/move_pages-Xabbrev.c: New file.
	* tests/move_pages-Xraw.c: Likewise.
	* tests/move_pages-Xverbose.c: Likewise.
	* tests/move_pages.c: Handle XLAT_RAW, XLAT_ABBREV, and XLAT_VERBOSE
	macros.
	* tests/gen_tests.in (move_pages-Xabbrev, move_pages-Xraw,
	move_pages-Xverbose): New tests.
	* tests/pure_executables.list: Add move_pages-Xabbrev, move_pages-Xraw,
	and move_pages-Xverbose.
	* tests/.gitignore: Likewise.

2019-02-18  Dmitry V. Levin  <ldv@altlinux.org>

	tests: robustify threads-execve test against the odds.
	Give threads-execve.test more chances to succeed.

	* tests/threads-execve.test: Retry the test until run out of time.

2019-02-17  Shankara Pailoor  <shankarapailoor@gmail.com>

	Honor xlat styles when decoding resource limits.
	* resource.c (sprint_rlim64, sprint_rlim32): Remove.
	(print_rlim64_t, print_rlim32_t): New functions.
	(print_rlimit64, print_rlimit32): Use them.
	* tests/setrlimit-Xabbrev.c: New file.
	* tests/setrlimit-Xraw.c: Likewise.
	* tests/setrlimit-Xverbose.c: Likewise.
	* tests/setrlimit.c (main): Handle XLAT_ABBREV, XLAT_RAW,
	and XLAT_VERBOSE macros.
	* tests/xgetrlimit.c (sprint_rlim): Likewise.
	* tests/gen_tests.in (setrlimit-Xabbrev, setrlimit-Xraw,
	setrlimit-Xverbose): New tests.
	* tests/pure_executables.list: Add setrlimit-Xabbrev, setrlimit-Xraw,
	and setrlimit-Xverbose.
	* tests/.gitignore: Likewise.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>

2019-02-17  Dmitry V. Levin  <ldv@altlinux.org>

	hppa: workaround kernel bug in syscall number tampering.
	Linux kernel commit v4.6-rc2~20^2 introduced a regression:
	when tracer changes syscall number to -1, the kernel fails
	to initialize %r28 with -ENOSYS and subsequently fails
	to return the error code of the failed syscall to userspace.
	Workaround this by initializing %r28 ourselves.

	* linux/arch_defs_.h (ARCH_NEEDS_SET_ERROR_FOR_SCNO_TAMPERING): Define
	to 0.
	* linux/hppa/arch_defs_.h (ARCH_NEEDS_SET_ERROR_FOR_SCNO_TAMPERING):
	Define to 1.
	* syscall.c (tamper_with_syscall_entering)
	[ARCH_NEEDS_SET_ERROR_FOR_SCNO_TAMPERING]: When changing syscall number
	to -1, set the return value as well.

2019-02-16  Dmitry V. Levin  <ldv@altlinux.org>

	hppa: define PT_* constants as offsets inside struct pt_regs.
	Define constants passed to upeek and upoke using a method that works
	with different wordsize values.

	* linux/hppa/arch_regs.c (PT_GR26, PT_GR30, PT_IAOQ0, PT_IAOQ1): Remove.
	(PT_GR20, PT_GR28, ARCH_PC_PEEK_ADDR, ARCH_SP_PEEK_ADDR): Redefine using
	offsets inside struct pt_regs.
	* linux/hppa/get_syscall_args.c (arch_get_syscall_args): Replace PT_GR26
	with offsets inside struct pt_regs.

2019-02-16  Dmitry V. Levin  <ldv@altlinux.org>

	hppa: enhance decoding of PTRACE_PEEKUSER and PTRACE_POKEUSER.
	Print symbolic constants corresponding to numeric arguments
	of PTRACE_PEEKUSER and PTRACE_POKEUSER requests.

	* linux/hppa/userent.h: New file.
	* Makefile.am (EXTRA_DIST): Add it.
	* NEWS: Mention this.

2019-02-15  Dmitry V. Levin  <ldv@altlinux.org>

	mips o32: fix 7th syscall argument with PTRACE_GET_SYSCALL_INFO API.
	As PTRACE_GET_SYSCALL_INFO API supports 6 syscall arguments,
	all architectures that have syscalls with more than 6 arguments
	(i.e. mips o32) have to fetch extra arguments manually when using
	PTRACE_GET_SYSCALL_INFO API.

	* linux/mips/get_syscall_args.c [LINUX_MIPSO32]
	(arch_get_syscall_args_extra): New function.
	* syscall.c (get_syscall_args) [MAX_ARGS > 6]: Use it.

	Fixes: v4.26~49 "Introduce PTRACE_GET_SYSCALL_INFO support"

2019-02-15  Dmitry V. Levin  <ldv@altlinux.org>

	mips: update comment.
	* linux/mips/get_syscall_args.c (decode_syscall_subcall): Update comment.

	Complements: v4.26-27-g2c8b6de91 "mips o32: fix build"

2019-02-11  Eugene Syromyatnikov  <evgsyr@gmail.com>

	tests: add kill_child test.
	This tests repeatedly creates and kills children, so some corner
	cases in handling of not-quite-existing processes can be observed.

	Previously, strace was crashing in the following situation:

	    13994 ????( <unfinished ...>
	    ...
	    13994 <... ???? resumed>) = ?

	as tcp->s_ent wasn't initialised on syscall entering and
	strace.c:print_event_exit segfaulted when tried to access
	tcp->s_ent->sys_name.

	* tests/kill_child.c: New file.
	* tests/kill_child.test: New test.
	* tests/.gitignore: Add kill_child.
	* tests/Makefile.am (check_PROGRAMS): Likewise.
	(MISC_TESTS): Add kill_child.test.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>

2019-02-11  Dmitry V. Levin  <ldv@altlinux.org>

	Wire up kexec_file_load syscall on architectures that use generic unistd.h
	* linux/32/syscallent.h [294]: Wire up kexec_file_load syscall
	introduced by linux commit v5.0-rc1~35^2~41^2~15.
	* linux/64/syscallent.h [294]: Likewise.
	* NEWS: Mention this.

	Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1676045

2019-02-11  Dmitry V. Levin  <ldv@altlinux.org>

	Wire up rseq syscall on architectures that use generic unistd.h.
	* linux/32/syscallent.h [293]: Wire up rseq syscall introduced by linux
	commit v4.19-rc1~109^2~47.
	* linux/64/syscallent.h [293]: Likewise.
	* NEWS: Mention this.

2019-02-11  Dmitry V. Levin  <ldv@altlinux.org>

	tests: robustify preadv2-pwritev2 test against odd kernels.
	The test used to assume that either both preadv2 and pwritev2 syscalls
	are implemented or both are not implemented, but, apparently, there are
	kernels in the wild that implement just preadv2 syscall without
	pwritev2.

	* tests/preadv2-pwritev2.c (main): Skip the dumpio part of the test
	if either preadv2 or pwritev2 syscall is not implemented.

	Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1668750

2019-02-11  Eugene Syromyatnikov  <evgsyr@gmail.com>

	ptrace_restart: do not print diagnostics when ptrace returns ESRCH.
	After some discussion, it was decided that the situation
	when the tracee is gone does not worth reporting.

	* strace.c (ptrace_restart): Return early if ptrace returned ESRCH.

	Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1662936

2019-02-11  Eugene Syromyatnikov  <evgsyr@gmail.com>

	ptrace_restart: use xlat-based approach for printing ptrace requests.
	* defs.h (ptrace_cmds): New prototype.
	* strace.c (ptrace_op_str): New function.
	(ptrace_restart): Use it.

2019-02-10  Dmitry V. Levin  <ldv@altlinux.org>

	Fix whitespace issues.
	* Makefile.am (strace_SOURCES, EXTRA_DIST): Replace SPACE symbol followed
	by TAB symbol with TAB symbol.
	* kvm.c (is_map_for_file): Likewise.
	* tests/gen_tests.in (ioctl_ptp, printsignal-Xverbose): Likewise.
	* xlat/skf_ad.in: Likewise.

2019-02-10  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Make inline message on failed restart attempt more verbose.
	Hopefully, now it is less confusing.

	* strace.c (ptrace_restart): Provide intent and pid in the inline error
	message.

	References: https://bugzilla.redhat.com/show_bug.cgi?id=1662936

2019-02-09  Eugene Syromyatnikov  <evgsyr@gmail.com>

	syscall.c: set MEMORY_MAPPING_CHANGE in stub sysent.
	As unknown syscalls may incur unknown side effects.

	* syscall.c (stub_sysent): Set sys_flags to MEMORY_MAPPING_CHANGE.

2019-02-09  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Use accessors for tcp->s_ent, return a stub struct if it is NULL.
	Since code paths are non-trivial, it's an attempt to future-proof
	and prevent improper access of tcp->s_ent fields.

	* defs.h (struct tcb): Update the description of s_ent field.
	(stub_sysent): New declaration.
	(tcp_sysent, n_args): New macro functions.
	(indirect_ipccall): Use tcp_sysent() instead of tcp->s_ent.
	* ipc.c (SYS_FUNC(ipc)): Use n_args() instead of tcp->s_ent->nargs.
	* linux/alpha/get_syscall_args.c (get_syscall_args): Likewise.
	* linux/bfin/get_syscall_args.c (get_syscall_args): Likewise.
	* linux/hppa/get_syscall_args.c (get_syscall_args): Likewise.
	* linux/ia64/get_syscall_args.c (get_syscall_args): Likewise.
	* linux/microblaze/get_syscall_args.c (get_syscall_args): Likewise.
	* linux/mips/get_syscall_args.c (get_syscall_args): Likewise.
	* linux/sh/get_syscall_args.c (get_syscall_args): Likewise.
	* linux/sh64/get_syscall_args.c (get_syscall_args): Likewise.
	* linux/x86_64/get_syscall_args.c (get_syscall_args): Likewise.
	* linux/xtensa/get_syscall_args.c (get_syscall_args): Likewise.
	* prctl.c (print_prctl_args): Likewise.
	* signal.c (SYS_FUNC(sgetmask)): Likewise.
	* util.c (printargs, printargs_u, printargs_d): Likewise.
	* syscall.c (decode_ipc_subcall, decode_syscall_subcall: Likewise.
	(dumpio, tamper_with_syscall_exiting, syscall_entering_decode,
	syscall_entering_decode, syscall_entering_trace, syscall_entering_trace,
	syscall_exiting_decode, print_syscall_resume, syscall_exiting_trace,
	get_syscall_result): Use tcp_sysent() instead of tcp->s_ent.
	(stub_sysent): New stub sysent.
	(get_scno): Reset scno, s_ent, qual_flg; initialise s->ent from
	stub_sysent.
	* pathtrace.c (pathtrace_match_set): Use tcp_sysent() instead of
	tcp->s_ent.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>

2019-02-09  Eugene Syromyatnikov  <evgsyr@gmail.com>

	syscall.c: remove arch check for SEN_execv usage.
	SEN_* declarations are always present and can be used regardless
	of architecture.

	* syscall.c (syscall_entering_trace): Remove "#if defined SPARC ||
	defined SPARC64" guard.

2019-02-09  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Merge "<... resumed>" printing.
	Apparently, it was slightly different with no apparent reason.
	Use a single routine to print this message now.

	* defs.h (print_syscall_resume): New function declaration.
	* strace.c (print_event_exit): Replace open-coding of "<... resumed>"
	message printing with a print_syscall_resume() call.
	* syscall.c (syscall_exiting_trace): Likewise.
	(print_syscall_resume): New function.
	* tests/threads-execve.c: Update expected output.

2019-01-09  Shankara Pailoor  <shankarapailoor@gmail.com>

	sockaddr: print sin6_flowinfo field before sin6_addr.
	The sin6_flowinfo field comes before sin6_addr in the sockaddr_in6
	defintion, but for some reason we switch the order when decoding.
	This patch fixes the order of decoding.

	* sockaddr.c (print_sockaddr_data_in6): Print sin6_flowinfo field
	before sin6_addr.
	* NEWS: Mention this fix.
	* tests/group_req.c (main): Update expected output.
	* tests/net-sockaddr.c (check_in6_linklocal, check_in6): Likewise.
	* tests/net-yy-inet6.c (INADDR_STR, SA_FIELDS): Likewise.
	* tests/sockaddr_xlat.c (validate_in6): Likewise.

2019-01-08  Dmitry V. Levin  <ldv@altlinux.org>

	mips o32: fix build.
	Commit 917c2ccf3a67 "Refactor stack pointers" moved mips_REG_* macros
	from linux/mips/arch_regs.h to linux/mips/arch_regs.c because these
	macros are no longer used outside syscall.c or files included by
	syscall.c, but this caused a build regression on mips o32 because
	decode_syscall_subcall() uses mips_REG_SP prior to its definition.

	* syscall.c (decode_syscall_subcall): Move ...
	* linux/mips/get_syscall_args.c: ... here.
	* NEWS: Mention this fix.

	Reported-by: Baruch Siach <baruch@tkos.co.il>
	Fixes: v4.26~61 "Refactor stack pointers"

2019-01-08  Baruch Siach  <baruch@tkos.co.il>

	Fix build for no-MMU targets.
	Commit 7488ce9e23f1 "Check whether PTRACE_GET_SYSCALL_INFO is supported
	by the kernel" added a fork() call in test_ptrace_get_syscall_info()
	which is included in the main strace executable code.  Although the
	test_ptrace_get_syscall_info() routine is not called on no-MMU targets,
	the compiler can't optimize it out because it is a global symbol.
	So build for no-MMU targets currently fails:

	strace-ptrace_syscall_info.o: In function `test_ptrace_get_syscall_info':
	ptrace_syscall_info.c:(.text+0x1c): undefined reference to `fork'

	* ptrace_syscall_info.c (test_ptrace_get_syscall_info): Make
	the definition depend on HAVE_FORK.
	* strace.c (init): Call test_ptrace_get_syscall_info unconditionally.
	* NEWS: Mention this fix.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
	Fixes: v4.26~50 "Check whether PTRACE_GET_SYSCALL_INFO is supported by the kernel"

2019-01-08  Baruch Siach  <baruch@tkos.co.il>

	linux/mips/.gitignore: drop copyright header.
	The '/*' in the first line of the copyright header matches all files in
	that directory.  No other .gitignore file has this header.  Drop it.

	* linux/mips/.gitignore: Remove copyright header.

	Fixes: v4.26~23 "Add copyright headers to some files that lack them"

2019-01-08  Shankara Pailoor  <shankarapailoor@gmail.com>

	Honor xlat styles when decoding sockaddr_in, sockaddr_in6, and sockaddr_ll
	* print_fields.h (PRINT_FIELD_NET_PORT): Handle xlat styles.
	* sockaddr.c (print_sll_protocol): New function.
	(print_sockaddr_data_ll, print_inet_addr, print_sockaddr_data_in6):
	Handle xlat styles.
	* NEWS: Mention this.
	* tests/sockaddr_xlat.c: New file.
	* tests/sockaddr_xlat-Xabbrev.c: Likewise.
	* tests/sockaddr_xlat-Xraw.c: Likewise.
	* tests/sockaddr_xlat-Xverbose.c: Likewise.
	* tests/Makefile.am (EXTRA_DIST): Add sockaddr_xlat.c.
	* tests/gen_tests.in (sockaddr_xlat-Xabbrev, sockaddr_xlat-Xraw,
	sockaddr_xlat-Xverbose): New tests.
	* tests/pure_executables.list: Add sockaddr_xlat-Xabbrev,
	sockaddr_xlat-Xraw, and sockaddr_xlat-Xverbose.
	* tests/.gitignore: Likewise.

2019-01-07  Dmitry V. Levin  <ldv@altlinux.org>

	Remove PRINT_FIELD_INET4_ADDR.
	Reduce code duplication by removing PRINT_FIELD_INET4_ADDR
	and using PRINT_FIELD_INET_ADDR instead.

	* print_fields.h (PRINT_FIELD_INET4_ADDR): Remove.
	* msghdr.c (print_cmsg_ip_pktinfo): Use PRINT_FIELD_INET_ADDR
	instead of PRINT_FIELD_INET4_ADDR.
	* net.c (print_mreq): Likewise.
	* sockaddr.c (print_sockaddr_data_in): Likewise.

2019-01-05  Dmitry V. Levin  <ldv@altlinux.org>

	xlat: update REL_* constants.
	* xlat/evdev_relative_axes.in (REL_HWHEEL_HI_RES): New constant
	introduced by Linux kernel commit v5.0-rc1~18^2^7~7.
	* NEWS: Mention this.

	xlat: update UDP_* constants.
	* xlat/sock_udp_options.in (UDP_GRO): New constant introduced
	by Linux kernel commit v5.0-rc1~129^2~379^2~8.
	* NEWS: Mention this.

	xlat: update FAN_* constants.
	* xlat/fan_event_flags.in (FAN_OPEN_EXEC, FAN_OPEN_EXEC_PERM): New
	constants introduced by Linux kernel commits v5.0-rc1~124^2~5
	and v5.0-rc1~124^2~3, respectively.
	* NEWS: Mention this.
	* tests/fanotify_mark.c (main): Update expected output.

	xlat: update SCTP_* constants.
	* xlat/sock_sctp_options.in (SCTP_EVENT): New constant introduced
	by Linux kernel commit v5.0-rc1~129^2~255^2.
	* NEWS: Mention this.

	xlat: update IFLA_* constants.
	* xlat/rtnl_ifla_info_data_bridge_attrs.in (IFLA_BR_MULTI_BOOLOPT): New
	constant introduced by Linux kernel commit v5.0-rc1~129^2~207^2~2.
	* NEWS: Mention this.
	* tests/nlattr_ifla_linkinfo.c (main): Update.

	xlat: update NETNSA_* constants.
	* xlat/rtnl_nsid_attrs.in (NETNSA_TARGET_NSID, NETNSA_CURRENT_NSID): New
	constants introduced by Linux kernel commits v5.0-rc1~129^2~201^2~2
	and v5.0-rc1~129^2~201^2, respectively.
	* rtnl_nsid.c (rtgenmsg_nla_decoders): Add NETNSA_TARGET_NSID
	and NETNSA_CURRENT_NSID.
	* NEWS: Mention this.

	xlat: update SECCOMP_* constants.
	* xlat/seccomp_ops.in (SECCOMP_GET_NOTIF_SIZES): New constant introduced
	by Linux kernel commit v5.0-rc1~66^2~1^2~1.
	* xlat/seccomp_ret_action.in (SECCOMP_RET_USER_NOTIF): Likewise.
	* xlat/seccomp_filter_flags.in (SECCOMP_FILTER_FLAG_NEW_LISTENER):
	Likewise.
	* NEWS: Mention this.
	* tests/seccomp-filter.c (main): Update expected output.
	* tests/seccomp-filter-v.c (main): Likewise.
	* tests/seccomp_get_action_avail.c (main): Check SECCOMP_RET_USER_NOTIF.
