| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* tapset/conversions.stp (kernel_pointer): Use uintptr_t casts.
* tapset/conversions-guru.stp (set_kernel_pointer): Ditto.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* tapset/rpc.stp: Replaced all embedded-C functions with script language.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* tapset/scsi.stp: Added script function timer_pending(). Rewrote
embedded-C function scsi_timer_pending() in script language.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* 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().
|
|
|
|
|
| |
* tapset/nfs_proc.stp: To avoid a deref hazard, rewrote embedded-C
__i2n_ip_proto() in script language.
|
|
|
|
|
| |
* runtime/loc2c-runtime.h (store_deref_string): New.
* tapset/conversions-guru.stp (set_kernel_*): New guru functions.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* 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/context-symbols.stp: Fixed probefunc() by looking for '"' as the
end of the function name along with '@'.
|
|
|
|
|
| |
* tapset/nd_syscalls2.stp: Updated/fixed rt_sigaction32, compat_select,
and sigaction32 probes.
|
|
|
|
|
| |
* tapset/x86_64/nd_syscalls.stp: Made 'sys32_mmap2' probe point optional,
since it doesn't exist on newer kernels.
|
|
|
|
|
| |
* tapset/nd_syscalls2.stp: Removed '.call' from
'kprobe.function("sys_ia64_pipe")'.
|
|
|
|
|
| |
* tapset/atomic.stp: If we don't have ATOMIC_LOGN_INIT(), ifdef out the
function.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* tapset/i386/syscalls.stp: Add support for 'sys_mmap_pgoff' (which is
what the mmap syscall uses).
* tapset/x86_64/syscalls.stp: Ditto.
|
|
|
|
|
| |
* 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/x86_64/syscalls.stp (syscall.pipe32[.return]): Define same
variables and match argstr with regular syscall.pipe.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_sys_open_flag_str): If O_CLOEXEC is defined
recognize and return it.
|
|
|
|
|
|
|
|
|
|
|
| |
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/perf.stp: Add 'em.
* man/tapset::perf.3stap: Document 'em a little.
* stapprobes.3stap.in: Fix .sample (not .samples) probe point typo.
|
|
|
|
|
| |
* tapset/nd_syscalls2.stp: Added support for 'sys_ia64_pipe' so that the
syscall.pipe probe works correctly under RHEL5.5.
|
|
|
|
|
| |
* tapset/syscalls2.stp: Added support for 'sys_ia64_pipe' so that the
syscall.pipe probe works correctly under RHEL5.5.
|
|
|
|
|
|
| |
* tapset/perf.stp: New file.
* tapset-perfmon.cxx (perf_derived_probe): Drop event_name field throughout.
Listen to type(N).config(M) instead.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
This reverts commit 35f22bd95cea2fb75573a27282f2a5edea84f2d7
beause kernel_v kernel checks should not be used.
Signed-off-by: Steve Dickson <steved@redhat.com>
|