| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* tapset/aux_syscalls.stp: On systems where inotify isn't supported, don't
include inotify.h.
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_sys_pipe2_flag_str): Separate O_NONBLOCK and
O_CLOEXEC support.
(_sys_open_flag_str): Added O_CLOEXEC support.
|
|
|
|
|
|
|
| |
* 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/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.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_epoll_create1_flag_str): New helper function.
* tapset/syscalls.stp (syscall.epoll_create[.return]): Match epoll_creat1
if available.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_sys_open_flag_str): If O_CLOEXEC is defined
recognize and return it.
|
|
|
|
|
|
| |
We now implement __get_argv's string building in pure stap script.
Also, every argument is now quoted, which is different than before, but
it's much more robust about handling special characters.
|
|
|
|
| |
This reverts commit f75409719f120a3dbee66d761cf23a64092d1414.
|
| |
|
|
|
|
|
|
|
| |
That function was calling strlcpy as if the return value was the number
of bytes copied, but strlcpy actually returns the length of the input
string. We now use min() to handle the case when it's bigger than the
buffer length, and drop out of the loop when that happens.
|
|
|
|
|
|
|
|
|
|
| |
* 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/aux_syscalls.stp: Only define entries for IRQF_* flags if they
exist.
|
|
|
|
|
| |
* tapset/aux_syscalls.stp: Only define entries for
IRQF_NOBALANCING/IRQF_IRQPOLL if they exist.
|
|
|
|
|
|
|
| |
IRQF_ONESHOT was only introduced in 2.6.32. It doesn't hurt defining it
if it isn't already there. It will just never show up on older kernels.
* tapset/aux_syscalls.stp: Define IRQF_ONESHOT if not already defined.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
The definition of ntohs comes from user space include headers
netinet/in.h which could define it as function instead of macro.
So use builtin kernel be16_to_cpu instead.
* tapset/aux_syscalls.stp (_struct_sockaddr_u): Define and use _stp_ntohs
as be16_to_cpu.
|
|
|
|
| |
* tapset/aux_syscalls.stp: Don't indent #include <linux/utime.h>.
|
| |
|
| |
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_struct_sigaction_u): Only needed and compiles
when CONFIG_COMPAT defined.
|
|
|
|
|
|
|
|
|
|
| |
This change just inserts 'static' on runtime, tapset, and generated C
functions and globals, so the compiler can do a better job of
optimizing.
My tests with small scripts show ~10% reduction in compile time and ~20%
reduction in module size. Larger scripts may show less benefit, but I
expect purely positive results.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* aux_syscalls.stp (_stp_fork_list): Check kernel version for new
flags.
|
|
|
|
|
|
| |
From Yang Zhiguo <yzgcsu@cn.fujitsu.com>
* aux_syscalls.stp (_struct_sigaction_u): Delete overlaped
SA_SIGINFO from _stp_sa_flags_list[].
|
|
|
|
|
|
| |
From Yang Zhiguo <yzgcsu@cn.fujitsu.com>
* aux_syscalls.stp (_futex_op_str): Add new futex options.
(_stp_fork_list[]): Add new clone flags.
|
|
|
|
|
|
| |
From Bai Weidong <baiwd@cn.fujitsu.com>
* aux_syscalls.stp (__sem_flags): Add the missed mode display,
Fix calculation error when string is empty.
|
| |
|
|
|
|
|
| |
* aux_syscalls.stp (_stp_lookup_str): When defaulting
to a numeric value, append, don't overwrite.
|
|
|
|
|
|
| |
From Lai Jiangshan <laijs@cn.fujitsu.com>
* aux_syscalls.stp (_stp_lookup_or_str) redirect to _stp_lookup_str
if val is 0.
|
|
|
|
|
|
| |
PR5153
* aux_syscalls.stp (_sighandler_str): No
sa_restorer field for IA64.
|
|
|
|
|
|
|
|
|
| |
* syscalls2.stp (sys_signal): Call
_sighandler_str().
* aux_syscalls.stp (_stp_sigset_str): Don't
include SIG_0.
(_sighandler_str): New.
|
|
|
|
|
| |
* aux_syscalls.stp: Put #ifdef CONFIG_COMPAT
around compat code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* aux_syscalls.stp(_sockopt_level_str): Add support for protocol
number 134~137.
* socket.stp (global define,begin): Ditto.
|
|
|
|
|
| |
* aux_syscalls.stp (_str_lookup_str): Print unmatched
values in hex.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* syscalls.stp (adjtimex.return): Improve retstr.
* aux_syscalls.stp: Add a function(_adjtimex_return_str) for
adjtimex.return.
|