summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Update the nfsd buildok test suite probesSteve Dickson2010-03-161-1/+0
| | | | | | | The __get_fh() is no longer exists due to the use of the @cast defines, so its removed 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>
* Backport recently added probes to RHEL5(U5)Steve Dickson2010-03-163-51/+119
| | | | | | | Ensured the recent additions of v4 probes and supporting routines worked or at least don't break with RHEL5 U5 kernel. Signed-off-by: Steve Dickson <steved@redhat.com>
* Revert "Backport recent changes to RHEL5 (U5)"Steve Dickson2010-03-163-53/+18
| | | | | | This commit causes the 2.6.33 probes to break This reverts commit 3ca4e3f2f5a7a615d0aed00a242f4e30864deaa8.
* Backport recent changes to RHEL5 (U5)Steve Dickson2010-03-163-18/+53
| | | | | | | Ensured the recent additions of v4 probes and supporting routines worked with RHEL5 U5 kernel. Signed-off-by: Steve Dickson <steved@redhat.com>
* Incorporated comments from code reviewSteve Dickson2010-03-161-40/+53
| | | | | | | | - Fixed a couple typos - To allow better optimization, removed the used of "convenience variables" Signed-off-by: Steve Dickson <steved@redhat.com>
* Allow better filtering with IP address and File handleSteve Dickson2010-03-162-23/+122
| | | | | | | | | | | | | | | To allow filtering by the client's IP address, the addr_from_rqst_str() function was added which extracts the IP address from incoming procedures and converts them into a character string. Calls to addr_from_rqst_str() were added to the top of each probe so callers of the probes can use the IP addresses as a filter. Calls to __svc_fh() were also sprinkled were needed so callers can also filter on file handles Signed-off-by: Steve Dickson <steved@redhat.com>
* General clean up on the upper level probesSteve Dickson2010-03-161-23/+67
| | | | | | | | | | Added the ftype() function which converts file types into character strings Added calls nfsderror() to the return probes that will display errors in character strings Signed-off-by: Steve Dickson <steved@redhat.com>
* Removed the nfsd.proc4.compound and nfsd.proc.compound.return probesSteve Dickson2010-03-161-38/+0
| | | | | | | Either probes displayed anything that was useful, plus there are other ways to display similar information. Signed-off-by: Steve Dickson <steved@redhat.com>
* Updated nfsd.proc.remove probesSteve Dickson2010-03-161-11/+39
| | | | | | | | | Converted the nfsd.proc.remove probes to used the @cast() mechanism. Created the nfsd.proc4.remove probes Signed-off-by: Steve Dickson <steved@redhat.com>
* Updated nfsd.proc.remove probesSteve Dickson2010-03-161-7/+31
| | | | | | | | | Converted the nfsd.proc.remove probes to used the @cast() mechanism. Created the nfsd.proc4.remove probes Signed-off-by: Steve Dickson <steved@redhat.com>
* Updated nfsd.proc.create probesSteve Dickson2010-03-161-8/+97
| | | | | | | | | Converted the nfsd.proc.create probes to used the @cast() mechanism. Created the nfsd.proc4.create probes Signed-off-by: Steve Dickson <steved@redhat.com>
* Updated nfsd.proc.write probesSteve Dickson2010-03-161-20/+74
| | | | | | | | | Converted the nfsd.proc.write probes to used the @cast() mechanism. Created the nfsd.proc4.write probes Signed-off-by: Steve Dickson <steved@redhat.com>
* Updated nfsd.proc.read probesSteve Dickson2010-03-161-12/+41
| | | | | | | | | Converted the nfsd.proc.read probes to used the @cast() mechanism. Created the nfsd.proc4.read probes Signed-off-by: Steve Dickson <steved@redhat.com>
* Updated nfsd.proc.lookup probesSteve Dickson2010-03-161-79/+30
| | | | | | | | | Converted the nfsd.proc.lookup probes to used the @cast() mechanism. Created the nfsd.proc4.lookup probes Signed-off-by: Steve Dickson <steved@redhat.com>
* Added new nfsderror() functionSteve Dickson2010-03-161-0/+238
| | | | | | | | The nfsderror() function takes the error numbers used by the NFS server and converts them into a text representation of the given error number. Signed-off-by: Steve Dickson <steved@redhat.com>
* Use the @defined rather than kernel_v in the inode-watch.stpWilliam Cohen2010-03-122-14/+14
|
* Minor corrections to inode-watch.stp example.William Cohen2010-03-121-2/+2
|
* Get d_path's root natively with @castJosh Stone2010-03-122-15/+9
| | | | | | | | | | | As mjw's aborted commit 5ab0b1b6 attempted, we can use a @cast to get the filesystem root for the current task instead of embedded-C. I've left it using the kernel debuginfo instead of headers for now, because all of the neighboring @casts are doing the same. * tapset/dentry.stp (d_path): Use @cast to get the root. (__dentry_get_current_root): Remove, no longer needed. * testsuite/buildok/dentry.stp: Test that dentry's functions all build.
* Make the stap-prep script available in the RPM.William Cohen2010-03-122-0/+4
|
* Revert "Make stap-prep script available in the RPM"William Cohen2010-03-122-4/+0
| | | | This reverts commit da3dfc346ff926f0f1bdd2872fe4f5f8e920953a.
* Make stap-prep script available in the RPMWilliam Cohen2010-03-122-0/+4
|
* PR11373 kludge: clean up testsuite/stap_*.ko upon 'make clean'Frank Ch. Eigler2010-03-122-0/+8
|
* langref.tex editingWilliam Cohen2010-03-121-228/+283
| | | | | | | | | | | | Reviewed the language reference manual and made editing changes: -Reorderd sections for better grouping -Added description of the @defined operation -Corrected limits for MAXSTRENLEN and number of indices in associate array -Adjusted language in aggregates section -Corrected @hist example writeup. -Make output for @hist avoid page breaks -Updated information about manpages in "For Futher References" section
* smileytap logo: inserted GPLv2 RDF tagFrank Ch. Eigler2010-03-121-2/+26
|
* Add startswith/endswith helpersJosh Stone2010-03-118-26/+40
| | | | | Inspired by the Python equivalents, these new utility functions just make it a little cleaner to match at the beginning or end of a string.
* Fix the edge-case of MAXTRYLOCK=0Josh Stone2010-03-112-14/+24
| | | | | | | | | | | | | | | | | We didn't really have good semantics for what is meant by MAXTRYLOCK=0, so when skipped.exp tried it, we ended up locking the variable and then reporting a skip without ever unlocking it. This is now cleaning up the semantics such that MAXTRYLOCK defines how many times we should loop if the lock is busy. Thus MAXTRYLOCK=0 means we try only once and fail immediately. The testcase was accidentally creating contention due to the broken unlock behavior. We now have to try a bit harder to create real contention, so some lengthy delays are inserted to hoard the lock. * runtime/probe_lock.h (stp_probe_lock): Fix the skip behavior. * testsuite/systemtap.base/skipped.exp: Add a big udelay.
* Fix proc_mem.stp for RHEL5.David Smith2010-03-111-1/+1
| | | | | * tapset/proc_mem.stp: Move header file so that it will compile on RHEL5 systems.
* Revoke unprivileged from ftrace()Josh Stone2010-03-111-4/+2
| | | | | | | | It's writing into a system-wide resource, so it shouldn't be permitted to just anyone. Also remove the printk fallback that isn't actually functional. * tapset/logging.stp (ftrace): Remove unprivileged and printk.
* Update tapset proc_mem for 2.6.34Wenji Huang2010-03-111-0/+32
| | | | | * tapset/proc_mem.stp(_stp_get_mm_counter_file_rss, _stp_get_mm_counter_anon_rss): Use embedded function.
* PR11370: Add multi-header @castsJosh Stone2010-03-104-19/+39
| | | | | | | | | | Sometimes you need multiple headers to fully describe a type, so we now permit them to be listed together, e.g. "kernel<foo.h><bar.h>". * buildrun.cxx (make_typequery): Split the input string into a vector. (make_typequery_kmod, make_typequery_umod): Use the vector of headers. * testsuite/semok/cast.stp: Add a multi-header case. * stap.1.in, NEWS: Document it.
* Revert "Remove unnecessary embedded-c function __dentry_get_current_root()."Mark Wielaard2010-03-101-1/+15
| | | | | This reverts commit 5ab0b1b6c4d3a7f1ea156835a32000669e378886. Wrongly pushed commit.
* Be pessimistic about the gcc version as debuginfo has an undependable case ↵Stan Cox2010-03-102-2/+2
| | | | | | (RH572260). * sdt.h (GNUC_VERSION): Check against gcc 4.5.0
* PR 11210 move stapprobe.* man pages to tapset::*William Cohen2010-03-102-23/+9
| | | | | | make on RHEL-5 and earlier cannot deal with the :: in the man page names. This work around uses the install-data-local rule to install the manpages to avoid confusing the older versions of make.
* Removed unneeded '-u' switch from 3 tests.David Smith2010-03-103-3/+3
| | | | | | | * testsuite/buildok/scheduler-test-tracepoints.stp: Removed unneeded '-u' option. * testsuite/buildok/vm.tracepoints.kmalloc.stp: Ditto. * testsuite/buildok/vm.tracepoints.stp: Ditto.
* sdt.h: rename volatile-control macro to STAP_SDT_VOLATILE. Document in NEWS.Frank Ch. Eigler2010-03-102-60/+64
|
* PR11366 Always call semantic_pass_const_fold.Mark Wielaard2010-03-101-2/+3
| | | | | | | | | Even in unoptimized mode we want constant folding to work to make sure non-existing $variable expressions (detected through @defined) aren't included. * elaborate.cxx (semantic_pass_optimize1): Call semantic_pass_const_fold() unconditionally.
* Remove unnecessary embedded-c function __dentry_get_current_root().Mark Wielaard2010-03-101-15/+1
| | | | | * tapset/dentry.stp: Removed embedded-c include and function __dentry_get_current_root(). Use task_current and @cast in d_path().
* tapset/task.stp remove redundant extra @defined in task_cpu().Mark Wielaard2010-03-101-2/+2
|
* Use exported print_context_stack for 2.6.33Wenji Huang2010-03-101-13/+2
| | | | | * runtime/stack.c(print_stack_ops): Use print_context_stack and adjust version code.
* NEWS: mention man page renamesFrank Ch. Eigler2010-03-091-0/+4
|
* PR 11210 move stapprobe.* man pages to tapset::*William Cohen2010-03-0919-119/+68
| | | | | Complete the renaming scheme with prefix of "tapset::" for the man pages related to over all description of groups of probes.
* PR11360: Make @defined and -L play niceJosh Stone2010-03-092-9/+35
| | | | | | | | | | | | | The constant-folding is now enabled for s.listing_mode_vars, despite all other optimizations being disabled. This is needed so we can prune any invalid branches that are gated by @defined. * elaborate.cxx (semantic_pass): Leave the optimization decision to the optimization passes themselves. (semantic_pass_optimize1): Predicate most optimizations, but enable the constant-folding for listing_mode_vars too. (semantic_pass_optimize2): Predicate all (1) optimizations. * testsuite/semok/defined_list_vars.stp: New test.
* Include __GNUC_RH_RELEASE__ in the volatile check.Stan Cox2010-03-092-4/+7
| | | | sdt.h (GNUC_VERSION) Include __GNUC_RH_RELEASE__. Check for at least gcc 4.4.4
* PR 11338 (partial): Used '@defined()' in task, dentry, and scsi tapsets.David Smith2010-03-093-20/+13
| | | | | | * tapset/task.stp: Used '@defined()' to remove kernel version checks. * tapset/dentry.stp: Ditto. * tapset/scsi.stp: Ditto.
* Update tests to check for uprobes instead of utrace.David Smith2010-03-093-16/+17
| | | | | | | * testsuite/systemtap.context/uprobe_stmt_num.exp: Change utrace test to uprobes test. * testsuite/systemtap.context/uprobe_uaddr.exp: Ditto. * testsuite/systemtap.base/bz5274.exp: Ditto.
* Check the gcc version using polynomial representation.Stan Cox2010-03-092-1/+5
| | | | * sdt.h (GNUC_VERSION): New.
* Fix PR 11363 by using logrotate to ensure logfile doesn't grow too large.David Smith2010-03-092-4/+16
| | | | | | | | * initscript/logrotate.stap-server: Add logrotate config file to make sure stap-server logfile doesn't grow too large. * systemtap.spec: Install logrotate config file. Also follow <https://fedoraproject.org/wiki/PackagingDrafts/Logfiles> to correctly create the logfile.