summaryrefslogtreecommitdiff
path: root/linux/aarch64
Commit message (Collapse)AuthorAge
* Add TM flag to shmat and shmdt syscall entriesDmitry V. Levin2014-05-12
|
* pread, pwrite: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | | The number of pread and pwrite arguments depends on architecture and personality. For 64bit and ilp32 it equals to 4, for unaligned 32bit it equals to 5, and for aligned 32bit it equals to 6. * linux/aarch64/syscallent1.h: Change the number of pread and pwrite arguments to 4. * linux/alpha/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/or1k/syscallent.h: Change the number of pread and pwrite arguments to 5.
* preadv, pwritev: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | | | | | The number of preadv and pwritev arguments depends on architecture and personality. For 64bit and ilp32 it equals to 4, for unaligned 32bit it equals to 5, and for aligned 32bit it equals to 6. * linux/aarch64/syscallent1.h: Change the number of preadv and pwritev arguments to 4. * linux/alpha/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Change the number of preadv and pwritev arguments to 6. * linux/sh/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise.
* fallocate: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | The number of fallocate arguments depends on architecture and personality. For 64bit and ilp32 it equals to 4, for 32bit it equals to 6. * linux/aarch64/syscallent1.h: Change the number of fallocate arguments to 4. * linux/alpha/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Set fallocate handler and flags.
* readahead: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | The number of readahead arguments depends on architecture and personality. For 64bit and ilp32 it equals to 3, for unaligned 32bit it equals to 4, and for aligned 32bit it equals to 5. * linux/aarch64/syscallent1.h: Set number of readahead arguments to 3. * linux/alpha/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/or1k/syscallent.h: Set number of readahead arguments to 4. * linux/sh/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Set number of readahead arguments to 5.
* Fix syscall flagsDmitry V. Levin2013-05-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * linux/aarch64/syscallent1.h: Fix syscall flags for send. * linux/alpha/syscallent.h: Fix syscall flags for fchdir, getcwd, oldumount, sigaltstack, umount, uselib, and utimes. * linux/arm/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fchown32, fcntl, fcntl64, fdatasync, flock, fsetxattr, fsync, getdents, getdents64, ioctl, oldfstat, oldselect, open, pipe, poll, pread, pwrite, read, readahead, readdir, readv, select, socketcall, write, and writev. * linux/avr32/syscallent.h: Fix syscall flags for inotify_init and unshare. * linux/bfin/syscallent.h: Fix syscall flags for pread64 and pwrite64. * linux/hppa/syscallent.h: Fix syscall flags for fchdir, flistxattr, getcwd, pause, signal, umount2, uselib, utime, and vfork. * linux/ia64/syscallent.h: Fix syscall flags for creat, fchdir, lstat, umount, uselib, and utimes. Fix syscall handlers for fgetxattr, flistxattr, fremovexattr, and fsetxattr. * linux/m68k/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fchown32, fcntl, fcntl64, fdatasync, flock, fsetxattr, getdents, ioctl, oldfstat, oldselect, open, pipe, poll, pread64, pwrite64, read, readahead, readdir, readv, select, socketcall, write, and writev. * linux/metag/syscallent.h: Fix syscall flags for fanotify_init, prlimit64, process_vm_readv, process_vm_writev, and quotactl. * linux/microblaze/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fchown32, fcntl, fcntl64, fdatasync, flock, fsetxattr, getdents, ioctl, oldfstat, oldselect, open, perf_event_open, pipe, poll, pread64, pwrite64, read, readahead, readdir, readv, select, socketcall, write, and writev. * linux/mips/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fcntl, fcntl64, fdatasync, flock, fsetxattr, getdents, getdents64, getxattr, ioctl, lgetxattr, listxattr, llistxattr, lremovexattr, lsetxattr, oldfstat, open, pipe, pivot_root, poll, pread, pwrite, read, readahead, readv, removexattr, select, setxattr, socketcall, statfs, write, and writev. * linux/or1k/syscallent.h: Fix syscall flags for fchdir and quotactl. * linux/powerpc/syscallent.h: Fix syscall flags for fchdir. * linux/sh/syscallent.h: Fix syscall flags for getcwd. * linux/sparc/syscallent.h: Fix syscall flags for getresgid, getresuid, setresgid, setresgid32, and setresuid. * linux/xtensa/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fallocate, fchdir, fchmod, fchown, fcntl, fcntl64, fdatasync, flock, fsetxattr, fstatfs, fstatfs64, fsync, getdents, getdents64, ioctl, open, pipe, pivot_root, poll, pread64, pwrite64, read, readahead, readv, rt_sigreturn, select, setfsgid, setfsuid, setuid, swapoff, times, utime, write, and writev.
* Fix building outside source directoryAndreas Schwab2013-03-31
| | | | | | | | | | | | | | The file linux/ioctlent.h is generated in the build directory, so "../ioctlent.h" won't find it. * linux/aarch64/ioctlent1.h: Remove "../" from include file name. * linux/powerpc/ioctlent1.h: Likewise. * linux/tile/ioctlent1.h: Likewise. * linux/x32/ioctlent1.h: Likewise. * linux/x86_64/ioctlent1.h: Likewise. * linux/x86_64/ioctlent2.h: Likewise. Signed-off-by: Andreas Schwab <schwab@suse.de>
* Do not use off_t in sendfile decodingDmitry V. Levin2013-03-20
| | | | | | | | | | | | | | | | sendfile parser used to decode off_t* parameter as a pointer to host off_t type. With this change, it is decoded as a pointer to target long type. * io.c (print_off_t): New function. (sys_sendfile): Use it. * linux/aarch64/syscallent1.h: Use sys_sendfile64 for sendfile decoding. * linux/tile/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/hppa/syscallent.h: Use sys_sendfile64 for sendfile64 decoding. * linux/metag/syscallent.h: Correct sendfile syscall name. * linux/or1k/syscallent.h: Likewise.
* Assorted fixes to syscallent.hDenys Vlasenko2013-03-05
| | | | | | | | | | | | | | or1k was missing TM on many memory-related syscalls sys_lookup_dcookie is 3-arg on 64-bit arches, and isn't TF sys_recvmsg is 3-arg on all arches sys_nfsservctl is 3-arg on all arches sys_timerfd_create is 2-arg on all arches sys_[f]truncate64 is 4-arg or 3-arg, never 5-arg truncate64 is TF sys_[l]lseek is TD fstat[64] is TD Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add support for tracing 32-bit ARM EABI binaries on AArch64Steve McIntyre2012-11-12
| | | | | | | | | | | | | | | | | | | | | | | | * defs.h [AARCH64]: Copy in the definition of arm_pt_regs and the accessor macros, so it's possible to build on AArch64 without ARM system headers. Set SUPPORTED_PERSONALITIES to 2. Define PERSONALITY0_WORDSIZE and PERSONALITY1_WORDSIZE. Set DEFAULT_PERSONALITY to 1. * linux/aarch64/errnoent1.h: New file, includes generic errnoent.h. * linux/aarch64/ioctlent1.h: New file, includes generic ioctlent.h. * linux/aarch64/signalent1.h: New file, includes generic signalent.h. * linux/aarch64/syscallent1.h: Rename from linux/aarch64/syscallent.h. * linux/aarch64/syscallent.h: New file, includes arm/syscallent.h. * syscall.c [AARCH64]: Define aarch64_regs. (update_personality) [AARCH64]: Add debug output. (get_scno) [AARCH64]: Determine if we're in ARM or AArch64 mode by checking the size of the returned uio structure from PTRACE_GETREGSET and interpret the structure accordingly. (get_syscall_result): Likewise. (get_syscall_args): Merge the AArch64 and ARM sections so that on AArch64 we can fall back to supporting the ARM personality. (get_error): Likewise. Signed-off-by: Steve McIntyre <steve.mcintyre@linaro.org>
* Enhance quotactl decodingDmitry V. Levin2012-10-26
| | | | | | * quota.c (sys_quotactl): Decode 2nd syscall argument using printpath. * pathtrace.c (pathtrace_match): Add quotactl support. * linux/*/syscallent.h: Add TF flag to quotactl entry.
* Add AArch64 support to straceSteve McIntyre2012-10-26
AArch64 has been included in linux from 3.7 onwards. Add support for AArch64 in strace, tested on linux in a simulator. * configure.ac: Support AArch64. * defs.h [AARCH64]: Include <sys/ptrace.h>, define TCB_WAITEXECVE. * ipc.c (indirect_ipccall): Support AArch64. * process.c (struct_user_offsets): Likewise. * syscall.c [AARCH64]: Include <asm/ptrace.h>, <sys/uio.h>, and <elf.h>. Define struct user_pt_regs regs. (get_scno, get_syscall_result): Support AArch64 using PTRACE_GETREGSET. (get_syscall_args, get_error): Support AArch64. * linux/aarch64/ioctlent.h.in: New file. * linux/aarch64/syscallent.h: New file, based on linux 3.7 version of asm-generic/unistd.h. Signed-off-by: Steve McIntyre <steve.mcintyre@linaro.org>