| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
This silences shellcheck SC2004.
|
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
|
| |
* maint/gen-contributors-list.sh: Do not consider names from cited
commit messages as contributors.
|
|
|
|
|
|
| |
* maint/gen-contributors-list.sh: Use "sed -E" instead of sed.
(SCRIPT, SCRIPT_NORM_EMAILS, MATCH_OUT): Convert to extended regular
expressions syntax.
|
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
| |
* maint/ioctls_sym.sh (x86_list): Add KVM_GET_XSAVE2 ioctl.
|
|
|
|
|
| |
* maint/ioctls_sym.sh: Workaround incompatible definition of
__alloc_size__ macro introduced by the Linux commit v5.16-rc1~106^2~224.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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/defs/common.def (ptr[in, array[uint32_t, $1]]): Replace
print_uint_array_member with print_xint_array_member.
|
|
|
|
|
|
|
| |
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/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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
To make it a bit more readable.
* maint/ioctls_sym.sh: Indent sed argument containuation
with an additional indent level to signify its affiliation.
|
|
|
|
|
|
|
|
| |
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/ioctls_sym.sh (x86_list): Add KVM_[SG]ET_SREGS2 ioctls.
|
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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.
|
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
|
|
| |
* maint/update_copyright_years.sh: Treat $IGNORED_FILES as regular
expressions.
(IGNORED_FILES): Add "bundled/linux/.*" regexp.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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/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.
|
|
|
|
|
|
|
| |
* COPYING: Update copyright year number range.
* tests/COPYING: Likewise.
* debian/copyright: Likewise.
* maint/README-release: Update.
|
| |
|
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
| |
* maint/ioctls_sym.awk: Update DW_AT_type regexp.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
|
|
|
| |
* make-dsc: Rename to maint/make-dsc.
* make-dist: Rename to maint/make-dist.
* maint/README-release: Update.
* dist/INSTALL: Likewise.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
|
| |
* maint/ioctls_sym.sh: Add workarounds for media/v4l2-ioctl.h and
sound/pcm.h headers.
|
|
|
|
|
|
|
|
|
|
| |
* 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".
|
|
|
|
|
| |
Headers updated automatically using maint/update_copyright_years.sh
script.
|
|
|
|
|
|
|
| |
* 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: Check $copyright_year before use
in arithmetic operations.
|
|
|
|
|
|
|
|
| |
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/ioctls_sym.sh: Define UL and ULL macros for every processed
file. Add a workaround for linux/platform_data/cros_ec_chardev.h file.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* maint/README-release: Use https URL instead of http.
* xlat/elf_em.in: Likewise.
|
|
|
|
| |
* maint/ioctls_sym.sh (x86_list): Add KVM_SET_PMU_EVENT_FILTER.
|
|
|
|
|
| |
* maint/install.texi: Replace 'make check' with 'make -k check'.
* README-configure: Regenerate.
|