summaryrefslogtreecommitdiffstats
path: root/tapset/aux_syscalls.stp
Commit message (Collapse)AuthorAgeFilesLines
* added test for 32-bit value of AT_FDCWDdwilder2007-10-151-1/+2
|
* 2007-10-10 Martin Hunt <hunt@redhat.com>hunt2007-10-101-2/+5
| | | | | * aux_syscalls.stp (_stp_lookup_str): When defaulting to a numeric value, append, don't overwrite.
* 2007-10-10 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-10-091-0/+4
| | | | | | From Lai Jiangshan <laijs@cn.fujitsu.com> * aux_syscalls.stp (_stp_lookup_or_str) redirect to _stp_lookup_str if val is 0.
* 2007-10-09 Martin Hunt <hunt@redhat.com>hunt2007-10-091-0/+4
| | | | | | PR5153 * aux_syscalls.stp (_sighandler_str): No sa_restorer field for IA64.
* 2007-10-09 Martin Hunt <hunt@redhat.com>hunt2007-10-091-1/+12
| | | | | | | | | * syscalls2.stp (sys_signal): Call _sighandler_str(). * aux_syscalls.stp (_stp_sigset_str): Don't include SIG_0. (_sighandler_str): New.
* 2007-10-05 Martin Hunt <hunt@redhat.com>hunt2007-10-051-0/+8
| | | | | * aux_syscalls.stp: Put #ifdef CONFIG_COMPAT around compat code.
* 2007-10-05 Martin Hunt <hunt@redhat.com>hunt2007-10-051-50/+78
| | | | | | | | | | | | | | * syscalls2.stp (rt_sigaction, sigaction): Call _struct_sigaction_u(). * aux_syscalls.stp (_struct_timeval): Removed. No longer necessary now that we have structure access in scripts. (_struct_timespec): Ditto. (_struct_itimerval): Ditto. (_struct_timezone_u): Remove random CATCH_DEREF_FAULT() line. (_stp_sigset_str): New. (_struct_sigaction_u): New.
* 2007-10-03 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-10-031-0/+4
| | | | | | * aux_syscalls.stp(_sockopt_level_str): Add support for protocol number 134~137. * socket.stp (global define,begin): Ditto.
* 2007-10-01 Martin Hunt <hunt@redhat.com>hunt2007-10-011-1/+1
| | | | | * aux_syscalls.stp (_str_lookup_str): Print unmatched values in hex.
* 2007-09-27 Martin Hunt <hunt@redhat.com>hunt2007-09-271-286/+254
| | | | | | | | | | | | | | * aux_syscalls.stp (_stp_lookup_str, _stp_lookup_or_str): New functions to efficiently and safely read arrays of values and return a string. (_signal_name): Reimplement using _stp_lookup_str(). (_semctl_cmd): Ditto. (__fork_flags): Ditto. (_mmap_flags): Ditto. (_mprotect_prot_str): Ditto. (_shmat_flags_str): Ditto. (_at_flag_str): Ditto. (get_mmap_args): Complete rewrite for safety and correctness.
* 2007-09-26 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-261-0/+21
| | | | | | * syscalls.stp (adjtimex.return): Improve retstr. * aux_syscalls.stp: Add a function(_adjtimex_return_str) for adjtimex.return.
* 2007-09-25 Martin Hunt <hunt@redhat.com>hunt2007-09-251-1/+3
| | | | | * aux_syscalls.stp (_struct_compat_timeval_u): ifdef CONFIG_COMPAT so buildok test will pass.
* Add missing CATCH_DEREF_FAULT()s.fche2007-09-241-0/+4
|
* 2007-09-24 Martin Hunt <hunt@redhat.com>hunt2007-09-241-0/+2
| | | | | * aux_syscalls.stp (_at_flag_str): Add some more flags. * syscalls2.stp (openat): Call _dfd_str().
* 2007-09-21 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-211-0/+9
| | | | | | | | | | | From Lai Jiangshan <laijs@cn.fujitsu.com> * aux_syscalls.stp (_sys_open_flag_str): Fix bug that missing "O_ASYNC". From Lai Jiangshan <laijs@cn.fujitsu.com> * aux_syscalls.stp: Add a function _mremap_flags. * syscalls.stp (syscall.mremap): Use _mremap_flags instead of _mmap_flags.
* 2007-09-21 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-211-8/+31
| | | | | * aux_syscalls.stp(_reboot_magic_str) Fix the problem that LINUX_REBOOT_MAGIC1 printed as UNKNOWN VALUE.
* 2007-09-13 Martin Hunt <hunt@redhat.com>hunt2007-09-131-2/+2
| | | | * aux_syscalls.stp: Replace get_user calls with __stp_get_user.
* 2007-09-06 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-061-14/+15
| | | | | * aux_syscalls.stp (_stp_sockaddr_str): Fix memory access error when calling with addrlen set to 0.
* 2007-09-06 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-061-5/+13
| | | | | * aux_syscalls.stp (_module_flags_str): Modify combination of flags' values.
* 2007-08-31 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-08-311-5/+5
| | | | | | From Lai Jiangshan <laijs@cn.fujitsu.com> * aux_syscalls.stp (_mknod_mode_str): Fix file type judgement error.
* 2007-08-23 Martin Hunt <hunt@redhat.com>hunt2007-08-231-2/+2
| | | | | | * aux_syscalls.stp (_struct_compat_timeval_u): Fix array reference. (_struct_compat_timespec_u): Cast args to long.
* 2007-08-23 Martin Hunt <hunt@redhat.com>hunt2007-08-231-0/+8
| | | | | | | From Cai Fei <caifei@cn.fujitsu.com> * aux_syscalls.stp (_waitid_opt_str): New. (_wait4_opt_str): Just handle wait4 options. * syscalls2.stp (sys_waitid): Use _waitid_opt_str.
* 2007-08-21 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-08-231-1/+2
| | | | | | | * aux_syscalls.stp (_send_flags_str): Add support for MSG_MORE (used in send, sendto, sendmsg and compat_sys_sendmsg). Change name of _send_flags_str to _sendflags_str for unify with _recvflags_str.
* 2007-08-22 Martin Hunt <hunt@redhat.com>hunt2007-08-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ppc64/syscalls.stp: Remove a bunch of non-ppc64 specific probes. * syscalls.stp (compat_sys_epoll_ctl): New. (compat_sys_epoll_wait): New. (sys_epoll_pwait): New. (compat_sys_epoll_pwait): New. (compat_sys_keyctl): New. (compat_sys_mq_open): New. (compat_sys_futex): New. (compat_sys_mq_timedsend): New. (compat_sys_mq_timedreceive): New. (compat_sys_mq_notify): New. (compat_sys_mq_getsetattr): New. (init_module): Make optional and quote args. (sys_eventfd): New. * syscalls2.stp (sys_splice): New. (sys_vmsplice): New. (compat_sys_vmsplice): New. (sys_tee): New. (sys_signalfd): New. (compat_sys_signalfd): New. (sys_timerfd): New. (compat_sys_timerfd): New. (old32_readdir): New.
* 2007-08-22 Martin Hunt <hunt@redhat.com>hunt2007-08-221-57/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * aux_syscalls.stp (_utimensat_flag_str): New. (_dfd_str): New. (_struct_timeval2_u): Deleted. (_struct_timeval_u): Take a number of structs to decode. (_struct_compat_timeval2_u): Deleted (_struct_compat_timeval_u): Take a number of structs to decode. (_struct_timespec_u): Take a number of structs to decode. Recognize UTIME_NOW and UTIME_OMIT. (_struct_compat_timespec_u): Ditto. * syscalls.stp (compat_sys_old_getrlimit): Removed. (sys_migrate_pages): New. (sys_move_pages): New. * syscalls2.stp (compat_sys_sigprocmask): Removed. Calls sys_sigprocmask. (compat_sys_sysinfo): New. (compat_sys_rt_sigtimedwait): New. (sys_utimensat, compat_sys_utimensat): New. * ppc64/syscalls.stp (compat_sys_sigpending): Removed. Calls sys_ func. (compat_sys_setrlimit): Ditto. (compat_sys_getrlimit): Ditto. (compat_sys_old_getrlimit): Ditto. (compat_sys_getrusage): Ditto. (compat_sys_wait4): Ditto. (compat_sys_sched_setaffinity): Ditto. (compat_sys_sched_getaffinity): Ditto.
* 2007-08-21 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-08-211-0/+1
| | | | | * aux_syscalls.stp (_recvflags_str): Add support for MSG_DONTWAIT used in recv, recvfrom, recvmsg, compat_sys_recvmsg
* 2007-08-16 Martin Hunt <hunt@redhat.com>hunt2007-08-161-2/+3
| | | | | | | | * aux_syscalls.stp (_sock_family_str): Add PF_IUCV, PF_RXRPC, PF_TIPC. From zhaolei@cn.fujitsu.com Remove PF_UNIX. PF_LOCAL is correct.
* 2007-08-16 Martin Hunt <hunt@redhat.com>hunt2007-08-161-4/+5
| | | | | | | | | | | | | | * aux_syscalls.stp (__get_argv): Add parameter to optionally skip the first argv (argv[0]). (__get_compat_argv): Ditto. * syscalls.stp (execve): Set args to the whole argv. For argstr use filename plus argv starting at [1]. (compat_execve): Ditto. * ppc64/syscalls.stp (sys32_exevve): Ditto. From Cai Fei <caifei@cn.fujitsu.com> * syscalls.stp (sts_getpgid): Add pid arg.
* 2007-08-15 Wenji Huang <wenji.huang@oracle.com>wenji2007-08-161-35/+54
| | | | | | * aux_syscalls.stp(_reboot_flag_str,_futex_op_str,_mprotect_prot_str, _fcntl_cmd_str, _quotaclt_cmd_str, _sock_type_str, _rlimit_resource_str, _rusage_who_str): Add new entries, modify default return string."
* 2007-08-15 Martin Hunt <hunt@redhat.com>hunt2007-08-151-0/+55
| | | | | | | | | * x86_64/syscalls.stp: Add support for sys32_mmap[2], sys32_vm86_warning, and sys32_pipe. * s390x/syscalls.stp (get_mmap_args): Move to aux_syscalls. * aux_syscalls.stp (get_mmap_args): Moved here. * syscalls.stp: Add sys32_alarm. * syscalls2.stp: Add sys32_uname.
* add entries to _sched_policy_str,_nfsctl_cmd_strwenji2007-08-131-1/+4
|
* 2007-08-10 Frank Ch. Eigler <fche@elastic.org>fche2007-08-101-0/+2
| | | | | From "Zhaolei" zhaolei@cn.fujitsu.com: * aux_syscalls.stp (_sockopt_optname_str): Add SO_SND/RCVBUFFORCE.
* 2007-08-09 Frank Ch. Eigler <fche@elastic.org>fche2007-08-091-0/+6
| | | | | From Cai Fei <caifei@cn.fujitsu.com>: * aux_syscalls.stp (__fork_flags): Decode CLONE_VM, NEWNS, DETACHED.
* 2007-08-08 Frank Ch. Eigler <fche@elastic.org>fche2007-08-081-1/+1
| | | | | From "Zhaolei" zhaolei@cn.fujitsu.com: * aux_syscalls.stp (_sockopt_level_str): Correct level=1 string.
* 2007-08-03 Martin Hunt <hunt@redhat.com>hunt2007-08-031-1/+1
| | | | * aux_syscalls.stp (__get_compat_argv): Add cast.
* 2007-07-31 Martin Hunt <hunt@redhat.com>hunt2007-07-311-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * */syscalls.stp: Added mmap functions. Continued moving common compatibility functions to the main tapset. * aux_syscalls.stp (_shmat_flags_str): New. (__get_compat_argv): New. * syscalls.stp (adjtimex): Just print hex argument. (compat_adjtimex): New. (clock_getres): Also probe compat_clock_getres. (clock_gettime): Also probe compat funcs. (compat_clock_nanosleep): New. (compat_execve): New. (fstatat): New. (get[e][gu]id): Also probe sys32. (getsockopt): Make optional. Also probe compat. (mmap, mmap2): These are arch-specific, so move to individual architecture subdirs. (compat_sys_msgctl): New. (compat_sys_msgrcv): New. (compat_sys_msgsnd): New. * syscalls.stp (pread32): Remove. It calls pread64 . (quotactl): Make optional. (recv): Probe correct function. (recvfrom): Fix args. (compat_sys_recvmsg): New. (semctl): Make optional. (compat_sys_semctl): New. (semget): Make optional. (semop): Make optional. (semtimedop): Make optional. (compat_sys_semtimedop): New. (send): Make optional. (sendmsg): Make optional. (compat_sys_sendmsg): New. (sendto): Make optional. (setsockopt): Make optional. Add compat. (shmat): New. (compat_sys_shmat): New. (shmctl): New. (compat_sys_shmctl): New. (shmdt): New. (shmget): New. (shutdown): Make optional. (socket): Make optional. (socketpair): Make optional. (swapoff): Make optional. (swapon): Make optional. (sysctl): Add probe on sys32.
* 2007-07-16 Martin Hunt <hunt@redhat.com>hunt2007-07-161-16/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * syscalls.stp (compat_sys_fcntl64, compat_sys_fcntl): Add. (compat_sys_fstatfs64): Add. (compat_sys_getdents, compat_sys_getdents64): Add. (compat_sys_ioctl): Add. (compat_sys_io_getevents): Add. (compat_sys_io_setup): Add. (compat_sys_io_submit): Add. * syscalls2.stp (compat_sys_nfsservctl): Add. (sys_openat): Add. (sys_ppoll): Add; (compat_sys_ppoll): Add. (sys32_pread64): Add. (sys32_pwrite32): Add. (sys_pwrite64): Print quoted string. (sys_pselect6, compat_sys_pselect6): Add. (sys_pselect7, compat_sys_pselect7): Add. (compat_sys_old_readdir): Add. (sys_select): Don't try to print fd_sets. (compat_sys_select): Add. (compat_sys_statfs64): Add. * ppc/syscalls.stp: Remove duplicated probes. * aux_syscalls.stp (_nfsctl_cmd_str): New. (_fd_set_u): Removed. Not used.
* 2007-07-10 Martin Hunt <hunt@redhat.com>hunt2007-07-111-2/+2
| | | | | * aux_syscalls.stp (_struct_compat_timeval2_u): Fixes.
* 2007-07-10 Martin Hunt <hunt@redhat.com>hunt2007-07-101-13/+40
| | | | | | | | * syscall*.stp: Major reorganization work. * aux_syscalls.stp (_sigprocmask_how_str): Rewrite in C so real arch-dependent header files will be used. (_mlockall_flags_str): Ditto.
* 2007-07-03 Martin Hunt <hunt@redhat.com>hunt2007-07-031-1/+33
| | | | | | | * syscalls.stp: Add sys_futimesat, compat_sys_futimesat. * syscalls2.stp (utimes): Use _struct_timeval2_u. * aux_syscalls.stp (_struct_timeval2_u): New function. (_struct_compat_timeval2_u): New function.
* 2007-06-07 Martin Hunt <hunt@redhat.com>hunt2007-06-071-4/+3
| | | | | | | | | | Fallout from PR 3331 fix. Sometimes glibc and the kernel disagree about signed vs unsigned. * aux_syscalls.stp: Rename __uid() to __int32(). * syscalls.stp: Change syscall.chown, syscall.fchown, syscall.lchown, and syscall.lseek to use __int32(). * syscalls2.stp: Change syscall.setregid, syscall.resgid, syscall.resuid, and syscall.setreuid to use __int32().
* 2007-04-11 Martin Hunt <hunt@redhat.com>hunt2007-04-111-0/+1
| | | | * aux_syscalls.stp: Add in6.h include.
* 2007-04-10 Martin Hunt <hunt@redhat.com>hunt2007-04-101-2/+3
| | | | | | * logging.stp (print_char): New function. * aux_syscalls.stp: Clean up network includes.
* 2007-02-06 Josh Stone <joshua.i.stone@intel.com>jistone2007-02-071-30/+16
| | | | | | | | | | | | | | | | | | | | | | | | | * aux_syscalls.stp, inet_sock.stp, ioblock.stp, ioscheduler.stp, nfs.stp, nfs_proc.stp, nfsd.stp, rpc.stp, scsi.stp, signal.stp, socket.stp, task.stp, tcp.stp, vfs.stp: Protect pointer dereferences with kread wherever possible. Some places still have hazards, as marked with FIXMEs. * errno.stp (returnstr): Don't use return in tapset C functions. * aux_syscalls.stp (__uget_timex_m): Ditto. * nfsd.stp (__get_fh): Ditto. * nfs.stp, vfs.stp (<many functions>): Ditto. * string.stp (substr): Ditto. Also make sure start index is valid. * syscalls.stp (syscall.execve): Change __string to kernel_string. LKET/ * nfs.stp, nfs_proc.stp, nfsd.stp, process.stp, tskdispatch.stp: Protect pointer dereferences with kread wherever possible. Some places still have hazards, as marked with FIXMEs. * aio.stp (log_io_getevents): Don't use return in tapset C functions. * timestamp.stp (set_timing_method): Ditto. * utils.stp (filter_by_pid): Ditto.
* In _stp_sockaddr_str() s390x needs sockaddr_ll.sll_addr printed as a long ↵dwilder2007-01-181-1/+1
| | | | int instead of long long int.
* *** empty log message ***hunt2006-07-211-1/+74
|
* *** empty log message ***hunt2006-07-111-16/+25
|
* 2006-06-26 Martin Hunt <hunt@redhat.com>hunt2006-06-261-1/+55
| | | | | * aux_syscalls.stp (_stp_ctime): New function. (_struct_utimbuf_u): New function.
* *** empty log message ***hunt2006-06-141-0/+5
|
* fix _recvflags_strhien2006-06-061-2/+2
|