summaryrefslogtreecommitdiffstats
path: root/tapset
Commit message (Collapse)AuthorAgeFilesLines
* Fix [set_]kernel_pointer for 32-bitHEADmasterJosh Stone2010-04-132-2/+2
| | | | | * tapset/conversions.stp (kernel_pointer): Use uintptr_t casts. * tapset/conversions-guru.stp (set_kernel_pointer): Ditto.
* Title for kernel_pointer needs to be all on one line.William Cohen2010-04-081-2/+1
|
* PR 9871 (partial) fix. Removed embedded-C in ioblock.stp and ipmib.stp.David Smith2010-04-072-101/+39
| | | | | | | | | | | | | | | | | | | | * tapset/ioblock.stp(__bio_start_sect): Converted from embedded-C to script language. * tapset/ipmib.stp: Replaced all _tcphdr_get_dport()/_tcphdr_get_sport() calls with _tcp_skb_dport()/_tcp_skb_sport() calls. Removed embedded-C functions _tcphdr_get_dport()/_tcphdr_get_sport(). (ipmib.OutRequests): Fixed for RHEL4. (_trn_unspec): New function. (_input_route_type): Originally called __input_route_type_old()/__input_route_type_new(), which were embedded-C functions. Now just does everything in script language. (__input_route_type_old): Deleted. (__input_route_type_new): Ditto. (_output_route_type): Originally called __output_route_type_old()/__output_route_type_new(), which were embedded-C functions. Now just does everything in script language. (__output_route_type_old): Deleted. (__output_route_type_new): Ditto.
* Added kernel_pointer()/set_kernel_pointer() tapset functions.David Smith2010-04-073-12/+38
| | | | | | | | | | | * tapset/conversions.stp (kernel_pointer): New function. * tapset/conversions-guru.stp (set_kernel_pointer): Ditto. * testsuite/buildok/conversions-embedded.stp: Added kernel_pointer() test. * testsuite/buildok/conversions.stp: Ditto. * testsuite/buildok/set_kernel.stp: Added set_kernel_pointer() test. * tapset/nfs.stp: Removed __d_loff_t() function. Uses new kernel_pointer() function instead. * testsuite/buildok/nfs-embedded.stp: Removed __d_loff_t() test.
* PR 9871 (partial) fix. Removed all embedded-C in rpc.stp.David Smith2010-04-071-94/+69
| | | | * tapset/rpc.stp: Replaced all embedded-C functions with script language.
* Added atomic_read() embedded-C function and tests.David Smith2010-04-061-0/+12
| | | | | | | | * tapset/atomic.stp: Added atomic_read(). * testsuite/buildok/atomic.stp: Added atomic_read() compile test. * testsuite/systemtap.base/atomic.exp: Added atomic_read() tests. * testsuite/lib/stap_run_error.exp (stap_run_error): Logs stap command and tries to ensure inferior process is killed.
* PR 9871 (partial) fix. Removed some embedded-C in scsi.stp.David Smith2010-04-061-14/+15
| | | | | * tapset/scsi.stp: Added script function timer_pending(). Rewrote embedded-C function scsi_timer_pending() in script language.
* PR 9871 (partial) fix. Removed more embedded-C in nfs_proc.stp and nfs.stp.David Smith2010-04-062-146/+129
| | | | | | | | | | * tapset/nfs_proc.stp: Added script functions NFS_I(), NFS_FH(), NFS_SERVER, NFS_PROTO. Rewrote embedded-C functions __nfsv4_bitmask() and __getfh_inode() in script language. * tapset/nfs.stp: Rewrote embedded-C functions __nfsi_cache_valid(), __nfsi_rcache_time(), __nfsi_attr_time(), __nfsi_ndirty(), __nfs_server_rsize(), __nfs_version(), __nfs_server_wsize(), __nfs_rpages(), and __nfs_wpages() in script language.
* PR 9871 (partial) fix. Removed more embedded-C in nfs_proc.stp.David Smith2010-04-051-156/+92
| | | | | | | * tapset/nfs_proc.stp: Rewrote embedded-C functions stap_NFS_CLIENT(), get_ip_from_client(), get_prot_from_client(), get_ip(), and get_prot() in script language. Simplified __i2n_ip_proto() by just calling get_ip_from_client() or get_prot_from_client().
* PR 9871 (partial) fix. Removed some embedded-C in nfs_proc.stp.David Smith2010-04-051-22/+21
| | | | | * tapset/nfs_proc.stp: To avoid a deref hazard, rewrote embedded-C __i2n_ip_proto() in script language.
* Add kernel-writing functions for guru onlyJosh Stone2010-04-011-0/+117
| | | | | * runtime/loc2c-runtime.h (store_deref_string): New. * tapset/conversions-guru.stp (set_kernel_*): New guru functions.
* PR 9871 (partial) fix. Removed some embedded-C in ioblock.stp/vfs.stp.David Smith2010-03-304-29/+42
| | | | | | | | | * tapset/dev.stp: Added a bdevname() script function. * tapset/ioblock.stp: Rewrote the embedded-C devname function to just use bdevname() script function. * tapset/vfs.stp: Removed embedded-C __bdevname() C function. Calls bdevname() script function instead. * tapset/string.stp: Added isdigit() function.
* PR 11338 (partial): Used @defined in ioscheduler.stp and fixed deref hazards.David Smith2010-03-291-48/+40
| | | | | | | | | | * tapset/ioscheduler.stp (ioschedule.elv_next_request): Used '@defined' instead of a kernel version check. (ioscheduler.elv_next_request.return): Ditto. (ioscheduler.elv_add_request.kp): Ditto. (ioscheduler.elv_completed_request): Ditto. (disk_major_from_request): Fixed deref hazards. (disk_minor_from_request): Ditto.
* PR 11338 (partial): Used '@defined()' in inet_sock tapsets.David Smith2010-03-261-21/+7
| | | | | | * tapset/inet_sock.stp (inet_get_local_port): Used '@defined' instead of a kernel version check. Added RHEL4 support. (inet_get_ip_source): Now calls __ip_sock_daddr() to get daddr.
* PR 9871/11338 fix in tcpmib.stp by removing embedded-C and using @defined.David Smith2010-03-263-88/+69
| | | | | | | | | | | | | | | | * tapset/tcpmib.stp (tcpmib_get_state): Changed from embedded-C to script code. (tcpmib_local_addr): Instead of an embedded-C function, now calls function from ip.stp/tcp.stp. (tcpmib_remote_addr): Ditto. (tcpmib_local_port): Ditto. (tcpmib_remote_port): Ditto. (tcpmib.OutRsts.A): Used '@defined' instead of a kernel version check. * tapset/ip.stp (__ip_sock_saddr): Used '@defined' instead of a kernel version check. Added RHEL4 support. (__ip_sock_daddr): Ditto. * tapset/tcp.stp (__tcp_sock_dport): Ditto. (__tcp_sock_sport): Ditto.
* 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.
* Fixed PR 11425 by fixing probefunc() when used with kprobe.function.David Smith2010-03-231-1/+1
| | | | | * tapset/context-symbols.stp: Fixed probefunc() by looking for '"' as the end of the function name along with '@'.
* Partial fix for pr 11414. Fixed several 32-bit probe points.David Smith2010-03-231-8/+13
| | | | | * tapset/nd_syscalls2.stp: Updated/fixed rt_sigaction32, compat_select, and sigaction32 probes.
* Fixed nd_syscalls 'sys32_mmap2' problem on newer kernels.David Smith2010-03-221-2/+2
| | | | | * tapset/x86_64/nd_syscalls.stp: Made 'sys32_mmap2' probe point optional, since it doesn't exist on newer kernels.
* Fixed cut-and-paste error for sys_ia64_pipe.David Smith2010-03-221-1/+1
| | | | | * tapset/nd_syscalls2.stp: Removed '.call' from 'kprobe.function("sys_ia64_pipe")'.
* Ifdef out atomic_long_read() body on older kernels where the type doesn't exist.David Smith2010-03-221-0/+2
| | | | | * tapset/atomic.stp: If we don't have ATOMIC_LOGN_INIT(), ifdef out the function.
* Partial fix for pr 11388 by adding 'sys_mmap_pgoff' support.David Smith2010-03-222-4/+8
| | | | | | * tapset/i386/nd_syscalls.stp: Add support for 'sys_mmap_pgoff' (which is what the mmap syscall uses). * tapset/x86_64/nd_syscalls.stp: Ditto.
* Partial fix for pr 11388 by adding 'sys_mmap_pgoff' support.David Smith2010-03-222-6/+10
| | | | | | * tapset/i386/syscalls.stp: Add support for 'sys_mmap_pgoff' (which is what the mmap syscall uses). * tapset/x86_64/syscalls.stp: Ditto.
* 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-212-5/+40
| | | | | | | * 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-212-7/+57
| | | | | | | | * 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-212-6/+40
| | | | | | | * 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.
* Match syscall.pipe32 with regular syscall.pipe[2] output.Mark Wielaard2010-03-211-1/+34
| | | | | * tapset/x86_64/syscalls.stp (syscall.pipe32[.return]): Define same variables and match argstr with regular syscall.pipe.
* Add support for dup3 to syscall.stp tapset.Mark Wielaard2010-03-212-0/+53
| | | | | | * 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-212-6/+28
| | | | | | * tapset/aux_syscalls.stp (_epoll_create1_flag_str): New helper function. * tapset/syscalls.stp (syscall.epoll_create[.return]): Match epoll_creat1 if available.
* 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.
* tapset: port addr_to_node() to rhel4Frank Ch. Eigler2010-03-191-1/+5
|
* 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-192-0/+59
| | | | | | | | | 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.
* 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.
* PR909: add perf.hw_cache.* aliasesFrank Ch. Eigler2010-03-181-0/+48
| | | | | | * tapset/perf.stp: Add 'em. * man/tapset::perf.3stap: Document 'em a little. * stapprobes.3stap.in: Fix .sample (not .samples) probe point typo.
* Fixed BZ 568032 by adding support for sys_ia64_pipe.David Smith2010-03-181-2/+9
| | | | | * tapset/nd_syscalls2.stp: Added support for 'sys_ia64_pipe' so that the syscall.pipe probe works correctly under RHEL5.5.
* 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.
* PR909: switch to tapset-based attr/type resolutionFrank Ch. Eigler2010-03-181-0/+29
| | | | | | * tapset/perf.stp: New file. * tapset-perfmon.cxx (perf_derived_probe): Drop event_name field throughout. Listen to type(N).config(M) instead.
* Fixed PR 11372 by removing (most) embedded-C from proc_mem.stp.David Smith2010-03-162-135/+169
| | | | | | | | | * tapset/proc_mem.stp: Tried to remove as much embedded-C as possible. * tapset/atomic.stp: New file. * testsuite/buildok/atomic.stp: New file. * testsuite/systemtap.base/atomic.exp: Ditto. * testsuite/systemtap.base/atomic_module.c: Ditto. * testsuite/systemtap.base/atomic_module.makefile: Ditto.
* The rpc buildok test suite probe breaks with new kernelsSteve Dickson2010-03-161-2/+21
| | | | | | | | | | | With newer kernels the rpc_release_task() routine is not defined because it becomes inline since its only called once. Plus the task allocation routines have changed so the arguments no longer match up with previous routines. So this patch uses the kernel_v clauses to allow the original functionality with older kernels and not to break on new kernels. Signed-off-by: Steve Dickson <steved@redhat.com>
* Backport recently added probes to RHEL5(U5)Steve Dickson2010-03-163-51/+79
| | | | | | | | Ensured the recent additions of v4 probes and supporting routines worked or at least don't break with RHEL5 U5 kernels (this time without kernel version checks). Signed-off-by: Steve Dickson <steved@redhat.com>
* Revert "Backport recently added probes to RHEL5(U5)"Steve Dickson2010-03-163-119/+51
| | | | | | | This reverts commit 35f22bd95cea2fb75573a27282f2a5edea84f2d7 beause kernel_v kernel checks should not be used. Signed-off-by: Steve Dickson <steved@redhat.com>