summaryrefslogtreecommitdiffstats
path: root/tapset/syscalls2.stp
Commit message (Collapse)AuthorAgeFilesLines
* Fix pipe syscall name in return probe.Mark Wielaard2010-03-241-1/+5
| | | | | * tapset/syscalls2.stp (syscall.pipe.return): If @defined($flags) then use it to determine correct name.
* Removed unneeded convenience variables in syscall.pipe.return.David Smith2010-03-231-5/+1
| | | | | * tapset/syscalls2.stp: Removed unneeded 'flags' and 'flag_str' convenience variables in syscall.pipe.return probe.
* Support signalfd4 in syscalls2.stp tapset.Mark Wielaard2010-03-211-5/+17
| | | | | | | * tapset/aux_syscalls.stp (_signalfd4_flags_str): New utility function. * tapset/syscalls2.stp (syscall.signalfd[.return]): Handle signalfd4 variant when available. * testsuite/systemtap.syscall/signalfd.c: New test.
* Add ia64 pipe result support. Relax pipe syscall test a little.Mark Wielaard2010-03-191-1/+17
| | | | | | * tapset/syscalls2.stp (syscall.pipe.return): ia64 provides pipe0, pipe1 results through (user) registers. * testsuite/systemtap.syscall/pipe.c: Only expect zero as input fildes.
* Merge syscall.pipe and syscall.pipe2 to get around "nesting".Mark Wielaard2010-03-191-41/+24
| | | | | * tapset/syscalls2.stp (syscall.pipe[2][.return]): Merge into syscall.pipe and syscall.pipe.return. Set name according to flags.
* Reindent syscall2.stp pipe[2][.return] to follow unify formatting rules.Mark Wielaard2010-03-191-72/+54
| | | | See commit c0c1cc.
* PR11402 Support pipe2 syscall.Mark Wielaard2010-03-191-0/+40
| | | | | | | | | The pipe2() was added to Linux in version 2.6.27. It is a variant of the normal pipe syscall, but takes an extra flags argument which can be the ORed value of O_NONBLOCK and O_CLOEXEC. * tapset/aux_syscalls.stp (_sys_pipe2_flag_str:string): New helper function. * tapset/syscalls2.stp (syscall.pipe2, syscall.pipe2.return): New probes.
* Make pipe file descriptors available in syscall.pipe[.return].Mark Wielaard2010-03-191-1/+34
| | | | | | | | | | | The actual value of the pipe file descriptors can be interesting, especially in the syscall.pipe.return probe. This can be done without any embedded C now using @cast. So don't use _fildes_u() anymore. _fildes_u in aux_syscall.stp is still retained because it is used in nd_syscalls2.stp for pipe. * tapset/syscalls2.stp (syscall.pipe, syscall.pipe.return): Add pipe1 pipe2 convenience variables. Don't use _fildes_u for argstr anymore.
* Use @defined() in syscall.pipe to select whether fildes_uaddr is available.Mark Wielaard2010-03-191-20/+10
| | | | | | * tapset/aux_syscalls.stp (syscall.pipe): Remove architecture dependent probe definitions. Newer gcc make $fildes available on more arches. Use @defined($fildes) to select on which ones.
* Fixed BZ 568032 by adding support for sys_ia64_pipe.David Smith2010-03-181-2/+9
| | | | | * tapset/syscalls2.stp: Added support for 'sys_ia64_pipe' so that the syscall.pipe probe works correctly under RHEL5.5.
* PR 11338 (partial): Used '@defined()' in syscall tapsets.David Smith2010-03-051-58/+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.
* PR 11167 fixed by adding compat_sys_sigaction to the syscall.sigaction32 probe.David Smith2010-01-131-2/+4
| | | | | | * tapset/syscalls2.stp (syscall.sigaction32): Added kernel.function("compat_sys_sigaction"). (syscall.sigaction32.return): Ditto.
* Fix PR11160 by handling ppc syscall.sigaction32 correctly.David Smith2010-01-131-1/+1
| | | | | | | | | | * tapset/aux_syscalls.stp (_struct_old_sigaction32_u): New function. * tapset/syscalls2.stp (syscall.sigaction32): Uses new _struct_old_sigaction32() function to provide a human readable version of the sigaction argument. * testsuite/systemtap.syscall/test.tcl (run_one_test): Use additional C flags when pre-processing test files to better determine which tests are valid on which platforms.
* Fixed PR 11163 so that syscall.readv/syscall.writev puts fd in argstr for ppc.David Smith2010-01-121-10/+0
| | | | | | | | * tapset/syscalls2.stp (syscall.readv): Removed old ppc hack. (syscall.writev): Ditto. * tapset/nd_syscalls2.stp (nd_syscall.readv): Removed mention of old ppc hack. (nd_syscall.writev): Ditto.
* Fixed PR 11162 by removing extra 'buf_uaddr' assignment.David Smith2010-01-121-1/+0
| | | | | * tapset/syscalls2.stp (syscall.pwrite32): Remove extra 'buf_uaddr' assignment.
* PR5434: Fix syscall.nfsservctl.Przemyslaw Pawelczyk2009-10-131-0/+8
| | | | | | | | Use proper $vars according to CONFIG_NFSD and CONFIG_COMPAT in syscall.nfsservctl and mask it out along with return probe if CONFIG_NFSD != "[ym]" && CONFIG_COMPAT != "y". * tapset/syscalls2.stp (syscall.nfsservctl): Fix it.
* Add the .call modifier to syscall entry probes.Przemyslaw Pawelczyk2009-10-121-355/+355
| | | | | | | | | | | | | | | | | | | | 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.
* PR10613 sys32_ustat is renamed compat_sys_ustat in 2.6.30 kernel.Mark Wielaard2009-09-071-1/+11
| | | | | | | | | | Note that the new compat_sys_ustat is asmlinkage and has a differently named argument for the user struct. * tapset/syscalls2.stp (syscall.ustat32): Add compat_sys_ustat variant. (syscall.ustat.return): Likewise. * tapset/nd_syscalls2.stp (nd_syscall.ustat32): Likewise. (nd_syscall.ustat.return): Likewise.
* PR4186 cont'd: option #2: standardize on kernel ARCH/SUBARCH throughoutFrank Ch. Eigler2009-08-251-3/+3
| | | | | | | | * main.cxx (main): Perform equivalent sed by hand on uname()->machine. * stap.1.in: Clarify -a ARCH slightly. * tapsets.cxx (validate_module_elf): Accept "arm*"for EM_ARM. * tapset/**, testsuite/**: Removed/collapsed "i386"/"i686" branches, renamed "ppc64"->"powerpc" and "s390x"->"s390".
* Fix alignment of probe aliases in syscalls(|2).stp.Przemyslaw Pawelczyk2009-05-191-355/+355
| | | | | | | 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-559/+754
| | | | | | | | | | | | | | | 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>
* Fix the syscall tapset for architectures using SYSCALL_WRAPPERSAnanth N Mavinakayanahalli2009-02-241-268/+533
|
* Don't use pointer_arg to fetch arguments for syscall utime and compat_utime.Mark Wielaard2008-10-231-8/+8
|
* Transform struct sigaction32 to struct sigaction for rt_sigaction32 syscall.Mark Wielaard2008-10-071-1/+2
|
* Fix 2.6.27 detection.Mark Wielaard2008-09-151-6/+6
|
* Rename $path to $pathname of syscall tapset for 2.6.27Wenji Huang2008-08-041-6/+39
|
* * syscalls2.stp: Add sys_unlinkat.Zhaolei2008-07-251-0/+19
|
* syscalls2.stp: Add sys_symlinkat.Zhaolei2008-07-181-0/+22
|
* syscalls2.stp: Add sys_renameat.Zhaolei2008-06-261-0/+23
|
* syscalls2.stp: Add sys_unshare.Zhaolei2008-06-041-0/+14
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapFrank Ch. Eigler2008-05-211-8/+8
|\ | | | | | | | | | | * 'master' of ssh://sources.redhat.com/git/systemtap: Use pointer_arg to fetch arguments for syscall.utime and compat_utime. Optimize compound and binary expression assignments.
| * Use pointer_arg to fetch arguments for syscall.utime and compat_utime.Mark Wielaard2008-05-211-8/+8
| |
* | PR6538: tapset changesFrank Ch. Eigler2008-05-201-1/+1
|/
* PR5001: Remove _stp_ctime and always use ctime.Mark Wielaard2008-05-201-4/+8
|
* 2008-03-11 Will Cohen <wcohen@redhat.com>wcohen2008-03-111-4/+4
| | | | * syscalls2.stp (syscall.wait{4|id}): Correct for 2.6.24.n kernels.
* 2008-02-26 Srinivasa DS<srinivasa@in.ibm.com> PR 5772,srinivasa2008-02-261-22/+8
| | | | | tapset/syscall2.stp: to modify argument list of waitid,wait4 for kernel > 2.6.24
* Fix for bug#5772srinivasa2008-02-251-3/+19
|
* 2007-12-12 Martin Hunt <hunt@redhat.com>hunt2007-12-121-13/+5
| | | | | * syscalls2.stp (compat_sys_ptrace): Remove for now. Utrace-patched kernels have a different compat_sys_ptrace().
* 2007-12-7 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-12-071-6/+24
| | | | | From Yang Zhiguo <yzgcsu@cn.fujitsu.com> * syscalls2.stp: Add missed compat* probes in syscalls2.stp.
* 2007-11-21 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-11-211-2/+4
| | | | | | From Bai Weidong <baiwd@cn.fujitsu.com> * syscalls2.stp (rt_sigsuspend): Fix the semantic error caused by the difference of kernel versions on IA64.
* 2007-11-12 Martin Hunt <hunt@redhat.com>hunt2007-11-121-1/+1
| | | | | * syscalls2.stp (sys_remap_file_pages: : Change kernel version check to >= 2.6.24.
* 2007-11-1 Will Cohen <wcohen@redhat.com>wcohen2007-11-011-0/+4
| | | | | * syscall2.stp (sys_remap_file_pages): Fix compile error with kernel version greater than 2.6.23.
* 2007-10-09 Martin Hunt <hunt@redhat.com>hunt2007-10-091-1/+1
| | | | | | | | | * 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-33/+31
| | | | | | | | | | | | | | * 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-09-25 Martin Hunt <hunt@redhat.com>hunt2007-09-251-2/+2
| | | | * syscalls2.stp (sys_readlinkat): Make optional.
* 2007-09-24 Martin Hunt <hunt@redhat.com>hunt2007-09-241-13/+9
| | | | | * aux_syscalls.stp (_at_flag_str): Add some more flags. * syscalls2.stp (openat): Call _dfd_str().
* 2007-09-23 Ulrich Drepper <drepper@redhat.com>fche2007-09-231-1/+24
| | | | * syscalls2.stp (readlinkat): Add.
* 2007-09-19 Martin Hunt <hunt@redhat.com>hunt2007-09-191-4/+4
| | | | | | | | | | | | | | | | 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-04 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-09-041-2/+3
| | | | | | From Lai Jiangshan <laijs@cn.fujitsu.com> * syscalls2.stp (quotactl): Init special_str before use. (rt_sigqueueinfo): Change pid's type from %p to %d in argstr.
* 2007-08-30 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-08-301-1/+1
| | | | * syscalls2.stp (syslog): Make $buf output as address in argstr.