summaryrefslogtreecommitdiffstats
path: root/tapset/aux_syscalls.stp
Commit message (Collapse)AuthorAgeFilesLines
* Fix syscall tapset on older kernels (RHEL4).David Smith2010-03-221-0/+2
| | | | | * tapset/aux_syscalls.stp: On systems where inotify isn't supported, don't include inotify.h.
* Improve handling of O_NONBLOCK and O_CLOEXEC.David Smith2010-03-221-1/+7
| | | | | | * tapset/aux_syscalls.stp (_sys_pipe2_flag_str): Separate O_NONBLOCK and O_CLOEXEC support. (_sys_open_flag_str): Added O_CLOEXEC support.
* Support signalfd4 in syscalls2.stp tapset.Mark Wielaard2010-03-211-0/+23
| | | | | | | * 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 inotify_init1() and inotify_add_watch() mask string support.Mark Wielaard2010-03-211-0/+37
| | | | | | | | * 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-0/+23
| | | | | | | * 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/+10
| | | | | | * 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.
* Add F_DUPFD_CLOEXEC to _fcntl_cmd_str().Mark Wielaard2010-03-211-0/+1
|
* Add MSG_CMSG_CLOEXEC to _recvflags_str.Mark Wielaard2010-03-211-0/+1
|
* Support epoll_create1 syscall.Mark Wielaard2010-03-211-0/+10
| | | | | | * tapset/aux_syscalls.stp (_epoll_create1_flag_str): New helper function. * tapset/syscalls.stp (syscall.epoll_create[.return]): Match epoll_creat1 if available.
* PR11402 Support pipe2 syscall.Mark Wielaard2010-03-191-0/+19
| | | | | | | | | 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.
* Recognize O_CLOEXEC in _sys_open_flag_str.Mark Wielaard2010-03-191-0/+4
| | | | | * tapset/aux_syscalls.stp (_sys_open_flag_str): If O_CLOEXEC is defined recognize and return it.
* PR11234: Rewrite __get_argv without embedded-CJosh Stone2010-02-041-115/+44
| | | | | | 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.
* Revert "PR11234: Ensure __get_argv doesn't overflow"Josh Stone2010-02-041-15/+11
| | | | This reverts commit f75409719f120a3dbee66d761cf23a64092d1414.
* Fix a incorrect UNKNOWN VALUE message creation in _sock_type_str functionPetr Muller2010-02-011-1/+1
|
* PR11234: Ensure __get_argv doesn't overflowJosh Stone2010-01-281-11/+15
| | | | | | | 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.
* Fix PR11160 by handling ppc syscall.sigaction32 correctly.David Smith2010-01-131-0/+44
| | | | | | | | | | * 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 aux_syscalls.stp for RHEL4.David Smith2009-11-171-0/+12
| | | | | * tapset/aux_syscalls.stp: Only define entries for IRQF_* flags if they exist.
* PR 10974 fix. Fixed aux_syscalls.stp for RHEL5.David Smith2009-11-171-0/+4
| | | | | * tapset/aux_syscalls.stp: Only define entries for IRQF_NOBALANCING/IRQF_IRQPOLL if they exist.
* Define IRQF_ONESHOT for older kernels.Mark Wielaard2009-11-161-0/+3
| | | | | | | 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.
* add definition of function irqflags_str()Prerna Saxena2009-11-161-0/+27
|
* PR 6691 fixed by adding support for sys_accept4.David Smith2009-11-021-10/+70
| | | | | | | | | | * 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.
* Don't accidentially use user space ntohs function.Mark Wielaard2009-07-111-2/+5
| | | | | | | | | 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.
* Fix inconsistent indentation for including header file in aux_syscalls.stp.Sunzen Wang2009-05-141-4/+4
| | | | * tapset/aux_syscalls.stp: Don't indent #include <linux/utime.h>.
* Make aux_tapset.stp "long long" size agnostic so ia64 works.William Cohen2009-03-251-1/+2
|
* Removed #if defined. Format '%llx' works fine for all ArchMahesh J Salgaonkar2009-03-201-7/+0
|
* Guard _struct_sigaction32_u with ifdef CONFIG_COMPAT.Mark Wielaard2009-02-251-0/+2
| | | | | * tapset/aux_syscalls.stp (_struct_sigaction_u): Only needed and compiles when CONFIG_COMPAT defined.
* Use 'static' as much as possibleJosh Stone2009-01-281-11/+11
| | | | | | | | | | 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.
* Transform struct sigaction32 to struct sigaction for rt_sigaction32 syscall.Mark Wielaard2008-10-071-40/+98
|
* Moved reboot.h include out of _reboot_magic_str in aux_syscalls.stp.Mark Wielaard2008-09-181-1/+7
|
* Removed commented out code and unneeded embedded C-code from aux_syscalls.stp.Mark Wielaard2008-09-171-154/+36
|
* aux_syscalls.stp: Output unknown bits in _stp_lookup_or_str.Zhaolei2008-06-191-3/+6
|
* aux_syscalls.stp (__fork_flags): Add termination signal.Zhaolei2008-06-171-1/+7
|
* Add 'pure' to embedded-C functions that deserve itJosh Stone2008-06-131-1/+1
|
* Support for new clone flags before linux-2.6.25.Zhaolei2008-06-031-0/+8
|
* PR5001: Remove _stp_ctime and always use ctime.Mark Wielaard2008-05-201-56/+56
|
* 2008-1-4 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2008-01-041-0/+4
| | | | | * aux_syscalls.stp (_stp_fork_list): Check kernel version for new flags.
* 2007-12-25 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-12-251-1/+0
| | | | | | From Yang Zhiguo <yzgcsu@cn.fujitsu.com> * aux_syscalls.stp (_struct_sigaction_u): Delete overlaped SA_SIGINFO from _stp_sa_flags_list[].
* 2007-12-21 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-12-211-0/+10
| | | | | | From Yang Zhiguo <yzgcsu@cn.fujitsu.com> * aux_syscalls.stp (_futex_op_str): Add new futex options. (_stp_fork_list[]): Add new clone flags.
* 2007-12-7 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-12-071-1/+7
| | | | | | From Bai Weidong <baiwd@cn.fujitsu.com> * aux_syscalls.stp (__sem_flags): Add the missed mode display, Fix calculation error when string is empty.
* 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.