summaryrefslogtreecommitdiff
path: root/maint
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headersDmitry V. Levin2023-04-301-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* maint: do not shorten the copyright years rangeDmitry V. Levin2023-04-301-1/+1
| | | | | | * maint/update_copyright_years.sh (process_file): Skip updating copyright years range if the last year in the file is later than the year calculated from the latest commit.
* treewide: fix unnecessary $ on arithmetic variablesDmitry V. Levin2023-03-302-3/+3
| | | | This silences shellcheck SC2004.
* Update copyright headersDmitry V. Levin2023-02-263-3/+3
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* treewide: replace "sed -r" with "sed -E"Dmitry V. Levin2023-02-143-7/+7
| | | | | | | | | Use -E option instead of -r to enable use extended regular expression syntax in sed expressions. It has been supported for years by GNU sed, and is now included in POSIX. Link: https://www.austingroupbugs.net/view.php?id=528 Resolves: https://github.com/strace/strace/issues/216
* Update copyright headersDmitry V. Levin2022-08-071-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* maint: fix false positives reported by gen-contributors-list.shDmitry V. Levin2022-06-201-1/+1
| | | | | * maint/gen-contributors-list.sh: Do not consider names from cited commit messages as contributors.
* maint/gen-contributors-list.sh: shorten regexps by using "sed -E"Dmitry V. Levin2022-06-201-6/+6
| | | | | | * maint/gen-contributors-list.sh: Use "sed -E" instead of sed. (SCRIPT, SCRIPT_NORM_EMAILS, MATCH_OUT): Convert to extended regular expressions syntax.
* Update copyright headersDmitry V. Levin2022-03-261-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* maint: update for linux v5.17-rc5Gleb Fotengauer-Malinovskiy2022-02-241-1/+1
| | | | * maint/ioctls_sym.sh (x86_list): Add KVM_GET_XSAVE2 ioctl.
* maint: update for linux v5.16-rc5Gleb Fotengauer-Malinovskiy2021-12-131-0/+1
| | | | | * maint/ioctls_sym.sh: Workaround incompatible definition of __alloc_size__ macro introduced by the Linux commit v5.16-rc1~106^2~224.
* hdio: improve HDIO supportSrikavin Ramkumar2021-11-132-1/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add decoders for HDIO_DRIVE_RESET, HDIO_GET_32BIT, HDIO_GET_ACOUSTIC, HDIO_GET_ADDRESS, HDIO_GET_BUSSTATE, HDIO_GET_DMA, HDIO_GET_IDENTITY, HDIO_GET_KEEPSETTINGS, HDIO_GET_MULTCOUNT, HDIO_GET_NICE, HDIO_GET_NOWERR, HDIO_GET_UNMASKINTR, HDIO_GET_WCACHE, HDIO_OBSOLETE_IDENTITY, HDIO_SCAN_HWIF, HDIO_SET_32BIT, HDIO_SET_ACOUSTIC, HDIO_SET_ADDRESS, HDIO_SET_BUSSTATE, HDIO_SET_DMA, HDIO_SET_KEEPSETTINGS, HDIO_SET_MULTCOUNT, HDIO_SET_NICE, HDIO_SET_NOWERR, HDIO_SET_PIO_MODE, HDIO_SET_UNMASKINTR, HDIO_SET_WCACHE, and HDIO_UNREGISTER_HWIF. [ldv: note that HDIO compat has never been supported by the kernel, so adjust HDIO ioctl decoder and its tests accordingly.] * maint/gen/defs/hdio.def: New file. * src/gen/gen_hdio.c: New generated file. * src/gen/generated.h: Likewise. * src/Makefile.am (libstrace_a_SOURCES): Add gen/generated.h and gen/gen_hdio.c. * src/hdio.c: Include "gen/generated.h". (hdio_ioctl): Call var_ioctl_HDIO for unimplemented commands. * src/xlat/hdio_busstates.in: New file. * src/xlat/hdio_ide_nice.in: Likewise. * tests/ioctl_hdio.c: Add tests for newly implemented commands. * NEWS: Mention this change. Resolves: https://github.com/strace/strace/issues/131 Co-authored-by: Dmitry V. Levin <ldv@strace.io>
* maint/gen: use print_xint_array_member to print uint32_t arraysDmitry V. Levin2021-11-131-1/+1
| | | | | * maint/gen/defs/common.def (ptr[in, array[uint32_t, $1]]): Replace print_uint_array_member with print_xint_array_member.
* maint/gen: use printflags64 and printxval64 instead of 32-bit versionsDmitry V. Levin2021-11-131-2/+2
| | | | | | | This is necessary to print 64-bit integer types properly. * maint/gen/codegen.c (generate_printer): Use printflags64 instead of printflags, use printxval64 instead of printxval.
* maint/gen: cleanupDmitry V. Levin2021-11-1315-435/+708
| | | | | | | | | | | | | | | | | | | | | | * maint/gen/xmalloc.c: New file. * maint/gen/xmalloc.h: Likewise. * maint/gen/Makefile: Rewrite. * maint/gen/codegen.c: Add copyright header, wrap very long lines, use CLEANUP_FREE, xstrdup, and xasprintf. * maint/gen/ast.c: Add copyright header, wrap very long lines, use xstrdup. * maint/gen/ast.h: Add copyright header, wrap very long lines. * maint/gen/deflang.h: Add copyright header and include guard, wrap very long lines, add attributes to prototypes. * maint/gen/lex.l: Add copyright header, wrap very long lines, fix warnings, use xstrdup. * maint/gen/parse.y: Add copyright header, wrap very long lines, fix warnings. * maint/gen/preprocess.c: Add copyright header, wrap very long lines. * maint/gen/preprocess.h: Include "ast.h". * maint/gen/symbols.c: Wrap very long lines, use xasprintf. * maint/gen/symbols.h: Wrap very long lines. * maint/gen/defs/common.def: Add copyright header.
* maint: add a definition-based syscall decoder generatorSrikavin Ramkumar2021-11-1314-0/+3001
| | | | | | | | | | | | | | | | | | | | Implement a code generation tool capable of parsing system call definitions and generating system call decoders. * maint/gen/.gitignore: New file. * maint/gen/Makefile: Likewise. * maint/gen/README.md: Likewise. * maint/gen/ast.c: Likewise. * maint/gen/ast.h: Likewise. * maint/gen/codegen.c: Likewise. * maint/gen/deflang.h: Likewise. * maint/gen/defs/common.def: Likewise. * maint/gen/lex.l: Likewise. * maint/gen/parse.y: Likewise. * maint/gen/preprocess.c: Likewise. * maint/gen/preprocess.h: Likewise. * maint/gen/symbols.c: Likewise. * maint/gen/symbols.h: Likewise.
* maint/ioctls_sym.sh: indent sed argumentEugene Syromyatnikov2021-10-091-5/+4
| | | | | | | To make it a bit more readable. * maint/ioctls_sym.sh: Indent sed argument containuation with an additional indent level to signify its affiliation.
* maint/ioctls_sym.sh: use <<- for here-documents where suitableEugene Syromyatnikov2021-10-091-124/+124
| | | | | | | | It simplifies reading the file a bit. * maint/ioctls_sym.sh: Replace <<'__EOF__' occurrences with <<-'__EOF__'; replace <<__EOF__ occurrences with <<-__EOF__ except the first one that contains leading tabs.
* maint: update for linux v5.14-rc6Gleb Fotengauer-Malinovskiy2021-08-191-1/+1
| | | | * maint/ioctls_sym.sh (x86_list): Add KVM_[SG]ET_SREGS2 ioctls.
* Update copyright headersDmitry V. Levin2021-04-261-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* Add ioctl entries for OpenZFS ioctlsнаб2021-04-251-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before/after of strace zfs list: -ioctl(3, _IOC(_IOC_NONE, 0x5a, 0x4, 0), 0x7ffe7f41e3b0) = 0 -ioctl(3, _IOC(_IOC_NONE, 0x5a, 0x12, 0), 0x7ffe7f41e3c0) = 0 -ioctl(3, _IOC(_IOC_NONE, 0x5a, 0x5, 0), 0x7ffe7f41ad30) = 0 -ioctl(3, _IOC(_IOC_NONE, 0x5a, 0x27, 0), 0x7ffe7f41e320) = 0 -ioctl(3, _IOC(_IOC_NONE, 0x5a, 0x14, 0), 0x7ffe7f41e370) = 0 -ioctl(3, _IOC(_IOC_NONE, 0x5a, 0x14, 0), 0x7ffe7f41ad30) = -1 ESRCH (No such process) +ioctl(3, ZFS_IOC_POOL_CONFIGS, 0x7ffffae160c0) = 0 +ioctl(3, ZFS_IOC_OBJSET_STATS, 0x7ffffae160d0) = 0 +ioctl(3, ZFS_IOC_POOL_STATS, 0x7ffffae12a40) = 0 +ioctl(3, ZFS_IOC_POOL_GET_PROPS, 0x7ffffae16030) = 0 +ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x7ffffae16080) = 0 +ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x7ffffae12a40) = -1 ESRCH (No such process) -ioctl(3, _IOC(_IOC_NONE, 0x5a, 0x3f, 0), 0x7ffe7f41e5b0) = -1 EPERM (Operation not permitted) +ioctl(3, ZFS_IOC_LOG_HISTORY, 0x7ffffae162c0) = -1 EPERM (Operation not permitted) Before/after of strace zfs/cmd/zvol_id/zvol_id /dev/zd0: -ioctl(3, _IOC(_IOC_READ, 0x12, 0x7d, 0x100), 0x7fffa7776e20) = 0 +ioctl(3, BLKZNAME, 0x7ffe02f435b0) = 0 * maint/ioctls_zfs.sh New file. * src/ioctls_zfs.h: New file, generated from https://github.com/openzfs/zfs tree using maint/ioctls_zfs.sh script. * ioctlsort.c: Include "ioctls_zfs.h". * src/Makefile.am (EXTRA_DIST): Add ioctls_zfs.h. (ioctlsort%.o): Add $(srcdir)/ioctls_zfs.h to prerequisites. * tests/ioctl.c: Test a few ZFS ioctls. Co-authored-by: Dmitry V. Levin <ldv@strace.io>
* mpers.awk, ioctls_sym.awk: add binutils 2.36 supportDmitry V. Levin2021-04-201-9/+12
| | | | | | | | | | | | | The output format of "readelf --debug-dump=info --wide" changed in binutils 2.36, breaking mpers.awk and ioctls_sym.awk scripts. * src/mpers.awk: Extend regexps to handle the output format of "readelf --debug-dump=info --wide" produced by binutils 2.36. * maint/ioctls_sym.awk: Likewise. * NEWS: Mention this change. Resolves: https://github.com/strace/strace/issues/171 Resolves: https://github.com/strace/strace/issues/180
* arm: remove kvm ioctl definitionsGleb Fotengauer-Malinovskiy2021-04-191-1/+1
| | | | | | | | arm 32bit KVM host support was removed in Linux v5.7-rc1. * maint/ioctls_sym.sh: Remove arm architecture from the list of kvm-capable architectures. * src/linux/arm/ioctls_arch0.h: Regenerate.
* Update copyright headersDmitry V. Levin2021-02-163-3/+3
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* maint: exclude bundled files in update_copyright_years.shDmitry V. Levin2021-02-041-1/+2
| | | | | | * maint/update_copyright_years.sh: Treat $IGNORED_FILES as regular expressions. (IGNORED_FILES): Add "bundled/linux/.*" regexp.
* Move auxiliary build scripts to build-aux subdirectoryDmitry V. Levin2021-02-022-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * copyright-year-gen: Rename to build-aux/copyright-year-gen. * file-date-gen: Rename to build-aux/file-date-gen. * git-set-file-times: Rename to build-aux/git-set-file-times. * git-version-gen: Rename to build-aux/git-version-gen. * gitlog-to-changelog: Rename to build-aux/gitlog-to-changelog. * Makefile.am (EXTRA_DIST): Rename copyright-year-gen to build-aux/copyright-year-gen, file-date-gen to build-aux/file-date-gen, and git-version-gen to build-aux/git-version-gen. ($(srcdir)/ChangeLog): Rename gitlog-to-changelog to build-aux/gitlog-to-changelog. * ci/run-build-and-tests.sh: Rename git-set-file-times to build-aux/git-set-file-times. * configure.ac: Rename git-version-gen to build-aux/git-version-gen, copyright-year-gen to build-aux/copyright-year-gen, and file-date-gen to build-aux/file-date-gen. * maint/make-dist: Rename git-set-file-times to build-aux/git-set-file-times. * maint/update_copyright_years.sh: Rename git-set-file-times to build-aux/git-set-file-times, gitlog-to-changelog to build-aux/gitlog-to-changelog.
* maint: remove ioctl duplicatesDmitry V. Levin2021-01-041-3/+20
| | | | | | | | | | | * maint/ioctls_sym.awk: If a header file defines several ioctl names with the same value, omit those ioctl names that are either substrings or equivalents of other ioctl names with the same value. * linux/64/ioctls_inc.h: Regenerate. * linux/32/ioctls_inc_align16.h: Likewise. * linux/32/ioctls_inc_align32.h: Likewise. * linux/32/ioctls_inc_align64.h: Likewise. * linux/x32/ioctls_inc0.h: Likewise.
* Update copyright year number rangeDmitry V. Levin2021-01-011-1/+2
| | | | | | | * COPYING: Update copyright year number range. * tests/COPYING: Likewise. * debian/copyright: Likewise. * maint/README-release: Update.
* Change my email addressDmitry V. Levin2020-12-316-6/+6
|
* Update copyright headersDmitry V. Levin2020-12-131-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* maint: adapt to the future versions of readelfGleb Fotengauer-Malinovskiy2020-12-111-1/+1
| | | | * maint/ioctls_sym.awk: Update DW_AT_type regexp.
* Fix various typos found using codespell toolDmitry V. Levin2020-11-291-0/+1
| | | | | | | | | | | * defs.h: Replace "namepace" with "namespace". * pidns.c: Replace "Paramters" with "Parameters". * strace.1.in: Replace "descritors" with "descriptors", replace "asociated" with "associated". * strace.c: Replace "descritor" with "descriptor". * tests/pidns.c: Replace "Wheather" with "Whether". * tests/pidns.h: Replace "succesful" with "successful". * maint/README-release: Add spellcheck.
* Update copyright headersDmitry V. Levin2020-09-231-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* maint: update for linux v5.9Gleb Fotengauer-Malinovskiy2020-09-232-3/+11
| | | | | | | * maint/ioctls_gen.sh: Add arch/<arch>/include/generated/uapi and arch/<arch>/include/generated directories to INCLUDES. * maint/ioctls_sym.sh: Add workaround definitions of __no_kasan_or_inline and __no_sanitize_or_inline macros.
* Update copyright headersDmitry V. Levin2020-08-032-2/+2
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* Move make-dist and make-dsc scripts to maint/Dmitry V. Levin2020-06-103-1/+95
| | | | | | | * make-dsc: Rename to maint/make-dsc. * make-dist: Rename to maint/make-dist. * maint/README-release: Update. * dist/INSTALL: Likewise.
* maint: remove ioctl duplicates generated from linux/dma-buf.hDmitry V. Levin2020-05-291-0/+4
| | | | | | | | Starting with commit v5.7-rc4~13^2~2^2~7, linux/dma-buf.h defines DMA_BUF_SET_NAME_A and DMA_BUF_SET_NAME_B constants, and DMA_BUF_SET_NAME equals to one of them. * maint/ioctls_sym.sh: Edit linux/dma-buf.h to omit DMA_BUF_SET_NAME.
* maint: force time64 based definitions in linux/videodev2.hDmitry V. Levin2020-05-291-0/+6
| | | | | | | | | | Starting with commit v5.6-rc1~93^2~103, linux/videodev2.h provides either time32 or time64 based definitions depending on the flavour provided by libc headers. While media/v4l2-ioctl.h already provides time32 based definitions, linux/videodev2.h has to be twisted to force time64 based definitions. * maint/ioctls_sym.sh: Edit linux/videodev2.h to force time64 based API.
* Update copyright headersDmitry V. Levin2020-04-031-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* maint: update for linux v5.6Gleb Fotengauer-Malinovskiy2020-03-311-0/+11
| | | | | * maint/ioctls_sym.sh: Add workarounds for media/v4l2-ioctl.h and sound/pcm.h headers.
* Fix various typos found using codespell toolDmitry V. Levin2020-03-281-1/+1
| | | | | | | | | | * NEWS: Replace "Enchanced" with "Enhanced". * list.h: Replace "embedded withing" with "embedded within". * maint/gen-contributors-list.sh: Replace "contributer" with "contributor". * tests/futex.c: Replace "succeedes" with "succeeds". * tests/nsyscalls-d.test: Replace "debug ouput" with "debug output". * tests/s390_sthyi.c: Replace "descriptior" with "descriptor".
* Update copyright headersDmitry V. Levin2020-02-063-3/+3
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* maint/update_copyright_years.sh: fix concurrent executionDmitry V. Levin2020-02-061-2/+2
| | | | | | | * maint/update_copyright_years.sh (process_file): Replace "continue" with "return". Fixes: v4.21~318 "maint/update_copyright_years.sh: implement concurrent execution"
* maint/update_copyright_years.sh: fix "integer expression expected" errorDmitry V. Levin2020-02-061-0/+1
| | | | | * maint/update_copyright_years.sh: Check $copyright_year before use in arithmetic operations.
* maint: gen_xlat_defs.sh updatesEugene Syromyatnikov2020-01-281-3/+3
| | | | | | | | Allow whitespace between "#" and "define" and allow passing glob expressions to the -a option. * maint/gen_xlat_defs.sh: Add "[[:space:]]*" between "#" and "define" in regular expressions; match "[^:]*" instead of "$ARCH_DEFS_FILE".
* maint: update for linux v5.5Gleb Fotengauer-Malinovskiy2020-01-271-0/+11
| | | | | * maint/ioctls_sym.sh: Define UL and ULL macros for every processed file. Add a workaround for linux/platform_data/cros_ec_chardev.h file.
* tests: fix invalid copyright years range in a few testsDmitry V. Levin2019-11-151-2/+4
| | | | | | | | | | | * maint/update_copyright_years.sh (process_file): When updating copyright years, if there is existing notice and its starting year is earlier than the year of the first commit, the former takes precedence. * tests/filter_seccomp-flag.c: Fix copyright years range. * tests/filter_seccomp-perf.c: Likewise. * tests/filter_seccomp-perf.test: Likewise. * tests/filter_seccomp.sh: Likewise. * tests/status-none-f.c: Likewise.
* Prefer https URLs where possibleDmitry V. Levin2019-10-011-1/+1
| | | | | * maint/README-release: Use https URL instead of http. * xlat/elf_em.in: Likewise.
* maint: update for linux v5.3-rc8Gleb Fotengauer-Malinovskiy2019-09-101-1/+1
| | | | * maint/ioctls_sym.sh (x86_list): Add KVM_SET_PMU_EVENT_FILTER.
* README-configure: recommend 'make -k check' instead of 'make check'Anatoly Pugachev2019-07-181-1/+1
| | | | | * maint/install.texi: Replace 'make check' with 'make -k check'. * README-configure: Regenerate.