summaryrefslogtreecommitdiffstats
path: root/tapset/syscalls.stp
Commit message (Collapse)AuthorAgeFilesLines
* Add inotify_init1() and inotify_add_watch() mask string support.Mark Wielaard2010-03-211-7/+20
| | | | | | | | * tapset/aux_syscalls.stp (_inotify_watch_mask_str): New helper function. (_inotify_init1_flag_str): Likewise. * tapset/syscalls.stp (inotify_add_watch): Stringify watch mask. (syscall.inotify_init[.return]): Add inotify_init1() support. * testsuite/systemtap.syscall/inotify.c: New test.
* Add support for eventfd2 to syscall.stp tapset.Mark Wielaard2010-03-211-6/+17
| | | | | | | * tapset/aux_syscalls.stp (_eventfd2_flag_str): New utility function. * tapset/syscalls.stp (syscall.eventfd[.return]): Add alternatives to handle eventfd2. * testsuite/systemtap.syscall/eventfd.c: New test.
* Add support for dup3 to syscall.stp tapset.Mark Wielaard2010-03-211-0/+43
| | | | | | * tapset/aux_syscalls.stp (_dup3_flag_str): New helper function. * tapset/syscalls.stp (syscall.dup2): Add alternatives to handle dup3 also. * testsuite/systemtap.syscall/dup.c: New testcase.
* Support epoll_create1 syscall.Mark Wielaard2010-03-211-6/+18
| | | | | | * tapset/aux_syscalls.stp (_epoll_create1_flag_str): New helper function. * tapset/syscalls.stp (syscall.epoll_create[.return]): Match epoll_creat1 if available.
* PR 11338 (partial): Used '@defined()' in syscall tapsets.David Smith2010-03-051-70/+29
| | | | | | | | | | * tapset/syscalls.stp: Used '@defined()' to remove kernel version checks. * tapset/syscalls2.stp: Ditto. * tapset/x86_64/syscalls.stp: Ditto. * tapset/nd_syscalls.stp: Updated to match tapset/syscalls.stp. * tapset/nd_syscalls2.stp: Updated to match tapset/syscalls2.stp. * tapset/x86_64/nd_syscalls.stp: Updated to match tapset/x86_64/syscalls.stp.
* Implement ppc32 variant of __is_user_regsAnton Vorontsov2009-12-011-0/+3
| | | | | | | * tapset/nd_syscalls.stp: Implement ppc32 variant of __is_user_regs. * tapset/syscalls.stp: Ditto. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
* PR 6691 fixed by adding support for sys_accept4.David Smith2009-11-021-5/+17
| | | | | | | | | | * tapset/aux_syscalls.stp(_sock_type_str): Rewrote in embedded-C and added socket flags support. (_sock_flags_str): New function. * tapset/syscalls.stp: syscall.accept prefers to use sys_accept4 when it exists. Added support for sys_accept4's 'flag' parameter. * testsuite/systemtap.syscall/net1.c (main): Updated regular expression to handle the new 'flags' argument.
* Add the .call modifier to syscall entry probes.Przemyslaw Pawelczyk2009-10-121-349/+349
| | | | | | | | | | | | | | | | | | | | Inline functions do not have an indentifiable return point and require kernel built using VTA-enabled gcc to get tracking of variables. OTOH syscall functions are very rarely inlined (depending on the compiler mood), therefore filtering probes to include only non-inlined functions ensures consistent behavior between different kernels. This removes the problem of inaccessible variables in inlined syscalls that is described in comments #6-9 to PR5890 and gives us the status quo w.r.t. syscall probing, because before the commit solving PR10572 (b7478964) inline instances were masked anyway by non-inline ones. You can check whether you have inlined syscalls using following command: $ stap -l 'kernel.function("sys_*"),kernel.function("compat_sys_*")' \ 2>&1 -vvv | awk '/^selected inline/{print $5}' * tapset/syscalls.stp: Add .call to all entry probes. * tapset/syscalls2.stp: Ditto.
* Move the "pure" tag into the body of __is_user_regsJosh Stone2009-05-221-1/+2
| | | | | | The "/* pure */" tag has no effect unless it is within the embedded-C body of a function. In this instance, they were accidentally moved out during the syscall cleanups.
* Fix alignment of probe aliases in syscalls(|2).stp.Przemyslaw Pawelczyk2009-05-191-381/+381
| | | | | | | Align probe points in probe aliases to equal sign using spaces as it's already done in nd_syscalls.stp. Signed-off-by: Josh Stone <jistone@redhat.com>
* Unify formatting of syscalls.stp and syscalls2.stp.Przemyslaw Pawelczyk2009-05-191-500/+653
| | | | | | | | | | | | | | | Rules: - Specify probe points for aliases starting from the alias declaration line and with one probe point per line. - Use K&R indent style -- probe alias/point/function opening brace goes to the line following the declaration, other opening braces are kept on the same line as the control statements. - Indent using tabs. - Surround operators with spaces. - Put spaces after commas. - Avoid trailing whitespaces. Signed-off-by: Josh Stone <jistone@redhat.com>
* Correct misnamed variables in syscalls.stp.Przemyslaw Pawelczyk2009-05-191-33/+27
| | | | | | | Rename variables accordingly to argument names used in man pages in syscall.(faccess|fchmod|fchown|link|mknod)at probe points. Signed-off-by: Josh Stone <jistone@redhat.com>
* Fix typo in mq_timedreceive probe point.Przemyslaw Pawelczyk2009-05-181-1/+1
| | | | * tapset/syscalls.stp: Rename abs_timout_uaddr to abs_timeout_uaddr.
* Correct fd variable name in fadvise64 probe points.Przemyslaw Pawelczyk2009-04-251-4/+4
| | | | * tapset/syscalls.stp: Rename fs variable to fd.
* Fix the syscall tapset for architectures using SYSCALL_WRAPPERSAnanth N Mavinakayanahalli2009-02-241-296/+562
|
* Handle a clone case which should behave like forkSrikar Dronamraju2008-11-211-1/+1
|
* Fix 2.6.27 detection.Mark Wielaard2008-09-151-10/+10
|
* Rename $path to $pathname of syscall tapset for 2.6.27Wenji Huang2008-08-041-7/+57
|
* syscalls.stp: Add sys_mknodat.Zhaolei2008-06-231-0/+21
|
* syscalls.stp: Add sys_linkat.Zhaolei2008-06-171-0/+28
|
* syscalls.stp: Add sys_fchownat.Zhaolei2008-06-131-0/+22
|
* syscalls.stp: Add sys_fchmodat.Zhaolei2008-06-111-0/+18
|
* syscalls.stp: Add sys_faccessat.Zhaolei2008-06-101-0/+18
|
* syscalls.stp(syscall.mkdirat): Use _dfd_str() to add support for AT_FDCWD.Zhaolei2008-06-101-1/+1
|
* Fix PR 6588Jim Keniston2008-06-041-3/+4
|
* 2008-01-25 Will Cohen <wcohen@redhat.com>wcohen2008-01-251-1/+1
| | | | | PR5554 * syscalls.stp (__is_user_regs): Modify to work with older kernels.
* 2008-01-23 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2008-01-241-1/+32
| | | | | | | PR5554 * syscalls.stp (__is_user_regs): Add new function to check whether pt_regs is user mode registers. (syscall.fork): Use __is_user_regs() to decide syscall name.
* 2007-12-17 Martin Hunt <hunt@redhat.com>hunt2007-12-171-17/+47
| | | | | | | * syscalls.stp (get_mempolicy): Fix syntax. Add prototype. (kexec_load): Ditto. (mbind): Ditto. (move_pages): Ditto.
* 2007-12-17 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-12-171-8/+24
| | | | | From Bai Weidong <baiwd@cn.fujitsu.com> * syscalls.stp: Add missed compat* probes in syscalls.stp.
* 2007-09-26 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-261-4/+16
| | | | | | | | From Lai Jiangshan <laijs@cn.fujitsu.com> * syscall.stp (syscall.brk): Add probe point kernel.function("ia64_brk") * syscall.stp (syscall.mremap): Add probe point kernel.function("ia64_mremap")
* 2007-09-26 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-261-1/+1
| | | | | | * syscalls.stp (adjtimex.return): Improve retstr. * aux_syscalls.stp: Add a function(_adjtimex_return_str) for adjtimex.return.
* 2007-09-21 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-211-1/+1
| | | | | | | | | | | 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-19 Martin Hunt <hunt@redhat.com>hunt2007-09-191-20/+20
| | | | | | | | | | | | | | | | PR 2295 * syscalls.stp (sys_bdflush): Make optional. (sys_madvise): Ditto. (sys_mincore): Ditto. (sys_mlock): Ditto. (sys_mlockall): Ditto. (sys_mprotect): Ditto. (sys_mremap): Ditto. (sys_msync): Ditto. (sys_munlock): Ditto. (sys_munlockall): Ditto. * syscalls2.stp (sys_remap_pages): Make optional. * ppc64/syscalls.stp (ppc_rtas): Make optional.
* 2007-09-19 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-191-1/+10
| | | | | * syscall.stp(getrusage) Fix the output of getrusage's argstr when who is set to -2.
* 2007-08-28 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-08-281-1/+5
| | | | | | * syscalls.stp (bdflush): Add comma between args in argstr. Set second parameter(data)'s type by first parameter(func)'s value in argstr.
* 2007-08-22 Martin Hunt <hunt@redhat.com>hunt2007-08-221-75/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-29/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 Frank Ch. Eigler <fche@elastic.org>fche2007-08-211-0/+10
| | | | | | From Cai Fei <caifei@cn.fujitsu.com>: * syscalls2.stp, syscalls.stp: Added several missing argstr/retstr variables.
* 2007-08-17 Martin Hunt <hunt@redhat.com>hunt2007-08-171-2/+1
| | | | | From Lai Jiangshan <laijs@cn.fujitsu.com> * syscalls.stp (creat): Fix argstr.
* 2007-08-16 Martin Hunt <hunt@redhat.com>hunt2007-08-161-5/+7
| | | | | | | | | | | | | | * 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 Martin Hunt <hunt@redhat.com>hunt2007-08-151-2/+10
| | | | | | | | | * 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.
* 2007-08-10 Frank Ch. Eigler <fche@elastic.org>fche2007-08-101-2/+2
| | | | | From "Zhaolei" zhaolei@cn.fujitsu.com: * syscalls.stp (msync.return): Correct name variable.
* 2007-08-09 William Cohen <wcohen@redhat.com>wcohen2007-08-091-2/+2
| | | | | | | | | * tapset/syscalls.stp (syscall.compat_execve, syscall.compat_execve.return): * tapset/syscalls2.stp (syscall.compat_sys_semtimedop, syscall.compat_sys_semtimedop.return): * tapset/i686/syscalls.stp (syscall.set_zone_reclaim, syscall.set_zone_reclaim.return): Make optional.
* 2007-07-31 Martin Hunt <hunt@redhat.com>hunt2007-07-311-2/+10
| | | | | | * syscalls.stp (clack_nanosleep): Fix flags string. * syscalls2.stp: Fix typo.
* 2007-07-31 Martin Hunt <hunt@redhat.com>hunt2007-07-311-83/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * */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-2/+2
| | | | (compat_sys_io_submit): Fix typo.
* 2007-07-16 Martin Hunt <hunt@redhat.com>hunt2007-07-161-43/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-101-98/+122
| | | | | | | | * 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-09 Martin Hunt <hunt@redhat.com>hunt2007-07-091-2/+2
| | | | * syscalls.stp (compat_sys_futimesat): Fix arg.
* 2007-07-03 Martin Hunt <hunt@redhat.com>hunt2007-07-031-0/+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.