| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* tapset/syscalls2.stp (syscall.pipe.return): If @defined($flags) then use
it to determine correct name.
|
|
|
|
|
| |
* tapset/syscalls2.stp: Removed unneeded 'flags' and 'flag_str'
convenience variables in syscall.pipe.return probe.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* tapset/syscalls2.stp (syscall.pipe[2][.return]): Merge into syscall.pipe
and syscall.pipe.return. Set name according to flags.
|
|
|
|
| |
See commit c0c1cc.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* tapset/syscalls2.stp: Added support for 'sys_ia64_pipe' so that the
syscall.pipe probe works correctly under RHEL5.5.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* tapset/syscalls2.stp (syscall.sigaction32): Added
kernel.function("compat_sys_sigaction").
(syscall.sigaction32.return): Ditto.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* tapset/syscalls2.stp (syscall.pwrite32): Remove extra 'buf_uaddr'
assignment.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
* 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".
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| | |
* '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.
|
| | |
|
|/ |
|
| |
|
|
|
|
| |
* syscalls2.stp (syscall.wait{4|id}): Correct for 2.6.24.n kernels.
|
|
|
|
|
| |
tapset/syscall2.stp: to modify argument list of waitid,wait4
for kernel > 2.6.24
|
| |
|
|
|
|
|
| |
* syscalls2.stp (compat_sys_ptrace): Remove for now.
Utrace-patched kernels have a different compat_sys_ptrace().
|
|
|
|
|
| |
From Yang Zhiguo <yzgcsu@cn.fujitsu.com>
* syscalls2.stp: Add missed compat* probes in syscalls2.stp.
|
|
|
|
|
|
| |
From Bai Weidong <baiwd@cn.fujitsu.com>
* syscalls2.stp (rt_sigsuspend): Fix the semantic error caused by
the difference of kernel versions on IA64.
|
|
|
|
|
| |
* syscalls2.stp (sys_remap_file_pages: : Change kernel
version check to >= 2.6.24.
|
|
|
|
|
| |
* syscall2.stp (sys_remap_file_pages): Fix compile error with kernel
version greater than 2.6.23.
|
|
|
|
|
|
|
|
|
| |
* syscalls2.stp (sys_signal): Call
_sighandler_str().
* aux_syscalls.stp (_stp_sigset_str): Don't
include SIG_0.
(_sighandler_str): New.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* syscalls2.stp (sys_readlinkat): Make optional.
|
|
|
|
|
| |
* aux_syscalls.stp (_at_flag_str): Add some more flags.
* syscalls2.stp (openat): Call _dfd_str().
|
|
|
|
| |
* syscalls2.stp (readlinkat): Add.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
* syscalls2.stp (syslog): Make $buf output as address in argstr.
|