summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok
Commit message (Collapse)AuthorAgeFilesLines
* Added kernel_pointer()/set_kernel_pointer() tapset functions.David Smith2010-04-074-1/+6
| | | | | | | | | | | * 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.
* Added atomic_read() embedded-C function and tests.David Smith2010-04-061-0/+1
| | | | | | | | * 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.
* Test that all of the set_kernel_* functions workJosh Stone2010-04-011-0/+14
| | | | | * testsuite/buildok/set_kernel.stp: Test that all can build. * testsuite/systemtap.base/set_kernel.stp: Test that values are all set.
* Fixed PR 11372 by removing (most) embedded-C from proc_mem.stp.David Smith2010-03-161-0/+6
| | | | | | | | | * 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.
* 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>
* Get d_path's root natively with @castJosh Stone2010-03-121-0/+8
| | | | | | | | | | | 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.
* 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.
* PR 11338 (partial): Used '@defined()' in tty, scheduler, and vfs tapsets.David Smith2010-03-081-1/+1
| | | | | | | | | | * tapset/tty.stp: Used '@defined()' to remove kernel version checks. * tapset/scheduler.stp: Ditto. * tapset/vfs.stp: Used '@defined()' to remove kernel version checks. Also made several probe points optional instead of using kernel version checks to know when to include them. * testsuite/buildok/vfs_testcase.stp: Removed stap '-u' (unoptimized mode) switch, since '@defined()' doesn't work in unoptimized mode.
* Add cmdline argument fetching for current process to context.stp tapset.Mark Wielaard2010-03-041-0/+4
| | | | | * tapset/context.stp: Add cmdline_str, cmdline_arg and cmdline_args. * testsuite/buildok/context_test.stp: Add tests for new functions.
* Add task_stime_tid(), task_utime_tid() and task_time_string_tid() support.Mark Wielaard2010-03-031-0/+5
| | | | | | * tapset/task_time.stp: New functions task_stime_tid(), task_utime_tid() and task_time_string_tid(). * testsuite/buildok/task_test.stp: Add tests.
* Add documentation and tests for proc_mem_*_pid functions.Mark Wielaard2010-03-031-0/+9
|
* PR11004: try / catch error-handling script syntaxFrank Ch. Eigler2010-03-031-0/+37
| | | | | | | | | | | | | | | * parse.h (try_block): New class. Update basic visitors. * staptree.cxx: Implement basic visitors. * parse.cxx (expect_kw): Fix to actually look for keywords. (parse_try_block): New function. (lexer ctor): Designate 'try' and 'catch' as keywords. * elaborate.cxx (dead_assignment_remover, dead_statmtexpr_remover): Optimize. (other visitors): Implement. * translate.cxx (c_unparser): Implement via super-handy __local__ labels. (emit_probe, emit_function): Make outer out: label also __local__. * testsuite/buildok/fortyone.stp, semko/fortynine.stp, systemtap.base/trycatch.exp: Test it. * NEWS, doc/langref.txt, stap.1.in: Document it.
* Define empty function for tcpmib testWenji Huang2010-02-081-0/+8
|
* Fix test case tcpmib-all-probes.stpWenji Huang2010-02-081-6/+1
|
* buildok test doesn't need /usr/bin/envMark Wielaard2010-02-021-1/+1
| | | | * testsuite/buildok/hwbkpt.stp: Just use stap directly after #!.
* Make hwbkpt.stp compitable with old kernel and exectuableWenji Huang2010-02-011-3/+13
| | | | | * testsuite/buildok/hwbkpt.stp: Switch by CONFIG_* and be executable.
* Hardware Breakpoints for x86 / x86_64, based on mainline kernelPrerna Saxena2010-01-291-0/+4
|
* Make all buildok tests executable.William Cohen2010-01-077-0/+0
|
* Change directory of utsrelease.h to include/generated for 2.6.33Wenji Huang2010-01-041-1/+3
|
* Fixup some memory tapset vm kernel function probe fallbacks.Mark Wielaard2009-12-292-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | Older kernels don't have all GFP constants defined, and the fallback kernel function probe fallbacks don't have the same dwarf variable names as the kernel trace point probes. So replace them with variables that are available. bytes_alloc was sometimes a long and sometimes a string, this caused scripts to fail depending on which alternative was chosen for a particular kernel. So make it a long always. This isn't a full solution since kmalloc is always inlined which makes the kernel.function("kmalloc").return probe fail. * tapset/memory.stp: Define __GFP_THISNODE, __GFP_RECLAIMABLE, GFP_TEMPORARY, GFP_HIGHUSER_MOVABLE and GFP_THISNODE when not yet defined. (__vm.kmalloc.kp): Use $flags, not $gfp_flags. Set bytes_alloc equal to bytes_req. (__vm.kmem_cache_alloc.kp): Likewise. And use $cachep->buffer_size for bytes_req. (__vm.kmalloc_node.kp): Likewise. (__vm.kmem_cache_alloc_node.kp): Likewise. (__vm.kfree.kp): Use $ibjp for ptr, not $return. (__vm.kmem_cache_free.kp): Likewise. * testsuite/buildok/vm.tracepoints.stp: Move vm.kmalloc test to... * testsuite/buildok/vm.tracepoints.kmalloc.stp: ... here.
* Updates to SCSI tapset scsi.stp and corresponding testcasesAndre Detsch2009-12-221-12/+24
|
* PR11038 Trailing semicolon as null-statement confusing.Mark Wielaard2009-12-211-0/+18
| | | | | | * parse.cxx (parser::parse_statement): Squash semicolon after non-block-like statements. * testsuite/buildok/semicolon.stp: New test.
* Tracepoint based tapset for memory subsystem.Rajasekhar Duddu2009-12-211-0/+31
|
* Fix regression introduced by commit 379c585Wenji Huang2009-12-071-0/+7
|
* Make tapset and tests compatible with old kernelWenji Huang2009-12-023-15/+21
| | | | | | | | | | | | | * tapset/ioscheduler.stp : Make probe optional. * tapset/irq.stp : Ditto. * tapset/scheduler.stp : Ditto. * tapset/tcpmib.stp : Ditto. * tapset/linuxmib.stp : Switch variable by version. * tapset/tty.stp : Ditto. * testsuite/buildok/irq.stp : Make probe test optional. * testsuite/buildok/tty.stp : Ditto. * testsuite/systemtap.examples/network/netdev.stp : Ditto. * testsuite/buildok/tcpmib-all-probes.stp : Add embedded functions.
* Correct block IO and IO scheduler tapset and test caseWenji Huang2009-11-232-4/+3
| | | | | | * tapset/ioblock.stp: Update comment and variables. * testsuite/buildok/ioblock_test.stp: Add parameters. * testsuite/buildok/ioscheduler.stp: Remove redundant parameters.
* Added tracepoint-based probes to block IO and IO scheduler tapsets.Prerna Saxena2009-11-222-0/+20
| | | | | Added testcases for these probes. Also, modified comments in ioblock.stp so that tapset docmentation can be automatically generated for this tapset.
* PR 10981. Fixed buildok/netdev.stp for RHEL5.David Smith2009-11-181-2/+2
| | | | | | | * tapset/networking.stp: Made 'netdev.change_rx_flag' and 'netdev.get_stats' optional, since those functions don't exist on RHEL5. * testsuite/buildok/netdev.stp: Ditto.
* PR10622 Search for extern $variables in symbol table.Mark Wielaard2009-11-161-0/+7
| | | | | | | | * dwflpp.h (vardie_from_symtable): New method. * dwflpp.cxx (vardie_from_symtable): New method. (literal_stmt_for_local): Use vardie_from_symtable when no location attribute and DW_AT_external. * testsuite/buildok/xtime.stp: New testcase from PR10622.
* IRQ tapset, sample script, testsuite, man page updates, etcPrerna Saxena2009-11-091-0/+7
|
* A new testcase for tty tapsetBreno Leitão2009-10-291-0/+51
| | | | | This is a basic test to assure that the tty tapset is working compiling and working properly
* Add buildok tests for sprint[ln](@hist_*)Josh Stone2009-10-131-0/+4
|
* Add task_time tapset, functions to query time resource usage of current task.Mark Wielaard2009-10-091-0/+8
| | | | | | | * tapset/task_time.stp: New tapset. * testsuite/buildok/task_test.stp: Add new task_time functions. * doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add new section on Task Time Tapset. Include tapset/task_time.stp.
* PR10702: preprocessor conditional for kernel CONFIG_fooFrank Ch. Eigler2009-10-081-0/+3
| | | | | | | | * session.h (kernel_config[]): New session field. * main.cxx (parse_kernel_config): Populate it. * parse.cxx (eval_comparison): Use it. * testsuite/buildok/utrace.stp, testsuite/parseok/kconfig.stp: New tests. * NEWS, stap.1.in, doc/langref.tex: Mention it.
* Add proc_mem tapset, functions to query memory usage of the current process.Mark Wielaard2009-10-061-0/+13
| | | | | | | * tapset/proc_mem.stp: New tapset. * testsuite/buildok/proc_mem.stp * doc/SystemTap_Tapset_Reference/tapsets.tmpl (memory_stp): Include tapset/proc_mem.stp.
* Scheduler Tapset based on kernel tracepointsKiran Prakesh2009-10-021-0/+51
| | | | | | | | | This patch adds kernel tracepoints based probes to the scheduler tapset along with the testcase, scheduler-test-tracepoints.stp and an example script, sched_switch.stp. Signed-off-by: Kiran Prakash <kiran@linux.vnet.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* PR10678 vta-gcc: module debuginfo: relocation refers to undefined symbolMark Wielaard2009-10-021-0/+4
| | | | | | | | | | | | | | | | | libdwfl tries to resolve all relocations in a module debuginfo file and if it cannot find a symbol used in a relocation it will fail when dwfl_module_getdwarf() is called. So we must make sure all possible dependencies of the module are also in the dwfl. We do this by trying to find and parse the modules.dep file and insert all dependencies into the dwfl. * setupdwfl.cxx (elfutils_kernel_path): Lift from setup_dwfl_kernel and make static. (is_comma_dash): New function. (modname_from_path): Likewise. (setup_mod_deps): Likewise. (setup_dwfl_report_kernel_p): Call setup_mod_deps(). * testsuite/buildok/pr10678.stp: New test.
* Purge warnings from buildok testsuite.Mark Wielaard2009-09-2522-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/buildok/fortysix.stp: Add -w. * testsuite/buildok/fortytwo.stp: Likewise. * testsuite/buildok/four.stp: Avoid empty begin. * testsuite/buildok/memory-all-probes.stp: Add -w. * testsuite/buildok/nfsd-all-probes.stp: Likewise. * testsuite/buildok/nine.stp: Likewise. * testsuite/buildok/one.stp: Use q. * testsuite/buildok/printf.stp: Remove unused foo(), printf x. * testsuite/buildok/process-all-probes.stp: Add -w. * testsuite/buildok/scheduler-all-probes.stp: Likewise. * testsuite/buildok/scsi-all-probes.stp: Likewise. * testsuite/buildok/signal-all-probes.stp: Likewise. * testsuite/buildok/sixteen.stp: log in foo(). * testsuite/buildok/socket-all-probes.stp: Add -w. * testsuite/buildok/stat_insert.stp: Declare x, y global. * testsuite/buildok/syscall.stp: Add -w. * testsuite/buildok/tcp-all-probes.stp: Likewise. * testsuite/buildok/thirtyone.stp: Likewise. * testsuite/buildok/twentyeight.stp: log absolute. * testsuite/buildok/twentyfour.stp: Add -w. * testsuite/buildok/udp-all-probes.stp: Likewise. * testsuite/buildok/vfs-all-probes.stp: Likewise.
* PR10390: ftrace() tapset functionFrank Ch. Eigler2009-09-231-0/+11
| | | | | | | | | | | * tapset/logging.stp (ftrace): New function. (*): Add kerneldoc to other functions. * doc/SystemTap_Tapset_Reference/tapsets.tmpl: Process logging.stp. * stapfuncs.3stap.in: Remove "LOGGING" section, now redundant. * runtime/autoconf-trace-printk.c: New autoconf test. * buildrun.cxx (compile_pass): Build it. * NEWS: Mention it. * testsuite/buildok/logging.stp: Test it.
* Test all context related functions in one test.Mark Wielaard2009-09-1910-74/+10
| | | | | | | | | Saves a couple of seconds per individual test by doing them all in one. * testsuite/buildok/context_test.stp: Incorporate: modname.stp, probefunc.stp, probemod.stp, symdata.stp, symname.stp, uaddr.stp, ustack.stp, usymdata.stp, usymname.stp. Delete individual tests.
* buildok netdev.stp file shouldn't be using /usr/bin/env, but stap directly.Mark Wielaard2009-09-181-1/+1
|
* Fix the old networking buildok testJosh Stone2009-09-161-1/+1
|
* A basic test to assure that networking tapset is building okBreno Leitao2009-09-161-0/+47
| | | | | | | | | | This is a basic script to assure that the network devices tapset is building (-p4) properly. This script is basically a copy of another netdev example that is located on testsuite/systemtap.examples/network/netdev.stp Signed-off-by: Josh Stone <jistone@redhat.com>
* testsuite: fix buildok test permissionsFrank Ch. Eigler2009-09-083-0/+0
|
* This SNMP group of tapsets provides probes used to count SNMP managementDavid J. Wilder2009-07-163-0/+39
| | | | | | | | | | | | | | | | | | | events. The probes mirror many of the SNMP statistics defined in /usr/include/linux/snmp.h. Each probe represents a single SNMP statistic or MIB. Each of the probe's handler is called when system performs an operation that would alter the associated statistic. Along with each probe is defined an indexed set of counters used to record probe hits. The probe handlers call a user supplied callback functions to determine which counter to alter. The user's callback should returns a key value that will be used to index the counter. For example a callback could return a unique value for each socket. This would results in a separate counter being used for each socket. tcpipstat.stp shows how snmp tapsets could be used. Tcpipstat collects and displays network statistics related to individual TCP sockets or groups of sockets. The statistics that are collected are simmer to that of the command netstat -s, only sorted and grouped by individual sockets. Signed-off-by: David Wilder <dwilder@us.ibm.com>
* PR3498 cont'd, fix wildcard module("*") probesFrank Ch. Eigler2009-07-081-0/+3
| | | | | | | | * dwflpp.cxx (name_has_wildcard): Make static. (dwfl_report_offline_predicate): Check & adjust behavior. * dwflpp.h: Corresponding changes. * tapsets.cxx: Note that kern_dw[] keys may be wildcard strings. * testsuite/buildok/fortysix.stp: New test.
* PR10298: tweak global param initialization for NULL etc.Frank Ch. Eigler2009-06-181-0/+5
| | | | | * translate.cxx (translate_pass): Emit module_parm stuff at the very end. * testsuite/buildok/null.stp: New test.
* Add pgrp() context tapset function. Describe sid().Przemyslaw Pawelczyk2009-06-151-0/+1
| | | | | | | | * tapset/context.stp: Add pgrp() function. * testsuite/buildok/context_test.stp: Add pgrp() call. * stapfuncs.3stap.in: Describe pgrp() and sid(). Signed-off-by: Josh Stone <jistone@redhat.com>
* PR10279: add -DKRETACTIVE=nnnn parameterFrank Ch. Eigler2009-06-131-0/+10
| | | | | | | * tapsets.cxx (dwarf/kprobe_derived_...::emit_decl/init): Define and use KRETPROBE instead of hard-coded max(...) values. Raise the default 50%. * testsuite/buildok/thirtytwo.stp: New test.
* More testsuite tweaks to make it work with SYSCALL_WRAPPERSAnanth N Mavinakayanahalli2009-05-281-3/+3
|