1999-02-19 00:21:36 +00:00
/*
* Copyright ( c ) 1993 Branko Lankester < branko @ hacktic . nl >
* Copyright ( c ) 1993 , 1994 , 1995 Rick Sladkey < jrs @ world . std . com >
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions
* are met :
* 1. Redistributions of source code must retain the above copyright
* notice , this list of conditions and the following disclaimer .
* 2. Redistributions in binary form must reproduce the above copyright
* notice , this list of conditions and the following disclaimer in the
* documentation and / or other materials provided with the distribution .
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission .
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ` ` AS IS ' ' AND ANY EXPRESS OR
* IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED .
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT , INDIRECT ,
* INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT
* NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE ,
* DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT
* ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
*/
2003-07-05 Richard Henderson <rth@twiddle.net>
* process.c (sys_clone): Order arguments for alpha the same as x86_64.
* syscall.c (ERESTART_RESTARTBLOCK): New.
(trace_syscall): Print it.
* linux/alpha/syscallent.h (osf_syscall): Name properly.
(osf_set_program_attributes): Fix typo.
(osf_nfssvc): Likewise.
(osf_sigsendset): Likewise.
(getdents64, gettid, readahead, tkill, setxattr, lsetxattr, fsetxattr,
getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr, futex, sched_setaffinity,
sched_getaffinity, tuxcall, io_setup, io_destroy, io_getevents,
io_submit, io_cancel, exit_group, lookup_dcookie, epoll_create,
epoll_ctl, epoll_wait, remap_file_pages, set_tid_address,
restart_syscall, fadvise, timer_create, timer_settime, timer_gettime,
timer_getoverrun, timer_delete, clock_settime, clock_gettime,
clock_getres, clock_nanosleep, semtimedop): New.
2003-07-09 09:47:59 +00:00
{ 6 , 0 , printargs , " osf_syscall " } , /* 0, not implemented */
unwind: add SE and SI flags to syscall entries for all architectures
Add SE flag to execve, exit, and exit_group syscall entries.
Add SI flag to brk, execve, mmap, mprotect, mremap, munmap,
remap_file_pages, shmat, and shmdt syscall entries.
2014-05-12 14:37:50 +00:00
{ 1 , TP | SE , sys_exit , " exit " } , /* 1 */
2000-04-10 22:22:31 +00:00
{ 0 , TP , sys_fork , " fork " } , /* 2 */
2005-07-05 03:25:35 +00:00
{ 3 , TD , sys_read , " read " } , /* 3 */
{ 3 , TD , sys_write , " write " } , /* 4 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_old_open " } , /* 5, not implemented */
2005-07-05 03:25:35 +00:00
{ 1 , TD , sys_close , " close " } , /* 6 */
2000-04-10 22:22:31 +00:00
{ 4 , TP , sys_osf_wait4 , " osf_wait4 " } , /* 7 */
{ 5 , 0 , printargs , " osf_old_creat " } , /* 8, not implemented */
{ 2 , TF , sys_link , " link " } , /* 9 */
{ 1 , TF , sys_unlink , " unlink " } , /* 10 */
{ 5 , 0 , printargs , " osf_execve " } , /* 11, not implemented */
{ 1 , TF , sys_chdir , " chdir " } , /* 12 */
Fix syscall flags
* 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.
2013-05-06 01:09:15 +00:00
{ 1 , TD , sys_fchdir , " fchdir " } , /* 13 */
2000-04-10 22:22:31 +00:00
{ 3 , TF , sys_mknod , " mknod " } , /* 14 */
{ 2 , TF , sys_chmod , " chmod " } , /* 15 */
{ 3 , TF , sys_chown , " chown " } , /* 16 */
unwind: add SE and SI flags to syscall entries for all architectures
Add SE flag to execve, exit, and exit_group syscall entries.
Add SI flag to brk, execve, mmap, mprotect, mremap, munmap,
remap_file_pages, shmat, and shmdt syscall entries.
2014-05-12 14:37:50 +00:00
{ 1 , TM | SI , sys_brk , " brk " } , /* 17 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_getfsstat " } , /* 18, not implemented */
2013-03-05 13:59:45 +01:00
{ 3 , TD , sys_lseek , " lseek " } , /* 19 */
2000-04-10 22:22:31 +00:00
{ 0 , 0 , sys_getpid , " getxpid " } , /* 20 */
{ 4 , 0 , printargs , " osf_mount " } , /* 21 */
Fix syscall flags
* 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.
2013-05-06 01:09:15 +00:00
{ 2 , TF , sys_umount2 , " umount " } , /* 22 */
2000-04-10 22:22:31 +00:00
{ 1 , 0 , sys_setuid , " setuid " } , /* 23 */
2011-01-18 17:36:20 +00:00
{ 0 , NF , sys_getuid , " getxuid " } , /* 24 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " exec_with_loader " } , /* 25, not implemented */
{ 4 , 0 , sys_ptrace , " ptrace " } , /* 26 */
2005-03-15 02:17:10 +00:00
{ 5 , 0 , printargs , " osf_nrecvmsg " } , /* 27, not implemented */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_nsendmsg " } , /* 28, not implemented */
{ 5 , 0 , printargs , " osf_nrecvfrom " } , /* 29, not implemented */
{ 5 , 0 , printargs , " osf_naccept " } , /* 30, not implemented */
{ 5 , 0 , printargs , " osf_ngetpeername " } , /* 31, not implemented */
2005-03-15 02:17:10 +00:00
{ 5 , 0 , printargs , " osf_ngetsockname " } , /* 32, not implemented */
2000-04-10 22:22:31 +00:00
{ 2 , TF , sys_access , " access " } , /* 33 */
{ 5 , 0 , printargs , " osf_chflags " } , /* 34, not implemented */
{ 5 , 0 , printargs , " osf_fchflags " } , /* 35, not implemented */
{ 0 , 0 , sys_sync , " sync " } , /* 36 */
{ 2 , TS , sys_kill , " kill " } , /* 37 */
{ 5 , 0 , printargs , " osf_old_stat " } , /* 38, not implemented */
{ 2 , 0 , sys_setpgid , " setpgid " } , /* 39 */
{ 5 , 0 , printargs , " osf_old_lstat " } , /* 40, not implemented */
2005-07-05 03:25:35 +00:00
{ 1 , TD , sys_dup , " dup " } , /* 41 */
{ 1 , TD , sys_pipe , " pipe " } , /* 42 */
2003-07-05 Richard Henderson <rth@twiddle.net>
* process.c (sys_clone): Order arguments for alpha the same as x86_64.
* syscall.c (ERESTART_RESTARTBLOCK): New.
(trace_syscall): Print it.
* linux/alpha/syscallent.h (osf_syscall): Name properly.
(osf_set_program_attributes): Fix typo.
(osf_nfssvc): Likewise.
(osf_sigsendset): Likewise.
(getdents64, gettid, readahead, tkill, setxattr, lsetxattr, fsetxattr,
getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr, futex, sched_setaffinity,
sched_getaffinity, tuxcall, io_setup, io_destroy, io_getevents,
io_submit, io_cancel, exit_group, lookup_dcookie, epoll_create,
epoll_ctl, epoll_wait, remap_file_pages, set_tid_address,
restart_syscall, fadvise, timer_create, timer_settime, timer_gettime,
timer_getoverrun, timer_delete, clock_settime, clock_gettime,
clock_getres, clock_nanosleep, semtimedop): New.
2003-07-09 09:47:59 +00:00
{ 5 , 0 , printargs , " osf_set_program_attributes " } , /* 43 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_profil " } , /* 44, not implemented */
2005-07-05 03:25:35 +00:00
{ 3 , TD | TF , sys_open , " open " } , /* 45 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_old_sigaction " } , /* 46, not implemented */
2011-01-18 17:36:20 +00:00
{ 1 , NF , sys_getgid , " getxgid " } , /* 47 */
alpha: fix decode of osf_sigprocmask
The alpha sigprocmask syscall is special in that it comes from OSF rather
than the style that everyone else uses.
Tested with this simple code:
$ cat test.c
#include <signal.h>
main() {
sigset_t set, oldset;
sigemptyset(&set);
sigaddset(&set, SIGINT);
sigaddset(&set, SIGHUP);
sigprocmask(SIG_SETMASK, &set, &oldset);
sigprocmask(SIG_UNBLOCK, &oldset, &set);
sleep(3);
}
$ gcc test.c && ./strace ./a.out
...
osf_sigprocmask(SIG_SETMASK, [HUP INT]) = 0 (old mask [])
osf_sigprocmask(SIG_UNBLOCK, []) = 0x3 (old mask [HUP INT])
osf_sigprocmask(SIG_BLOCK, [CHLD]) = 0x3 (old mask [HUP INT])
...
* linux/alpha/syscallent.h: Call sys_sigprocmask for osf_sigprocmask,
and change number of arguments to two.
* signal.c (sys_sigprocmask): Fix decoding of alpha osf sigprocmask.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-03-15 00:45:33 -04:00
{ 2 , TS , sys_sigprocmask , " osf_sigprocmask " } , /* 48 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_getlogin " } , /* 49, not implemented */
{ 5 , 0 , printargs , " osf_setlogin " } , /* 50, not implemented */
{ 1 , TF , sys_acct , " acct " } , /* 51 */
{ 1 , TS , sys_sigpending , " sigpending " } , /* 52 */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 53 */
2005-07-05 03:25:35 +00:00
{ 3 , TD , sys_ioctl , " ioctl " } , /* 54 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_reboot " } , /* 55, not implemented */
{ 5 , 0 , printargs , " osf_revoke " } , /* 56, not implemented */
{ 2 , TF , sys_symlink , " symlink " } , /* 57 */
{ 3 , TF , sys_readlink , " readlink " } , /* 58 */
unwind: add SE and SI flags to syscall entries for all architectures
Add SE flag to execve, exit, and exit_group syscall entries.
Add SI flag to brk, execve, mmap, mprotect, mremap, munmap,
remap_file_pages, shmat, and shmdt syscall entries.
2014-05-12 14:37:50 +00:00
{ 3 , TF | TP | SE | SI , sys_execve , " execve " } , /* 59 */
2000-04-10 22:22:31 +00:00
{ 1 , 0 , sys_umask , " umask " } , /* 60 */
{ 1 , TF , sys_chroot , " chroot " } , /* 61 */
{ 5 , 0 , printargs , " osf_old_fstat " } , /* 62, not implemented */
{ 0 , 0 , sys_getpgrp , " getpgrp " } , /* 63 */
{ 0 , 0 , sys_getpagesize , " getpagesize " } , /* 64 */
Add -e trace=memory option
Add a new 'memory' category for tracing memory mapping related syscalls.
Affected syscalls are: break, brk, get_mempolicy, madvise, mbind,
migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect,
mremap, msync, munlock, munlockall, munmap, remap_file_pages, and
set_mempolicy.
* defs.h (TRACE_MEMORY): New macro.
* syscall.c (lookup_class): Handle trace=memory option.
* strace.1: Document it.
* linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/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/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
2012-10-24 11:41:57 +09:00
{ 5 , TM , printargs , " osf_mremap " } , /* 65, not implemented */
2014-05-12 13:43:10 +00:00
{ 0 , TP , sys_vfork , " vfork " } , /* 66 */
2000-04-10 22:22:31 +00:00
{ 2 , TF , sys_stat , " stat " } , /* 67 */
{ 2 , TF , sys_lstat , " lstat " } , /* 68 */
Add -e trace=memory option
Add a new 'memory' category for tracing memory mapping related syscalls.
Affected syscalls are: break, brk, get_mempolicy, madvise, mbind,
migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect,
mremap, msync, munlock, munlockall, munmap, remap_file_pages, and
set_mempolicy.
* defs.h (TRACE_MEMORY): New macro.
* syscall.c (lookup_class): Handle trace=memory option.
* strace.1: Document it.
* linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/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/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
2012-10-24 11:41:57 +09:00
{ 5 , TM , printargs , " osf_sbrk " } , /* 69, not implemented */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_sstk " } , /* 70, not implemented */
unwind: add SE and SI flags to syscall entries for all architectures
Add SE flag to execve, exit, and exit_group syscall entries.
Add SI flag to brk, execve, mmap, mprotect, mremap, munmap,
remap_file_pages, shmat, and shmdt syscall entries.
2014-05-12 14:37:50 +00:00
{ 6 , TD | TM | SI , sys_mmap , " mmap " } , /* 71 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_old_vadvise " } , /* 72, not implemented */
unwind: add SE and SI flags to syscall entries for all architectures
Add SE flag to execve, exit, and exit_group syscall entries.
Add SI flag to brk, execve, mmap, mprotect, mremap, munmap,
remap_file_pages, shmat, and shmdt syscall entries.
2014-05-12 14:37:50 +00:00
{ 2 , TM | SI , sys_munmap , " munmap " } , /* 73 */
{ 3 , TM | SI , sys_mprotect , " mprotect " } , /* 74 */
Add -e trace=memory option
Add a new 'memory' category for tracing memory mapping related syscalls.
Affected syscalls are: break, brk, get_mempolicy, madvise, mbind,
migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect,
mremap, msync, munlock, munlockall, munmap, remap_file_pages, and
set_mempolicy.
* defs.h (TRACE_MEMORY): New macro.
* syscall.c (lookup_class): Handle trace=memory option.
* strace.1: Document it.
* linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/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/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
2012-10-24 11:41:57 +09:00
{ 3 , TM , sys_madvise , " madvise " } , /* 75 */
2000-04-10 22:22:31 +00:00
{ 0 , 0 , sys_vhangup , " vhangup " } , /* 76 */
{ 5 , 0 , printargs , " osf_kmodcall " } , /* 77, not implemented */
Add -e trace=memory option
Add a new 'memory' category for tracing memory mapping related syscalls.
Affected syscalls are: break, brk, get_mempolicy, madvise, mbind,
migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect,
mremap, msync, munlock, munlockall, munmap, remap_file_pages, and
set_mempolicy.
* defs.h (TRACE_MEMORY): New macro.
* syscall.c (lookup_class): Handle trace=memory option.
* strace.1: Document it.
* linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/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/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
2012-10-24 11:41:57 +09:00
{ 5 , TM , printargs , " osf_mincore " } , /* 78, not implemented */
2000-04-10 22:22:31 +00:00
{ 2 , 0 , sys_getgroups , " getgroups " } , /* 79 */
{ 2 , 0 , sys_setgroups , " setgroups " } , /* 80 */
{ 5 , 0 , printargs , " osf_old_getpgrp " } , /* 81, not implemented */
{ 2 , 0 , sys_setpgrp , " setpgrp " } , /* 82 */
{ 3 , 0 , sys_osf_setitimer , " osf_setitimer " } , /* 83 */
{ 5 , 0 , printargs , " osf_old_wait " } , /* 84, not implemented */
{ 5 , 0 , printargs , " osf_table " } , /* 85, not implemented */
{ 2 , 0 , sys_osf_getitimer , " osf_getitimer " } , /* 86 */
{ 2 , 0 , sys_gethostname , " gethostname " } , /* 87 */
{ 2 , 0 , sys_sethostname , " sethostname " } , /* 88 */
{ 0 , 0 , sys_getdtablesize , " getdtablesize " } , /* 89 */
2005-07-05 03:25:35 +00:00
{ 2 , TD , sys_dup2 , " dup2 " } , /* 90 */
{ 2 , TD , sys_fstat , " fstat " } , /* 91 */
{ 3 , TD , sys_fcntl , " fcntl " } , /* 92 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , sys_osf_select , " osf_select " } , /* 93 */
2005-07-05 03:25:35 +00:00
{ 3 , TD , sys_poll , " poll " } , /* 94 */
{ 1 , TD , sys_fsync , " fsync " } , /* 95 */
2000-04-10 22:22:31 +00:00
{ 3 , 0 , sys_setpriority , " setpriority " } , /* 96 */
{ 3 , TN , sys_socket , " socket " } , /* 97 */
{ 3 , TN , sys_connect , " connect " } , /* 98 */
{ 3 , TN , sys_accept , " accept " } , /* 99 */
{ 2 , 0 , sys_getpriority , " osf_getpriority " } , /* 100 */
{ 4 , TN , sys_send , " send " } , /* 101 */
{ 4 , TN , sys_recv , " recv " } , /* 102 */
2011-06-09 01:43:22 +02:00
{ 0 , TS , sys_sigreturn , " sigreturn " } , /* 103 */
2000-04-10 22:22:31 +00:00
{ 3 , TN , sys_bind , " bind " } , /* 104 */
{ 5 , TN , sys_setsockopt , " setsockopt " } , /* 105 */
{ 2 , TN , sys_listen , " listen " } , /* 106 */
{ 5 , 0 , printargs , " osf_plock " } , /* 107, not implemented */
{ 5 , 0 , printargs , " osf_old_sigvec " } , /* 108, not implemented */
{ 5 , 0 , printargs , " osf_old_sigblock " } , /* 109, not implemented */
{ 5 , 0 , printargs , " osf_old_sigsetmask " } , /* 110, not implemented */
{ 3 , TS , sys_sigsuspend , " sigsuspend " } , /* 111 */
{ 5 , 0 , printargs , " sigstack " } , /* 112 */
{ 3 , TN , sys_recvmsg , " recvmsg " } , /* 113 */
{ 3 , TN , sys_sendmsg , " sendmsg " } , /* 114 */
{ 5 , 0 , printargs , " osf_old_vtrace " } , /* 115, not implemented */
{ 2 , 0 , sys_osf_gettimeofday , " osf_gettimeofday " } , /* 116 */
{ 2 , 0 , sys_osf_getrusage , " osf_getrusage " } , /* 117 */
{ 5 , TN , sys_getsockopt , " getsockopt " } , /* 118 */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 119 */
2005-07-05 03:25:35 +00:00
{ 3 , TD , sys_readv , " readv " } , /* 120 */
{ 3 , TD , sys_writev , " writev " } , /* 121 */
2000-04-10 22:22:31 +00:00
{ 2 , 0 , sys_osf_settimeofday , " osf_settimeofday " } , /* 122 */
2005-07-05 03:25:35 +00:00
{ 3 , TD , sys_fchown , " fchown " } , /* 123 */
{ 2 , TD , sys_fchmod , " fchmod " } , /* 124 */
2000-04-10 22:22:31 +00:00
{ 6 , TN , sys_recvfrom , " recvfrom " } , /* 125 */
{ 2 , 0 , sys_setreuid , " setreuid " } , /* 126 */
{ 2 , 0 , sys_setregid , " setregid " } , /* 127 */
{ 2 , TF , sys_rename , " rename " } , /* 128 */
{ 2 , TF , sys_truncate , " truncate " } , /* 129 */
2005-07-05 03:25:35 +00:00
{ 2 , TD , sys_ftruncate , " ftruncate " } , /* 130 */
{ 2 , TD , sys_flock , " flock " } , /* 131 */
2000-04-10 22:22:31 +00:00
{ 1 , 0 , sys_setgid , " setgid " } , /* 132 */
{ 6 , TN , sys_sendto , " sendto " } , /* 133 */
{ 2 , TN , sys_shutdown , " shutdown " } , /* 134 */
{ 4 , TN , sys_socketpair , " socketpair " } , /* 135 */
{ 2 , TF , sys_mkdir , " mkdir " } , /* 136 */
{ 1 , TF , sys_rmdir , " rmdir " } , /* 137 */
{ 2 , 0 , sys_osf_utimes , " osf_utimes " } , /* 138 */
{ 5 , 0 , printargs , " osf_old_sigreturn " } , /* 139 */
{ 5 , 0 , printargs , " osf_adjtime " } , /* 140, not implemented */
{ 3 , TN , sys_getpeername , " getpeername " } , /* 141 */
{ 5 , 0 , printargs , " osf_gethostid " } , /* 142, not implemented */
{ 5 , 0 , printargs , " osf_sethostid " } , /* 143, not implemented */
{ 2 , 0 , sys_getrlimit , " getrlimit " } , /* 144 */
{ 2 , 0 , sys_setrlimit , " setrlimit " } , /* 145 */
{ 5 , 0 , printargs , " osf_old_killpg " } , /* 146, not implemented */
{ 0 , 0 , sys_setsid , " setsid " } , /* 147 */
2012-10-26 23:43:13 +00:00
{ 4 , TF , sys_quotactl , " quotactl " } , /* 148 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_oldquota " } , /* 149, not implemented */
{ 3 , TN , sys_getsockname , " getsockname " } , /* 150 */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 151 */
{ 5 , 0 , NULL , NULL } , /* 152 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_pid_block " } , /* 153, not implemented */
{ 5 , 0 , printargs , " osf_pid_unblock " } , /* 154, not implemented */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 155 */
2000-04-10 22:22:31 +00:00
{ 3 , TS , sys_sigaction , " sigaction " } , /* 156 */
{ 5 , 0 , printargs , " osf_sigwaitprim " } , /* 157, not implemented */
2003-07-05 Richard Henderson <rth@twiddle.net>
* process.c (sys_clone): Order arguments for alpha the same as x86_64.
* syscall.c (ERESTART_RESTARTBLOCK): New.
(trace_syscall): Print it.
* linux/alpha/syscallent.h (osf_syscall): Name properly.
(osf_set_program_attributes): Fix typo.
(osf_nfssvc): Likewise.
(osf_sigsendset): Likewise.
(getdents64, gettid, readahead, tkill, setxattr, lsetxattr, fsetxattr,
getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr, futex, sched_setaffinity,
sched_getaffinity, tuxcall, io_setup, io_destroy, io_getevents,
io_submit, io_cancel, exit_group, lookup_dcookie, epoll_create,
epoll_ctl, epoll_wait, remap_file_pages, set_tid_address,
restart_syscall, fadvise, timer_create, timer_settime, timer_gettime,
timer_getoverrun, timer_delete, clock_settime, clock_gettime,
clock_getres, clock_nanosleep, semtimedop): New.
2003-07-09 09:47:59 +00:00
{ 5 , 0 , printargs , " osf_nfssvc " } , /* 158, not implemented */
2000-04-10 22:22:31 +00:00
{ 4 , 0 , printargs , " osf_getdirentries " } , /* 159 */
{ 3 , 0 , osf_statfs , " osf_statfs " } , /* 160 */
{ 3 , 0 , osf_fstatfs , " osf_fstatfs " } , /* 161 */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 162 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_asynch_daemon " } , /* 163, not implemented */
{ 5 , 0 , printargs , " osf_getfh " } , /* 164, not implemented */
{ 2 , 0 , printargs , " osf_getdomainname " } , /* 165 */
{ 2 , 0 , sys_setdomainname , " setdomainname " } , /* 166 */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 167 */
{ 5 , 0 , NULL , NULL } , /* 168 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_exportfs " } , /* 169, not implemented */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 170 */
{ 5 , 0 , NULL , NULL } , /* 171 */
{ 5 , 0 , NULL , NULL } , /* 172 */
{ 5 , 0 , NULL , NULL } , /* 173 */
{ 5 , 0 , NULL , NULL } , /* 174 */
{ 5 , 0 , NULL , NULL } , /* 175 */
{ 5 , 0 , NULL , NULL } , /* 176 */
{ 5 , 0 , NULL , NULL } , /* 177 */
{ 5 , 0 , NULL , NULL } , /* 178 */
{ 5 , 0 , NULL , NULL } , /* 179 */
{ 5 , 0 , NULL , NULL } , /* 180 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_alt_plock " } , /* 181, not implemented */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 182 */
{ 5 , 0 , NULL , NULL } , /* 183 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_getmnt " } , /* 184, not implemented */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 185 */
{ 5 , 0 , NULL , NULL } , /* 186 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_alt_sigpending " } , /* 187, not implemented */
{ 5 , 0 , printargs , " osf_alt_setsid " } , /* 188, not implemented */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 189 */
{ 5 , 0 , NULL , NULL } , /* 190 */
{ 5 , 0 , NULL , NULL } , /* 191 */
{ 5 , 0 , NULL , NULL } , /* 192 */
{ 5 , 0 , NULL , NULL } , /* 193 */
{ 5 , 0 , NULL , NULL } , /* 194 */
{ 5 , 0 , NULL , NULL } , /* 195 */
{ 5 , 0 , NULL , NULL } , /* 196 */
{ 5 , 0 , NULL , NULL } , /* 197 */
{ 5 , 0 , NULL , NULL } , /* 198 */
2000-04-10 22:22:31 +00:00
{ 4 , 0 , printargs , " osf_swapon " } , /* 199 */
{ 4 , TI , sys_msgctl , " msgctl " } , /* 200 */
{ 4 , TI , sys_msgget , " msgget " } , /* 201 */
{ 4 , TI , sys_msgrcv , " msgrcv " } , /* 202 */
{ 4 , TI , sys_msgsnd , " msgsnd " } , /* 203 */
{ 4 , TI , sys_semctl , " semctl " } , /* 204 */
{ 4 , TI , sys_semget , " semget " } , /* 205 */
{ 4 , TI , printargs , " semop " } , /* 206 */
{ 1 , 0 , printargs , " osf_utsname " } , /* 207 */
{ 3 , TF , sys_chown , " lchown " } , /* 208 */
2014-04-29 18:15:43 +00:00
{ 3 , TI | TM , printargs , " osf_shmat " } , /* 209 */
2000-04-10 22:22:31 +00:00
{ 4 , TI , sys_shmctl , " shmctl " } , /* 210 */
unwind: add SE and SI flags to syscall entries for all architectures
Add SE flag to execve, exit, and exit_group syscall entries.
Add SI flag to brk, execve, mmap, mprotect, mremap, munmap,
remap_file_pages, shmat, and shmdt syscall entries.
2014-05-12 14:37:50 +00:00
{ 4 , TI | TM | SI , sys_shmdt , " shmdt " } , /* 211 */
2000-04-10 22:22:31 +00:00
{ 4 , TI , sys_shmget , " shmget " } , /* 212 */
{ 5 , 0 , printargs , " osf_mvalid " } , /* 213, not implemented */
{ 5 , 0 , printargs , " osf_getaddressconf " } , /* 214, not implemented */
{ 5 , 0 , printargs , " osf_msleep " } , /* 215, not implemented */
{ 5 , 0 , printargs , " osf_mwakeup " } , /* 216, not implemented */
Add -e trace=memory option
Add a new 'memory' category for tracing memory mapping related syscalls.
Affected syscalls are: break, brk, get_mempolicy, madvise, mbind,
migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect,
mremap, msync, munlock, munlockall, munmap, remap_file_pages, and
set_mempolicy.
* defs.h (TRACE_MEMORY): New macro.
* syscall.c (lookup_class): Handle trace=memory option.
* strace.1: Document it.
* linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/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/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
2012-10-24 11:41:57 +09:00
{ 3 , TM , sys_msync , " msync " } , /* 217 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_signal " } , /* 218, not implemented */
{ 5 , 0 , printargs , " osf_utc_gettime " } , /* 219, not implemented */
{ 5 , 0 , printargs , " osf_utc_adjtime " } , /* 220, not implemented */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 221 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_security " } , /* 222, not implemented */
{ 5 , 0 , printargs , " osf_kloadcall " } , /* 223, not implemented */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 224 */
{ 5 , 0 , NULL , NULL } , /* 225 */
{ 5 , 0 , NULL , NULL } , /* 226 */
{ 5 , 0 , NULL , NULL } , /* 227 */
{ 5 , 0 , NULL , NULL } , /* 228 */
{ 5 , 0 , NULL , NULL } , /* 229 */
{ 5 , 0 , NULL , NULL } , /* 230 */
{ 5 , 0 , NULL , NULL } , /* 231 */
{ 5 , 0 , NULL , NULL } , /* 232 */
2000-04-10 22:22:31 +00:00
{ 1 , 0 , sys_getpgid , " getpgid " } , /* 233 */
{ 1 , 0 , sys_getsid , " getsid " } , /* 234 */
Fix syscall flags
* 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.
2013-05-06 01:09:15 +00:00
{ 5 , TS , sys_sigaltstack , " sigaltstack " } , /* 235 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_waitid " } , /* 236, not implemented */
{ 5 , 0 , printargs , " osf_priocntlset " } , /* 237, not implemented */
2003-07-05 Richard Henderson <rth@twiddle.net>
* process.c (sys_clone): Order arguments for alpha the same as x86_64.
* syscall.c (ERESTART_RESTARTBLOCK): New.
(trace_syscall): Print it.
* linux/alpha/syscallent.h (osf_syscall): Name properly.
(osf_set_program_attributes): Fix typo.
(osf_nfssvc): Likewise.
(osf_sigsendset): Likewise.
(getdents64, gettid, readahead, tkill, setxattr, lsetxattr, fsetxattr,
getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr, futex, sched_setaffinity,
sched_getaffinity, tuxcall, io_setup, io_destroy, io_getevents,
io_submit, io_cancel, exit_group, lookup_dcookie, epoll_create,
epoll_ctl, epoll_wait, remap_file_pages, set_tid_address,
restart_syscall, fadvise, timer_create, timer_settime, timer_gettime,
timer_getoverrun, timer_delete, clock_settime, clock_gettime,
clock_getres, clock_nanosleep, semtimedop): New.
2003-07-09 09:47:59 +00:00
{ 5 , 0 , printargs , " osf_sigsendset " } , /* 238, not implemented */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_set_speculative " } , /* 239, not implemented */
{ 5 , 0 , printargs , " osf_msfs_syscall " } , /* 240, not implemented */
{ 5 , 0 , printargs , " osf_sysinfo " } , /* 241 */
{ 5 , 0 , printargs , " osf_uadmin " } , /* 242, not implemented */
{ 5 , 0 , printargs , " osf_fuser " } , /* 243, not implemented */
{ 2 , 0 , printargs , " osf_proplist_syscall " } , /* 244 */
{ 5 , 0 , printargs , " osf_ntp_adjtime " } , /* 245, not implemented */
{ 5 , 0 , printargs , " osf_ntp_gettime " } , /* 246, not implemented */
{ 5 , 0 , printargs , " osf_pathconf " } , /* 247, not implemented */
{ 5 , 0 , printargs , " osf_fpathconf " } , /* 248, not implemented */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 249 */
2000-04-10 22:22:31 +00:00
{ 5 , 0 , printargs , " osf_uswitch " } , /* 250, not implemented */
{ 2 , 0 , printargs , " osf_usleep_thread " } , /* 251 */
{ 5 , 0 , printargs , " osf_audcntl " } , /* 252, not implemented */
{ 5 , 0 , printargs , " osf_audgen " } , /* 253, not implemented */
{ 5 , 0 , sys_sysfs , " sysfs " } , /* 254 */
{ 5 , 0 , printargs , " osf_subsysinfo " } , /* 255, not implemented */
{ 5 , 0 , printargs , " osf_getsysinfo " } , /* 256 */
{ 5 , 0 , printargs , " osf_setsysinfo " } , /* 257 */
{ 5 , 0 , printargs , " osf_afs_syscall " } , /* 258, not implemented */
{ 5 , 0 , printargs , " osf_swapctl " } , /* 259, not implemented */
{ 5 , 0 , printargs , " osf_memcntl " } , /* 260, not implemented */
{ 5 , 0 , printargs , " osf_fdatasync " } , /* 261, not implemented */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 262 */
{ 5 , 0 , NULL , NULL } , /* 263 */
{ 5 , 0 , NULL , NULL } , /* 264 */
{ 5 , 0 , NULL , NULL } , /* 265 */
{ 5 , 0 , NULL , NULL } , /* 266 */
{ 5 , 0 , NULL , NULL } , /* 267 */
{ 5 , 0 , NULL , NULL } , /* 268 */
{ 5 , 0 , NULL , NULL } , /* 269 */
{ 5 , 0 , NULL , NULL } , /* 270 */
{ 5 , 0 , NULL , NULL } , /* 271 */
{ 5 , 0 , NULL , NULL } , /* 272 */
{ 5 , 0 , NULL , NULL } , /* 273 */
{ 5 , 0 , NULL , NULL } , /* 274 */
{ 5 , 0 , NULL , NULL } , /* 275 */
{ 5 , 0 , NULL , NULL } , /* 276 */
{ 5 , 0 , NULL , NULL } , /* 277 */
{ 5 , 0 , NULL , NULL } , /* 278 */
{ 5 , 0 , NULL , NULL } , /* 279 */
{ 5 , 0 , NULL , NULL } , /* 280 */
{ 5 , 0 , NULL , NULL } , /* 281 */
{ 5 , 0 , NULL , NULL } , /* 282 */
{ 5 , 0 , NULL , NULL } , /* 283 */
{ 5 , 0 , NULL , NULL } , /* 284 */
{ 5 , 0 , NULL , NULL } , /* 285 */
{ 5 , 0 , NULL , NULL } , /* 286 */
{ 5 , 0 , NULL , NULL } , /* 287 */
{ 5 , 0 , NULL , NULL } , /* 288 */
{ 5 , 0 , NULL , NULL } , /* 289 */
{ 5 , 0 , NULL , NULL } , /* 290 */
{ 5 , 0 , NULL , NULL } , /* 291 */
{ 5 , 0 , NULL , NULL } , /* 292 */
{ 5 , 0 , NULL , NULL } , /* 293 */
{ 5 , 0 , NULL , NULL } , /* 294 */
{ 5 , 0 , NULL , NULL } , /* 295 */
{ 5 , 0 , NULL , NULL } , /* 296 */
{ 5 , 0 , NULL , NULL } , /* 297 */
{ 5 , 0 , NULL , NULL } , /* 298 */
{ 5 , 0 , NULL , NULL } , /* 299 */
2000-04-10 22:22:31 +00:00
{ 0 , 0 , sys_bdflush , " bdflush " } , /* 300 */
{ 3 , 0 , printargs , " sethae " } , /* 301 */
{ 5 , TF , sys_mount , " mount " } , /* 302 */
{ 1 , 0 , sys_adjtimex , " adjtimex32 " } , /* 303 */
2011-02-20 19:14:10 +00:00
{ 1 , TF , sys_swapoff , " swapoff " } , /* 304 */
2005-07-05 03:25:35 +00:00
{ 3 , TD , sys_getdents , " getdents " } , /* 305 */
2000-04-10 22:22:31 +00:00
{ 2 , 0 , sys_create_module , " create_module " } , /* 306 */
{ 4 , 0 , sys_init_module , " init_module " } , /* 307 */
2007-07-05 19:28:35 +00:00
{ 2 , 0 , sys_delete_module , " delete_module " } , /* 308 */
2000-04-10 22:22:31 +00:00
{ 1 , 0 , sys_get_kernel_syms , " get_kernel_syms " } , /* 309 */
{ 3 , 0 , sys_syslog , " syslog " } , /* 310 */
2011-11-25 23:13:15 +00:00
{ 4 , 0 , sys_reboot , " reboot " } , /* 311 */
2003-05-23 00:29:00 +00:00
{ 5 , TP , sys_clone , " clone " } , /* 312 */
Fix syscall flags
* 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.
2013-05-06 01:09:15 +00:00
{ 1 , TF , sys_uselib , " uselib " } , /* 313 */
Add -e trace=memory option
Add a new 'memory' category for tracing memory mapping related syscalls.
Affected syscalls are: break, brk, get_mempolicy, madvise, mbind,
migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect,
mremap, msync, munlock, munlockall, munmap, remap_file_pages, and
set_mempolicy.
* defs.h (TRACE_MEMORY): New macro.
* syscall.c (lookup_class): Handle trace=memory option.
* strace.1: Document it.
* linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/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/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
2012-10-24 11:41:57 +09:00
{ 2 , TM , sys_mlock , " mlock " } , /* 314 */
{ 2 , TM , sys_munlock , " munlock " } , /* 315 */
{ 1 , TM , sys_mlockall , " mlockall " } , /* 316 */
{ 0 , TM , sys_munlockall , " munlockall " } , /* 317 */
2000-04-10 22:22:31 +00:00
{ 1 , 0 , sys_sysinfo , " sysinfo " } , /* 318 */
{ 1 , 0 , sys_sysctl , " sysctl " } , /* 319 */
{ 0 , 0 , sys_idle , " idle " } , /* 320 */
Fix syscall flags
* 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.
2013-05-06 01:09:15 +00:00
{ 1 , TF , sys_umount , " oldumount " } , /* 321 */
2011-11-25 23:04:04 +00:00
{ 2 , TF , sys_swapon , " swapon " } , /* 322 */
2000-04-10 22:22:31 +00:00
{ 1 , 0 , sys_times , " times " } , /* 323 */
{ 1 , 0 , sys_personality , " personality " } , /* 324 */
2011-01-18 17:36:20 +00:00
{ 1 , NF , sys_setfsuid , " setfsuid " } , /* 325 */
{ 1 , NF , sys_setfsgid , " setfsgid " } , /* 326 */
2000-04-10 22:22:31 +00:00
{ 2 , 0 , sys_ustat , " ustat " } , /* 327 */
{ 2 , TF , sys_statfs , " statfs " } , /* 328 */
2005-07-05 03:25:35 +00:00
{ 2 , TD , sys_fstatfs , " fstatfs " } , /* 329 */
2000-04-10 22:22:31 +00:00
{ 2 , 0 , sys_sched_setparam , " sched_setparam " } , /* 330 */
{ 2 , 0 , sys_sched_getparam , " sched_getparam " } , /* 331 */
{ 3 , 0 , sys_sched_setscheduler , " sched_setscheduler " } , /* 332 */
{ 2 , 0 , sys_sched_getscheduler , " sched_getscheduler " } , /* 333 */
{ 0 , 0 , sys_sched_yield , " sched_yield " } , /* 334 */
{ 1 , 0 , sys_sched_get_priority_max , " sched_get_priority_max " } , /* 335 */
{ 1 , 0 , sys_sched_get_priority_min , " sched_get_priority_min " } , /* 336 */
{ 2 , 0 , sys_sched_rr_get_interval , " sched_rr_get_interval " } , /* 337 */
{ 5 , 0 , sys_afs_syscall , " afs_syscall " } , /* 338 */
{ 1 , 0 , sys_uname , " uname " } , /* 339 */
{ 2 , 0 , sys_nanosleep , " nanosleep " } , /* 340 */
unwind: add SE and SI flags to syscall entries for all architectures
Add SE flag to execve, exit, and exit_group syscall entries.
Add SI flag to brk, execve, mmap, mprotect, mremap, munmap,
remap_file_pages, shmat, and shmdt syscall entries.
2014-05-12 14:37:50 +00:00
{ 5 , TM | SI , sys_mremap , " mremap " } , /* 341 */
2013-03-05 13:59:45 +01:00
{ 3 , 0 , sys_nfsservctl , " nfsservctl " } , /* 342 */
2000-04-10 22:22:31 +00:00
{ 3 , 0 , sys_setresuid , " setresuid " } , /* 343 */
{ 3 , 0 , sys_getresuid , " getresuid " } , /* 344 */
{ 5 , 0 , printargs , " pciconfig_read " } , /* 345 */
{ 5 , 0 , printargs , " pciconfig_write " } , /* 346 */
{ 5 , 0 , sys_query_module , " query_module " } , /* 347 */
2008-09-03 00:52:47 +00:00
{ 5 , 0 , sys_prctl , " prctl " } , /* 348 */
2013-05-07 09:35:18 +00:00
{ 4 , TD , sys_pread , " pread " } , /* 349 */
{ 4 , TD , sys_pwrite , " pwrite " } , /* 350 */
2012-01-10 16:48:19 +01:00
{ 0 , TS , sys_rt_sigreturn , " rt_sigreturn " } , /* 351 */
2000-04-10 22:22:31 +00:00
{ 4 , TS , sys_rt_sigaction , " rt_sigaction " } , /* 352 */
{ 4 , TS , sys_rt_sigprocmask , " rt_sigprocmask " } , /* 353 */
{ 2 , TS , sys_rt_sigpending , " rt_sigpending " } , /* 354 */
{ 4 , TS , sys_rt_sigtimedwait , " rt_sigtimedwait " } , /* 355 */
{ 3 , TS , sys_rt_sigqueueinfo , " rt_sigqueueinfo " } , /* 356 */
{ 2 , TS , sys_rt_sigsuspend , " rt_sigsuspend " } , /* 357 */
2005-07-05 03:25:35 +00:00
{ 5 , TD , sys_select , " select " } , /* 358 */
2000-04-10 22:22:31 +00:00
{ 2 , 0 , sys_gettimeofday , " gettimeofday " } , /* 359 */
{ 3 , 0 , sys_settimeofday , " settimeofday " } , /* 360 */
{ 2 , 0 , sys_getitimer , " getitimer " } , /* 361 */
{ 3 , 0 , sys_setitimer , " setitimer " } , /* 362 */
Fix syscall flags
* 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.
2013-05-06 01:09:15 +00:00
{ 2 , TF , sys_utimes , " utimes " } , /* 363 */
2000-04-10 22:22:31 +00:00
{ 2 , 0 , sys_getrusage , " getrusage " } , /* 364 */
{ 4 , TP , sys_wait4 , " wait4 " } , /* 365 */
{ 1 , 0 , sys_adjtimex , " adjtimex " } , /* 366 */
Fix syscall flags
* 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.
2013-05-06 01:09:15 +00:00
{ 2 , TF , sys_getcwd , " getcwd " } , /* 367 */
2000-04-10 22:22:31 +00:00
{ 2 , 0 , sys_capget , " capget " } , /* 368 */
{ 2 , 0 , sys_capset , " capset " } , /* 369 */
2008-12-29 20:04:15 +00:00
{ 4 , TD | TN , sys_sendfile , " sendfile " } , /* 370 */
2007-09-12 01:26:31 +00:00
{ 3 , 0 , sys_setresgid , " setresgid " } , /* 371 */
{ 3 , 0 , sys_getresgid , " getresgid " } , /* 372 */
2000-04-10 22:22:31 +00:00
{ 4 , 0 , printargs , " dipc " } , /* 373, not implemented */
2007-09-12 01:26:31 +00:00
{ 2 , TF , sys_pivotroot , " pivot_root " } , /* 374 */
Add -e trace=memory option
Add a new 'memory' category for tracing memory mapping related syscalls.
Affected syscalls are: break, brk, get_mempolicy, madvise, mbind,
migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect,
mremap, msync, munlock, munlockall, munmap, remap_file_pages, and
set_mempolicy.
* defs.h (TRACE_MEMORY): New macro.
* syscall.c (lookup_class): Handle trace=memory option.
* strace.1: Document it.
* linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/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/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
2012-10-24 11:41:57 +09:00
{ 3 , TM , sys_mincore , " mincore " } , /* 375 */
2007-09-12 01:26:31 +00:00
{ 3 , 0 , printargs , " pciconfig_iobase " } , /* 376 */
{ 3 , TD , sys_getdents64 , " getdents64 " } , /* 377 */
2011-10-12 19:03:29 +00:00
{ 0 , 0 , sys_gettid , " gettid " } , /* 378 */
2013-05-07 01:25:11 +00:00
{ 3 , TD , sys_readahead , " readahead " } , /* 379 */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 380 */
2003-07-05 Richard Henderson <rth@twiddle.net>
* process.c (sys_clone): Order arguments for alpha the same as x86_64.
* syscall.c (ERESTART_RESTARTBLOCK): New.
(trace_syscall): Print it.
* linux/alpha/syscallent.h (osf_syscall): Name properly.
(osf_set_program_attributes): Fix typo.
(osf_nfssvc): Likewise.
(osf_sigsendset): Likewise.
(getdents64, gettid, readahead, tkill, setxattr, lsetxattr, fsetxattr,
getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr, futex, sched_setaffinity,
sched_getaffinity, tuxcall, io_setup, io_destroy, io_getevents,
io_submit, io_cancel, exit_group, lookup_dcookie, epoll_create,
epoll_ctl, epoll_wait, remap_file_pages, set_tid_address,
restart_syscall, fadvise, timer_create, timer_settime, timer_gettime,
timer_getoverrun, timer_delete, clock_settime, clock_gettime,
clock_getres, clock_nanosleep, semtimedop): New.
2003-07-09 09:47:59 +00:00
{ 2 , TS , sys_kill , " tkill " } , /* 381 */
{ 5 , TF , sys_setxattr , " setxattr " } , /* 382 */
{ 5 , TF , sys_setxattr , " lsetxattr " } , /* 383 */
2005-07-05 03:25:35 +00:00
{ 5 , TD , sys_fsetxattr , " fsetxattr " } , /* 384 */
2003-07-05 Richard Henderson <rth@twiddle.net>
* process.c (sys_clone): Order arguments for alpha the same as x86_64.
* syscall.c (ERESTART_RESTARTBLOCK): New.
(trace_syscall): Print it.
* linux/alpha/syscallent.h (osf_syscall): Name properly.
(osf_set_program_attributes): Fix typo.
(osf_nfssvc): Likewise.
(osf_sigsendset): Likewise.
(getdents64, gettid, readahead, tkill, setxattr, lsetxattr, fsetxattr,
getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr, futex, sched_setaffinity,
sched_getaffinity, tuxcall, io_setup, io_destroy, io_getevents,
io_submit, io_cancel, exit_group, lookup_dcookie, epoll_create,
epoll_ctl, epoll_wait, remap_file_pages, set_tid_address,
restart_syscall, fadvise, timer_create, timer_settime, timer_gettime,
timer_getoverrun, timer_delete, clock_settime, clock_gettime,
clock_getres, clock_nanosleep, semtimedop): New.
2003-07-09 09:47:59 +00:00
{ 4 , TF , sys_getxattr , " getxattr " } , /* 385 */
{ 4 , TF , sys_getxattr , " lgetxattr " } , /* 386 */
2011-02-20 19:50:28 +00:00
{ 4 , TD , sys_fgetxattr , " fgetxattr " } , /* 387 */
2003-07-05 Richard Henderson <rth@twiddle.net>
* process.c (sys_clone): Order arguments for alpha the same as x86_64.
* syscall.c (ERESTART_RESTARTBLOCK): New.
(trace_syscall): Print it.
* linux/alpha/syscallent.h (osf_syscall): Name properly.
(osf_set_program_attributes): Fix typo.
(osf_nfssvc): Likewise.
(osf_sigsendset): Likewise.
(getdents64, gettid, readahead, tkill, setxattr, lsetxattr, fsetxattr,
getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr, futex, sched_setaffinity,
sched_getaffinity, tuxcall, io_setup, io_destroy, io_getevents,
io_submit, io_cancel, exit_group, lookup_dcookie, epoll_create,
epoll_ctl, epoll_wait, remap_file_pages, set_tid_address,
restart_syscall, fadvise, timer_create, timer_settime, timer_gettime,
timer_getoverrun, timer_delete, clock_settime, clock_gettime,
clock_getres, clock_nanosleep, semtimedop): New.
2003-07-09 09:47:59 +00:00
{ 3 , TF , sys_listxattr , " listxattr " } , /* 388 */
{ 3 , TF , sys_listxattr , " llistxattr " } , /* 389 */
2011-02-20 19:50:28 +00:00
{ 3 , TD , sys_flistxattr , " flistxattr " } , /* 390 */
2003-07-05 Richard Henderson <rth@twiddle.net>
* process.c (sys_clone): Order arguments for alpha the same as x86_64.
* syscall.c (ERESTART_RESTARTBLOCK): New.
(trace_syscall): Print it.
* linux/alpha/syscallent.h (osf_syscall): Name properly.
(osf_set_program_attributes): Fix typo.
(osf_nfssvc): Likewise.
(osf_sigsendset): Likewise.
(getdents64, gettid, readahead, tkill, setxattr, lsetxattr, fsetxattr,
getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr, futex, sched_setaffinity,
sched_getaffinity, tuxcall, io_setup, io_destroy, io_getevents,
io_submit, io_cancel, exit_group, lookup_dcookie, epoll_create,
epoll_ctl, epoll_wait, remap_file_pages, set_tid_address,
restart_syscall, fadvise, timer_create, timer_settime, timer_gettime,
timer_getoverrun, timer_delete, clock_settime, clock_gettime,
clock_getres, clock_nanosleep, semtimedop): New.
2003-07-09 09:47:59 +00:00
{ 2 , TF , sys_removexattr , " removexattr " } , /* 391 */
{ 2 , TF , sys_removexattr , " lremovexattr " } , /* 392 */
2005-07-05 03:25:35 +00:00
{ 2 , TD , sys_fremovexattr , " fremovexattr " } , /* 393 */
2008-07-18 01:23:49 +00:00
{ 6 , 0 , sys_futex , " futex " } , /* 394 */
2003-07-05 Richard Henderson <rth@twiddle.net>
* process.c (sys_clone): Order arguments for alpha the same as x86_64.
* syscall.c (ERESTART_RESTARTBLOCK): New.
(trace_syscall): Print it.
* linux/alpha/syscallent.h (osf_syscall): Name properly.
(osf_set_program_attributes): Fix typo.
(osf_nfssvc): Likewise.
(osf_sigsendset): Likewise.
(getdents64, gettid, readahead, tkill, setxattr, lsetxattr, fsetxattr,
getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr, futex, sched_setaffinity,
sched_getaffinity, tuxcall, io_setup, io_destroy, io_getevents,
io_submit, io_cancel, exit_group, lookup_dcookie, epoll_create,
epoll_ctl, epoll_wait, remap_file_pages, set_tid_address,
restart_syscall, fadvise, timer_create, timer_settime, timer_gettime,
timer_getoverrun, timer_delete, clock_settime, clock_gettime,
clock_getres, clock_nanosleep, semtimedop): New.
2003-07-09 09:47:59 +00:00
{ 3 , 0 , sys_sched_setaffinity , " sched_setaffinity " } , /* 395 */
{ 3 , 0 , sys_sched_getaffinity , " sched_getaffinity " } , /* 396 */
2011-10-12 19:03:29 +00:00
{ 5 , 0 , sys_tuxcall , " tuxcall " } , /* 397 */
2005-05-09 08:02:00 +00:00
{ 2 , 0 , sys_io_setup , " io_setup " } , /* 398 */
{ 1 , 0 , sys_io_destroy , " io_destroy " } , /* 399 */
2013-02-17 01:37:35 +01:00
{ 5 , 0 , sys_io_getevents , " io_getevents " } , /* 400 */
2005-05-09 08:02:00 +00:00
{ 3 , 0 , sys_io_submit , " io_submit " } , /* 401 */
{ 3 , 0 , sys_io_cancel , " io_cancel " } , /* 402 */
2012-03-19 09:51:42 +01:00
{ 5 , 0 , NULL , NULL } , /* 403 */
{ 5 , 0 , NULL , NULL } , /* 404 */
unwind: add SE and SI flags to syscall entries for all architectures
Add SE flag to execve, exit, and exit_group syscall entries.
Add SI flag to brk, execve, mmap, mprotect, mremap, munmap,
remap_file_pages, shmat, and shmdt syscall entries.
2014-05-12 14:37:50 +00:00
{ 1 , TP | SE , sys_exit , " exit_group " } , /* 405 */
2013-03-05 13:59:45 +01:00
{ 3 , 0 , sys_lookup_dcookie , " lookup_dcookie " } , /* 406 */
2011-02-20 19:58:09 +00:00
{ 1 , TD , sys_epoll_create , " epoll_create " } , /* 407 */
2005-07-05 03:25:35 +00:00
{ 4 , TD , sys_epoll_ctl , " epoll_ctl " } , /* 408 */
{ 4 , TD , sys_epoll_wait , " epoll_wait " } , /* 409 */
unwind: add SE and SI flags to syscall entries for all architectures
Add SE flag to execve, exit, and exit_group syscall entries.
Add SI flag to brk, execve, mmap, mprotect, mremap, munmap,
remap_file_pages, shmat, and shmdt syscall entries.
2014-05-12 14:37:50 +00:00
{ 5 , TM | SI , sys_remap_file_pages , " remap_file_pages " } , /* 410 */
2011-10-12 19:03:29 +00:00
{ 1 , 0 , sys_set_tid_address , " set_tid_address " } , /* 411 */
2006-01-12 22:34:50 +00:00
{ 0 , 0 , sys_restart_syscall , " restart_syscall " } , /* 412 */
2013-05-07 02:27:50 +00:00
{ 4 , TD , sys_fadvise64 , " fadvise " } , /* 413 */
2003-07-05 Richard Henderson <rth@twiddle.net>
* process.c (sys_clone): Order arguments for alpha the same as x86_64.
* syscall.c (ERESTART_RESTARTBLOCK): New.
(trace_syscall): Print it.
* linux/alpha/syscallent.h (osf_syscall): Name properly.
(osf_set_program_attributes): Fix typo.
(osf_nfssvc): Likewise.
(osf_sigsendset): Likewise.
(getdents64, gettid, readahead, tkill, setxattr, lsetxattr, fsetxattr,
getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr, futex, sched_setaffinity,
sched_getaffinity, tuxcall, io_setup, io_destroy, io_getevents,
io_submit, io_cancel, exit_group, lookup_dcookie, epoll_create,
epoll_ctl, epoll_wait, remap_file_pages, set_tid_address,
restart_syscall, fadvise, timer_create, timer_settime, timer_gettime,
timer_getoverrun, timer_delete, clock_settime, clock_gettime,
clock_getres, clock_nanosleep, semtimedop): New.
2003-07-09 09:47:59 +00:00
{ 3 , 0 , sys_timer_create , " timer_create " } , /* 414 */
{ 4 , 0 , sys_timer_settime , " timer_settime " } , /* 415 */
{ 2 , 0 , sys_timer_gettime , " timer_gettime " } , /* 416 */
{ 1 , 0 , sys_timer_getoverrun , " timer_getoverrun " } , /* 417 */
{ 1 , 0 , sys_timer_delete , " timer_delete " } , /* 418 */
{ 2 , 0 , sys_clock_settime , " clock_settime " } , /* 419 */
{ 2 , 0 , sys_clock_gettime , " clock_gettime " } , /* 420 */
{ 2 , 0 , sys_clock_getres , " clock_getres " } , /* 421 */
{ 4 , 0 , sys_clock_nanosleep , " clock_nanosleep " } , /* 422 */
{ 5 , TI , sys_semtimedop , " semtimedop " } , /* 423 */
2004-10-19 23:23:59 +00:00
{ 3 , TS , sys_tgkill , " tgkill " } , /* 424 */
{ 2 , TF , sys_stat64 , " stat64 " } , /* 425 */
2005-03-15 02:17:10 +00:00
{ 2 , TF , sys_lstat64 , " lstat64 " } , /* 426 */
2005-07-05 03:25:35 +00:00
{ 2 , TD , sys_fstat64 , " fstat64 " } , /* 427 */
2011-10-12 19:03:29 +00:00
{ 5 , 0 , sys_vserver , " vserver " } , /* 428 ??? */
Add -e trace=memory option
Add a new 'memory' category for tracing memory mapping related syscalls.
Affected syscalls are: break, brk, get_mempolicy, madvise, mbind,
migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect,
mremap, msync, munlock, munlockall, munmap, remap_file_pages, and
set_mempolicy.
* defs.h (TRACE_MEMORY): New macro.
* syscall.c (lookup_class): Handle trace=memory option.
* strace.1: Document it.
* linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/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/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
2012-10-24 11:41:57 +09:00
{ 5 , TM , printargs , " mbind " } , /* 429 ??? */
{ 5 , TM , printargs , " get_mempolicy " } , /* 430 ??? */
{ 5 , TM , printargs , " set_mempolicy " } , /* 431 ??? */
2004-10-19 23:23:59 +00:00
{ 4 , 0 , sys_mq_open , " mq_open " } , /* 432 */
{ 1 , 0 , sys_mq_unlink , " mq_unlink " } , /* 433 */
{ 5 , 0 , sys_mq_timedsend , " mq_timedsend " } , /* 434 */
{ 5 , 0 , sys_mq_timedreceive , " mq_timedreceive " } , /* 435 */
{ 2 , 0 , sys_mq_notify , " mq_notify " } , /* 436 */
{ 3 , 0 , sys_mq_getsetattr , " mq_getsetattr " } , /* 437 */
2014-04-29 18:15:43 +00:00
{ 5 , TP , sys_waitid , " waitid " } , /* 438 */
2011-10-12 19:03:29 +00:00
{ 5 , 0 , sys_add_key , " add_key " } , /* 439 */
{ 4 , 0 , sys_request_key , " request_key " } , /* 440 */
{ 5 , 0 , sys_keyctl , " keyctl " } , /* 441 */
{ 3 , 0 , sys_ioprio_set , " ioprio_set " } , /* 442 */
{ 2 , 0 , sys_ioprio_get , " ioprio_get " } , /* 443 */
{ 0 , TD , sys_inotify_init , " inotify_init " } , /* 444 */
2006-10-13 Ulrich Drepper <drepper@redhat.com>
Bernhard Kaindl <bk@suse.de>
Dmitry V. Levin <ldv@altlinux.org>
Michael Holzheu <holzheu@de.ibm.com>
Add hooks for new syscalls. Add decoders for *at, inotify*,
pselect6, ppoll and unshare syscalls.
* defs.h: Declare print_sigset.
* desc.c (sys_pselect6): New function.
* file.c (decode_open, decode_access, decode_mkdir,
decode_readlink, decode_chmod, decode_utimes, decode_mknod):
New functions.
(sys_open, sys_access, sys_mkdir, sys_readlink, sys_chmod,
sys_utimes, sys_mknod): Use them.
[LINUX] (fstatatflags, unlinkatflags, inotify_modes): New
variables.
[LINUX] (print_dirfd, sys_openat, sys_faccessat,
sys_newfstatat, sys_mkdirat, sys_linkat, sys_unlinkat,
sys_symlinkat, sys_readlinkat, sys_renameat, sys_fchownat,
sys_fchmodat, sys_futimesat, sys_mknodat, sys_inotify_add_watch,
sys_inotify_rm_watch): New functions.
* process.c [LINUX] (sys_unshare): New function.
* signal.c (print_sigset): New function.
(sys_sigprocmask): Use it.
* stream.c (decode_poll): New function.
(sys_poll): Use it.
[LINUX] (sys_ppoll): New function.
* linux/syscall.h: Delcare new syscall handlers.
* linux/syscallent.h: Hook up new syscalls.
* linux/alpha/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Fixes RH#178633.
2006-10-13 20:25:12 +00:00
{ 3 , TD , sys_inotify_add_watch , " inotify_add_watch " } , /* 445 */
{ 2 , TD , sys_inotify_rm_watch , " inotify_rm_watch " } , /* 446 */
Update linux/*/syscallent.h files to match Linux kernel v2.6.33
* linux/alpha/syscallent.h: Add 47 hooks.
* linux/arm/syscallent.h: Update hooks for pselect6, ppoll,
epoll_pwait. Add 11 hooks.
* linux/bfin/syscallent.h: Update hooks for prctl, fallocate,
signalfd4, eventfd2, epoll_create1, dup3, pipe2, perf_event_open.
Hook up recvmmsg.
* linux/hppa/syscallent.h: Update hooks for signalfd4, eventfd2,
epoll_create1, dup3, pipe2, perf_event_open.
* linux/i386/syscallent.h: Fix syscall name for the kexec_load hook.
Add 5 hooks.
* linux/ia64/syscallent.h: Fix syscall name for the kexec_load hook.
Add 4 hooks.
* linux/m68k/syscallent.h: Add 50 hooks.
* linux/powerpc/syscallent.h: Fix hook for timerfd_create. Fix
6 syscall names to match the kernel. Use sys_semop to parse semop.
Add 14 hooks.
* linux/s390/syscallent.h: Fix syscall name for the kexec_load hook.
Add 14 hooks.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Add 13 hooks.
* linux/sh64/syscallent.h: Add 15 hooks.
* linux/sparc/syscallent.h: Add 22 hooks.
* linux/x86_64/syscallent.h: Add 5 hooks.
2010-04-05 23:44:48 +00:00
{ 1 , TD , sys_fdatasync , " fdatasync " } , /* 447 */
2011-10-12 19:03:29 +00:00
{ 4 , 0 , sys_kexec_load , " kexec_load " } , /* 448 */
Add -e trace=memory option
Add a new 'memory' category for tracing memory mapping related syscalls.
Affected syscalls are: break, brk, get_mempolicy, madvise, mbind,
migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect,
mremap, msync, munlock, munlockall, munmap, remap_file_pages, and
set_mempolicy.
* defs.h (TRACE_MEMORY): New macro.
* syscall.c (lookup_class): Handle trace=memory option.
* strace.1: Document it.
* linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/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/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
2012-10-24 11:41:57 +09:00
{ 4 , TM , sys_migrate_pages , " migrate_pages " } , /* 449 */
Update linux/*/syscallent.h files to match Linux kernel v2.6.33
* linux/alpha/syscallent.h: Add 47 hooks.
* linux/arm/syscallent.h: Update hooks for pselect6, ppoll,
epoll_pwait. Add 11 hooks.
* linux/bfin/syscallent.h: Update hooks for prctl, fallocate,
signalfd4, eventfd2, epoll_create1, dup3, pipe2, perf_event_open.
Hook up recvmmsg.
* linux/hppa/syscallent.h: Update hooks for signalfd4, eventfd2,
epoll_create1, dup3, pipe2, perf_event_open.
* linux/i386/syscallent.h: Fix syscall name for the kexec_load hook.
Add 5 hooks.
* linux/ia64/syscallent.h: Fix syscall name for the kexec_load hook.
Add 4 hooks.
* linux/m68k/syscallent.h: Add 50 hooks.
* linux/powerpc/syscallent.h: Fix hook for timerfd_create. Fix
6 syscall names to match the kernel. Use sys_semop to parse semop.
Add 14 hooks.
* linux/s390/syscallent.h: Fix syscall name for the kexec_load hook.
Add 14 hooks.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Add 13 hooks.
* linux/sh64/syscallent.h: Add 15 hooks.
* linux/sparc/syscallent.h: Add 22 hooks.
* linux/x86_64/syscallent.h: Add 5 hooks.
2010-04-05 23:44:48 +00:00
{ 4 , TD | TF , sys_openat , " openat " } , /* 450 */
{ 3 , TD | TF , sys_mkdirat , " mkdirat " } , /* 451 */
{ 4 , TD | TF , sys_mknodat , " mknodat " } , /* 452 */
{ 5 , TD | TF , sys_fchownat , " fchownat " } , /* 453 */
{ 3 , TD | TF , sys_futimesat , " futimesat " } , /* 454 */
2011-01-19 00:21:07 +00:00
{ 4 , TD | TF , sys_newfstatat , " newfstatat " } , /* 455 */
Update linux/*/syscallent.h files to match Linux kernel v2.6.33
* linux/alpha/syscallent.h: Add 47 hooks.
* linux/arm/syscallent.h: Update hooks for pselect6, ppoll,
epoll_pwait. Add 11 hooks.
* linux/bfin/syscallent.h: Update hooks for prctl, fallocate,
signalfd4, eventfd2, epoll_create1, dup3, pipe2, perf_event_open.
Hook up recvmmsg.
* linux/hppa/syscallent.h: Update hooks for signalfd4, eventfd2,
epoll_create1, dup3, pipe2, perf_event_open.
* linux/i386/syscallent.h: Fix syscall name for the kexec_load hook.
Add 5 hooks.
* linux/ia64/syscallent.h: Fix syscall name for the kexec_load hook.
Add 4 hooks.
* linux/m68k/syscallent.h: Add 50 hooks.
* linux/powerpc/syscallent.h: Fix hook for timerfd_create. Fix
6 syscall names to match the kernel. Use sys_semop to parse semop.
Add 14 hooks.
* linux/s390/syscallent.h: Fix syscall name for the kexec_load hook.
Add 14 hooks.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Add 13 hooks.
* linux/sh64/syscallent.h: Add 15 hooks.
* linux/sparc/syscallent.h: Add 22 hooks.
* linux/x86_64/syscallent.h: Add 5 hooks.
2010-04-05 23:44:48 +00:00
{ 3 , TD | TF , sys_unlinkat , " unlinkat " } , /* 456 */
{ 4 , TD | TF , sys_renameat , " renameat " } , /* 457 */
{ 5 , TD | TF , sys_linkat , " linkat " } , /* 458 */
{ 3 , TD | TF , sys_symlinkat , " symlinkat " } , /* 459 */
{ 4 , TD | TF , sys_readlinkat , " readlinkat " } , /* 460 */
{ 3 , TD | TF , sys_fchmodat , " fchmodat " } , /* 461 */
{ 3 , TD | TF , sys_faccessat , " faccessat " } , /* 462 */
{ 6 , TD , sys_pselect6 , " pselect6 " } , /* 463 */
{ 5 , TD , sys_ppoll , " ppoll " } , /* 464 */
{ 1 , TP , sys_unshare , " unshare " } , /* 465 */
2011-10-12 19:03:29 +00:00
{ 2 , 0 , sys_set_robust_list , " set_robust_list " } , /* 466 */
{ 3 , 0 , sys_get_robust_list , " get_robust_list " } , /* 467 */
2011-10-11 17:07:05 +00:00
{ 6 , TD , sys_splice , " splice " } , /* 468 */
2011-10-12 19:03:29 +00:00
{ 4 , TD , sys_sync_file_range , " sync_file_range " } , /* 469 */
2011-10-11 17:07:05 +00:00
{ 4 , TD , sys_tee , " tee " } , /* 470 */
{ 4 , TD , sys_vmsplice , " vmsplice " } , /* 471 */
Add -e trace=memory option
Add a new 'memory' category for tracing memory mapping related syscalls.
Affected syscalls are: break, brk, get_mempolicy, madvise, mbind,
migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect,
mremap, msync, munlock, munlockall, munmap, remap_file_pages, and
set_mempolicy.
* defs.h (TRACE_MEMORY): New macro.
* syscall.c (lookup_class): Handle trace=memory option.
* strace.1: Document it.
* linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/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/tile/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
2012-10-24 11:41:57 +09:00
{ 6 , TM , sys_move_pages , " move_pages " } , /* 472 */
Update linux/*/syscallent.h files to match Linux kernel v2.6.33
* linux/alpha/syscallent.h: Add 47 hooks.
* linux/arm/syscallent.h: Update hooks for pselect6, ppoll,
epoll_pwait. Add 11 hooks.
* linux/bfin/syscallent.h: Update hooks for prctl, fallocate,
signalfd4, eventfd2, epoll_create1, dup3, pipe2, perf_event_open.
Hook up recvmmsg.
* linux/hppa/syscallent.h: Update hooks for signalfd4, eventfd2,
epoll_create1, dup3, pipe2, perf_event_open.
* linux/i386/syscallent.h: Fix syscall name for the kexec_load hook.
Add 5 hooks.
* linux/ia64/syscallent.h: Fix syscall name for the kexec_load hook.
Add 4 hooks.
* linux/m68k/syscallent.h: Add 50 hooks.
* linux/powerpc/syscallent.h: Fix hook for timerfd_create. Fix
6 syscall names to match the kernel. Use sys_semop to parse semop.
Add 14 hooks.
* linux/s390/syscallent.h: Fix syscall name for the kexec_load hook.
Add 14 hooks.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Add 13 hooks.
* linux/sh64/syscallent.h: Add 15 hooks.
* linux/sparc/syscallent.h: Add 22 hooks.
* linux/x86_64/syscallent.h: Add 5 hooks.
2010-04-05 23:44:48 +00:00
{ 3 , 0 , sys_getcpu , " getcpu " } , /* 473 */
2011-11-25 23:19:47 +00:00
{ 6 , TD , sys_epoll_pwait , " epoll_pwait " } , /* 474 */
Update linux/*/syscallent.h files to match Linux kernel v2.6.33
* linux/alpha/syscallent.h: Add 47 hooks.
* linux/arm/syscallent.h: Update hooks for pselect6, ppoll,
epoll_pwait. Add 11 hooks.
* linux/bfin/syscallent.h: Update hooks for prctl, fallocate,
signalfd4, eventfd2, epoll_create1, dup3, pipe2, perf_event_open.
Hook up recvmmsg.
* linux/hppa/syscallent.h: Update hooks for signalfd4, eventfd2,
epoll_create1, dup3, pipe2, perf_event_open.
* linux/i386/syscallent.h: Fix syscall name for the kexec_load hook.
Add 5 hooks.
* linux/ia64/syscallent.h: Fix syscall name for the kexec_load hook.
Add 4 hooks.
* linux/m68k/syscallent.h: Add 50 hooks.
* linux/powerpc/syscallent.h: Fix hook for timerfd_create. Fix
6 syscall names to match the kernel. Use sys_semop to parse semop.
Add 14 hooks.
* linux/s390/syscallent.h: Fix syscall name for the kexec_load hook.
Add 14 hooks.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Add 13 hooks.
* linux/sh64/syscallent.h: Add 15 hooks.
* linux/sparc/syscallent.h: Add 22 hooks.
* linux/x86_64/syscallent.h: Add 5 hooks.
2010-04-05 23:44:48 +00:00
{ 4 , TD | TF , sys_utimensat , " utimensat " } , /* 475 */
{ 3 , TD | TS , sys_signalfd , " signalfd " } , /* 476 */
{ 4 , TD , sys_timerfd , " timerfd " } , /* 477 */
{ 1 , TD , sys_eventfd , " eventfd " } , /* 478 */
{ 5 , TN , sys_recvmmsg , " recvmmsg " } , /* 479 */
2013-05-07 08:18:44 +00:00
{ 4 , TD , sys_fallocate , " fallocate " } , /* 480 */
Update linux/*/syscallent.h files to match Linux kernel v2.6.33
* linux/alpha/syscallent.h: Add 47 hooks.
* linux/arm/syscallent.h: Update hooks for pselect6, ppoll,
epoll_pwait. Add 11 hooks.
* linux/bfin/syscallent.h: Update hooks for prctl, fallocate,
signalfd4, eventfd2, epoll_create1, dup3, pipe2, perf_event_open.
Hook up recvmmsg.
* linux/hppa/syscallent.h: Update hooks for signalfd4, eventfd2,
epoll_create1, dup3, pipe2, perf_event_open.
* linux/i386/syscallent.h: Fix syscall name for the kexec_load hook.
Add 5 hooks.
* linux/ia64/syscallent.h: Fix syscall name for the kexec_load hook.
Add 4 hooks.
* linux/m68k/syscallent.h: Add 50 hooks.
* linux/powerpc/syscallent.h: Fix hook for timerfd_create. Fix
6 syscall names to match the kernel. Use sys_semop to parse semop.
Add 14 hooks.
* linux/s390/syscallent.h: Fix syscall name for the kexec_load hook.
Add 14 hooks.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Add 13 hooks.
* linux/sh64/syscallent.h: Add 15 hooks.
* linux/sparc/syscallent.h: Add 22 hooks.
* linux/x86_64/syscallent.h: Add 5 hooks.
2010-04-05 23:44:48 +00:00
{ 2 , TD , sys_timerfd_create , " timerfd_create " } , /* 481 */
{ 4 , TD , sys_timerfd_settime , " timerfd_settime " } , /* 482 */
{ 2 , TD , sys_timerfd_gettime , " timerfd_gettime " } , /* 483 */
{ 4 , TD | TS , sys_signalfd4 , " signalfd4 " } , /* 484 */
{ 2 , TD , sys_eventfd2 , " eventfd2 " } , /* 485 */
2011-02-20 19:58:09 +00:00
{ 1 , TD , sys_epoll_create1 , " epoll_create1 " } , /* 486 */
Update linux/*/syscallent.h files to match Linux kernel v2.6.33
* linux/alpha/syscallent.h: Add 47 hooks.
* linux/arm/syscallent.h: Update hooks for pselect6, ppoll,
epoll_pwait. Add 11 hooks.
* linux/bfin/syscallent.h: Update hooks for prctl, fallocate,
signalfd4, eventfd2, epoll_create1, dup3, pipe2, perf_event_open.
Hook up recvmmsg.
* linux/hppa/syscallent.h: Update hooks for signalfd4, eventfd2,
epoll_create1, dup3, pipe2, perf_event_open.
* linux/i386/syscallent.h: Fix syscall name for the kexec_load hook.
Add 5 hooks.
* linux/ia64/syscallent.h: Fix syscall name for the kexec_load hook.
Add 4 hooks.
* linux/m68k/syscallent.h: Add 50 hooks.
* linux/powerpc/syscallent.h: Fix hook for timerfd_create. Fix
6 syscall names to match the kernel. Use sys_semop to parse semop.
Add 14 hooks.
* linux/s390/syscallent.h: Fix syscall name for the kexec_load hook.
Add 14 hooks.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Add 13 hooks.
* linux/sh64/syscallent.h: Add 15 hooks.
* linux/sparc/syscallent.h: Add 22 hooks.
* linux/x86_64/syscallent.h: Add 5 hooks.
2010-04-05 23:44:48 +00:00
{ 3 , TD , sys_dup3 , " dup3 " } , /* 487 */
{ 2 , TD , sys_pipe2 , " pipe2 " } , /* 488 */
{ 1 , TD , sys_inotify_init1 , " inotify_init1 " } , /* 489 */
2013-05-07 09:21:07 +00:00
{ 4 , TD , sys_preadv , " preadv " } , /* 490 */
{ 4 , TD , sys_pwritev , " pwritev " } , /* 491 */
2011-10-12 19:03:29 +00:00
{ 4 , TP | TS , sys_rt_tgsigqueueinfo , " rt_tgsigqueueinfo " } , /* 492 */
{ 5 , TD , sys_perf_event_open , " perf_event_open " } , /* 493 */
{ 2 , TD , sys_fanotify_init , " fanotify_init " } , /* 494 */
{ 5 , TD | TF , sys_fanotify_mark , " fanotify_mark " } , /* 495 */
{ 4 , 0 , sys_prlimit64 , " prlimit64 " } , /* 496 */
Add syscall entries for new linux syscalls
* linux/dummy.h: Add printargs parsers for new syscalls.
* linux/arm/syscallent.h: Add entries for sys_clock_adjtime,
sys_name_to_handle_at, sys_open_by_handle_at, sys_sendmmsg, sys_setns
and sys_syncfs.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/alpha/syscallent.h: Add entries for sys_clock_adjtime,
sys_name_to_handle_at, sys_open_by_handle_at, sys_setns and sys_syncfs.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Add entry for sys_setns.
* linux/bfin/syscallent.h: Add entries for sys_sendmmsg and sys_setns.
* linux/hppa/syscallent.h: Add entries for sys_clock_adjtime,
fanotify_init, fanotify_mark, sys_name_to_handle_at,
sys_open_by_handle_at, sys_sendmmsg, sys_setns and sys_syncfs.
2011-11-26 23:37:23 +00:00
{ 5 , TD | TF , sys_name_to_handle_at , " name_to_handle_at " } , /* 497 */
{ 3 , TD , sys_open_by_handle_at , " open_by_handle_at " } , /* 498 */
{ 2 , 0 , sys_clock_adjtime , " clock_adjtime " } , /* 499 */
{ 1 , TD , sys_syncfs , " syncfs " } , /* 500 */
{ 2 , TD , sys_setns , " setns " } , /* 501 */
2012-03-10 15:04:16 +00:00
{ 4 , TN , sys_accept4 , " accept4 " } , /* 502 */
{ 4 , TN , sys_sendmmsg , " sendmmsg " } , /* 503 */
2013-05-08 16:36:29 +00:00
{ 6 , 0 , sys_process_vm_readv , " process_vm_readv " } , /* 504 */
{ 6 , 0 , sys_process_vm_writev , " process_vm_writev " } , /* 505 */