[strace PATCH 00/12] s390 architecture support improvements

2018-01-17 Thread Eugene Syromyatnikov
Hello. This patch set introduces compat personality support on s390x along with decoders of s390-specific system calls. Unfortunately, I am no s390 expert by any means, so I likely have missed something. I also have little idea regarding applications where these s390-specific system calls are us

[strace PATCH 01/12] Add compat support for s390x

2018-01-17 Thread Eugene Syromyatnikov
By very popular demand. While we are here, let's refactor the condition for old_mmap_pgoff into an arch-specific one, as it is used more than in one place. * NEWS: Mention this. * configure.ac (case "$host_cpu" in) : Set arch_m32 to s390, set cc_flags_m32 to -m31. (st_MPERS([m32])): Add s390x. *

[strace PATCH 12/12] Update NEWS

2018-01-17 Thread Eugene Syromyatnikov
--- NEWS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 550fc38..8b98a40 100644 --- a/NEWS +++ b/NEWS @@ -13,7 +13,9 @@ Noteworthy changes in release ?.?? (-??-??) BPF_MAP_GET_NEXT_ID, BPF_PROG_GET_FD_BY_ID, BPF_MAP_GET_FD_BY_ID, and BPF_OBJ_

[strace PATCH 02/12] Add print_quoted_string flag to generate comment

2018-01-17 Thread Eugene Syromyatnikov
Because there are never enough print_quoted_string flags. * defs.h (QUOTE_EMIT_COMMENT): New quoting flag macro constant. * util.c (string_quote): Emit " /* " in the beginning and " */" in the end if QUOTE_EMIT_COMMENT is passed. (print_quoted_string): Increase alloc_size by 7 if QUOTE_EMIT_COMMEN

[strace PATCH 05/12] tests: check s390_sthyi system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* configure.ac (AC_CHECK_FUNCS): Add iconv_open. (AC_CHECK_HEADERS): Add iconv.h. * tests/s390_sthyi-v.c: New file. * tests/s390_sthyi.c: Likewise. * tests/.gitignore: Add s390_sthyi, s390_sthyi-v. * tests/pure_executables.list: Likewise. * tests/gen_tests.in (s390_sthyi, s390_sthyi): New tests. --

[strace PATCH 06/12] Introduce s390_guarded_storage system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* linux/s390/syscallent.h ([378]): Change decoder to s390_guarded_storage. * linux/s390x/syscallent.h: Likewise. * s390.c (struct guard_storage_control_block, struct guard_storage_event_parameter_list): New structure type definition. (guard_storage_print_gsepl, guard_storage_print_gscb, SYS_FUNC(s3

[strace PATCH 08/12] Introduce s390_runtime_instr system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* linux/s390/syscallent.h ([342]): Change decoder to s390_runtime_instr. * linux/s390x/syscallent.h: Likewise. * s390.c (SYS_FUNC(s390_runtime_instr)): New function. * xlat/s390_runtime_instr_commands.in: New file. --- linux/s390/syscallent.h | 2 +- linux/s390x/syscallent.h

[strace PATCH 03/12] print_fields.h: add macro to print hexadecimal array field

2018-01-17 Thread Eugene Syromyatnikov
* print_fields.h (PRINT_FIELD_HEX_ARRAY): New macro, prints target array with QUOTE_FORCE_HEX. --- print_fields.h | 9 + 1 file changed, 9 insertions(+) diff --git a/print_fields.h b/print_fields.h index 0af087a..b2c6a30 100644 --- a/print_fields.h +++ b/print_fields.h @@ -107,6 +107,15 @

[strace PATCH 04/12] Introduce s390_sthyi system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* s390.c: New file. * Makefile.am (strace_SOURCES): Add it. * linux/s390/syscallent.h ([380]): Change decoder to s390_sthyi. * linux/s390x/syscallent.h: Likewise. * xlat/s390_sthyi_function_codes.in: New file. --- Makefile.am |1 + linux/s390/syscallent.h |1

[strace PATCH 10/12] Introduce s390_pci_mmio_read, s390_pci_mmio_write system call decoders

2018-01-17 Thread Eugene Syromyatnikov
* linux/s390/syscallent.h ([352]): Change decoder to s390_pci_mmio_write. ([353]): Change decoder to s390_pci_mmio_read. * linux/s390x/syscallent.h: Likewise. * s390.c (SYS_FUNC(s390_pci_mmio_write), SYS_FUNC(s390_pci_mmio_read)): New function. --- linux/s390/syscallent.h | 4 ++-- linux/s390x/s

[strace PATCH 09/12] tests: check s390_runtime_instr system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* tests/s390_runtime_instr.c: New file. * tests/.gitignore: Add s390_runtime_instr. * tests/pure_executables.list: Likewise. * tests/gen_tests.in (s390_runtime_instr): New test. --- tests/.gitignore| 1 + tests/gen_tests.in | 1 + tests/pure_executables.list | 1 + tests/s3

[strace PATCH 07/12] tests: check s390_guarded_storage system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* configure.ac (AC_CHECK_HEADERS): Add asm/guarded_storage.h. * tests/s390_guarded_storage-v.c: New file. * tests/s390_guarded_storage.c: Likewise. * tests/.gitignore: Add s390_guarded_storage, s390_guarded_storage-v. * tests/pure_executables.list: Likewise. * tests/gen_tests.in (s390_guarded_stora

[strace PATCH 11/12] tests: check s390_pci_mmio_read and s390_pci_mmio_write decoders

2018-01-17 Thread Eugene Syromyatnikov
* tests/s390_pci_mmio_read_write.c: New file. * tests/.gitignore: Add s390_pci_mmio_read_write. * tests/pure_executables.list: Likewise. * tests/gen_tests.in (s390_pci_mmio_read_write): New test. --- tests/.gitignore | 1 + tests/gen_tests.in | 1 + tests/pure_exe