summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'origin/master'Tim Moore2010-01-133-2/+55
|\
| * Fix PR11160 by handling ppc syscall.sigaction32 correctly.David Smith2010-01-133-2/+55
| | | | | | | | | | | | | | | | | | | | * 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.
* | map through uretprobe trampoline in an arbitrary taskTim Moore2010-01-134-35/+114
|/ | | | | | | | | * runtime/uprobes2/uprobes.c (uprobe_get_pc_task): new function (lookup_uretprobe): new helper function (uprobe_get_pc): use it * runtime/uprobes2/uprobes.h (uprobe_get_pc_task): declare * runtime/uprobes/uprobes.c : ditto * runtime/uprobes/uprobes.h : ditto
* Removed bogus task_finder error message.David Smith2010-01-131-1/+1
| | | | | * runtime/task_finder.c (__stp_utrace_attach): No longer prints bogus error message when utrace_barrier succeeds.
* Faulty conditionals are parse errors, not semantical errors.Mark Wielaard2010-01-131-0/+0
| | | | | | | | | The test was correct, the given construct should fail. But it fails because it is a parse error, not because it is a semantical error. So move into the right pass1-4 sub-directory. * testsuite/semko/conditional.stp: Moved to... * testsuite/parseko/conditional.stp: ... here.
* PR10493: autoconf for cpu_khzWenji Huang2010-01-132-7/+43
| | | | | | * buildrun.cxx (output_cpu_khz): New function to check cpu_khz. (compile_pass): Invoke function output_cpu_khz. * runtime/time.c : Use STAPCONF_CPU_KHZ.
* Fixed PR 11163 so that syscall.readv/syscall.writev puts fd in argstr for ppc.David Smith2010-01-122-21/+1
| | | | | | | | * tapset/syscalls2.stp (syscall.readv): Removed old ppc hack. (syscall.writev): Ditto. * tapset/nd_syscalls2.stp (nd_syscall.readv): Removed mention of old ppc hack. (nd_syscall.writev): Ditto.
* Add attach to live process tests.Stan Cox2010-01-121-30/+169
| | | | | | | * sdt_misc.exp (sdt_misc.c): New funcs loop_check, int_handler, alrm_handler. (sdt_misc.sdt): Add timer.ms (test attach to a running process): New. (test attach to a running process with .so markers): New.
* Fixed PR 11162 by removing extra 'buf_uaddr' assignment.David Smith2010-01-121-1/+0
| | | | | * tapset/syscalls2.stp (syscall.pwrite32): Remove extra 'buf_uaddr' assignment.
* tweak stap argument checkingFrank Ch. Eigler2010-01-121-38/+22
| | | | * main.cxx (checkOptions): Inline into main(), abeam other option checks.
* new sample script: overcommit failure monitorFrank Ch. Eigler2010-01-126-0/+45
|
* PR10747: check invalid preprocessor constructWenji Huang2010-01-122-2/+23
| | | | | * parse.cxx (scan_pp): Match '%(' and '%?'. * testsuite/semko/conditional.stp: New test.
* Add some additional test cases.Dave Brolley2010-01-111-0/+17
|
* Invalid casess can be tested for 'make check'.Dave Brolley2010-01-111-47/+49
|
* Rework filtering of client options. Add testsuite.Dave Brolley2010-01-114-67/+130
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-111-30/+37
|\
| * Added STP_MAXMEMORY documentation.David Smith2010-01-111-0/+7
| | | | | | | | * stap.1.in: Added STP_MAXMEMORY documentation.
| * Fix extra blank lines in man page output.David Smith2010-01-111-30/+30
| | | | | | | | * stap.1.in: Correct comment syntax to avoid outputting blank lines.
* | Filter options for unprivileged use after --stap-client is seen.Dave Brolley2010-01-112-1/+66
|/
* Add stack walking function for 2.6.33Wenji Huang2010-01-111-0/+14
| | | | | * runtime/stack.c (walk_context_stack): New function. (print_stack_ops): Add function pointer.
* Pull set of semaphore into its own function.Stan Cox2010-01-106-72/+119
| | | | | | | | | | | | | | * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Move sdt_sem_address from standalone to stap_uprobes. Remove sdt_sem_tid. In emitted function stap_uprobe_change_plus distinguish VM_EXEC/VM_WRITE cases, use sdt_sem_address member, move setting of semaphores to new emitted function stap_uprobe_change_semaphore_plus. (stap_uprobe_process_found): Call stap_uprobe_change_semaphore_plus. (stap_uprobe_mmap_found): Likewise. * stap-postgres.stp (postgresrelease): New. Sync to current upstream version. * stap-tcl.sh: Check if wget failed. * stap-tcl.stp: Check for skipped probes. * xulrunner.exp: Check if wget failed.
* tracepoints build fixFrank Ch. Eigler2010-01-091-0/+3
| | | | | | | | * tapsets.cxx (emit_module_decls): #undef TRACE_INCLUDE_FILE in front of each #include'd trace/event header, to prevent macro redefinition. (init_dw): Respect pending_interrupts in traceprobe module compilation loop.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-081-14/+30
|\
| * Fixed PR 11148 by reworking transport directory locks.David Smith2010-01-081-14/+30
| | | | | | | | | | | | | | | | | | | | * runtime/transport/transport.c (_stp_get_root_dir): No longer locks/unlocks the transport directory. (_stp_remove_root_dir): Ditto. (_stp_transport_fs_init): Locks and unlocks the transport directory. Ensures that the root directory can't be deleted between calling _stp_get_root_dir() and creating the module dir. (_stp_transport_fs_close): Locks and unlocks the transport directory.
* | New test suite for client/server argument handling.Dave Brolley2010-01-081-0/+169
|/
* Move PKGLIBDIR variable set to testsuite/Makefile.am for self-contained tests.William Cohen2010-01-085-5/+5
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-071-2/+3
|\
| * Make sure testcase debug output is correct.David Smith2010-01-071-2/+3
| | | | | | | | | | * testsuite/systemtap.base/sdt_misc.exp: Make sure debug output of what we're about to execute actually matches what we're about to execute.
* | Take care when echoing something that could start with a -.Dave Brolley2010-01-071-1/+1
| |
* | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-0736-490/+631
|\|
| * Partial PR 10848 fix. Added testcase for STP_MAXMEMORY.David Smith2010-01-072-20/+107
| | | | | | | | | | | | | | | | | | * runtime/alloc.c (_stp_kmalloc): Renamed 'MAXMEMORY' to 'STP_MAXMEMORY'. (_stp_kzalloc): Ditto. (_stp_vmalloc): Ditto. (_stp_alloc_percpu): Ditto. (_stp_kmalloc_node): Ditto. * testsuite/systemtap.base/maxmemory.exp: New test for STP_MAXMEMORY.
| * Fix multi-piece constant failure in vta-test.exp on 32bit systems.Mark Wielaard2010-01-071-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 73b5e9 "Make sure loc2c declare_noncontig_union for different locs don't overlap", wasn't complete. It only took into account having a piece becuase of a noncontiguous loc and a constant loc together. But pieces can be nested deeper (newer gcc outputs multiple constant locations for one piece on 32bit systems). This patch keeps track of the piece declaration depth. Another approach could have been to have each sub-piece in its own local scope, but keeping track of the depth and naming the temporary unions distinct fitted the current code better. It currently only supports a depth of 10. An error will be emitted if a location construct needs more than 10 pieces to be assembled. * loc2c.c (declare_noncontig_union): Take depth argument. Always use the same name for the union (u_pieces<depth>). (translate_base_fetch): Take depth argument. Use it to calculate union names. (translate_base_store): Likewise. (c_translate_fetch): Pass in depth zero. (c_translate_store): Likewise. (c_translate_pointer): Likewise. (c_translate_pointer_store): Likewise.
| * Make all buildok tests executable.William Cohen2010-01-077-0/+0
| |
| * Merge remote branch 'origin/master'Tim Moore2010-01-069-131/+244
| |\
| | * Fix get_cfa_ops failure on shared libraries.Mark Wielaard2010-01-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | The fix for PR10923 (fafeaf) wasn't completely correct. All cfa lookups need to be done through the relative pc (without bias) of the module we are looking in. * dwflpp.cxx (translate_location): Call get_cfa_ops with relative pc.
| | * Manual cleanupWenji Huang2010-01-066-88/+85
| | | | | | | | | | | | Fix typos and comment unused text.
| | * Partial PR 10848 fix. Added '-DMAXMEMORY=NUM' processing.David Smith2010-01-051-8/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/alloc.c (_stp_mem_debug_validate): New debug function. (_stp_kmalloc): Added MAXMEMORY code to check size of memory used by module. (_stp_kzalloc): Ditto. (_stp_vmalloc): Ditto. (_stp_alloc_percpu): Ditto. (_stp_kmalloc_node): Ditto.
| | * %define -> %global in .spec fileRoland McGrath2010-01-051-32/+32
| | | | | | | | | | | | | | | * systemtap.spec: Use %global in place of %define throughout, it's the recommended syntax.
| * | grapher example with backtraces in eventsTim Moore2010-01-061-0/+19
| |/ | | | | | | * testsuite/systemtap.examples/profiling/graphcall.stp : new file
| * Merge remote branch 'origin/master'Tim Moore2010-01-0510-252/+126
| |\
| | * PR10732 declaration.exp empty-struct fails, resolve-fail passes erroneously.Mark Wielaard2010-01-051-20/+0
| | | | | | | | | | | | * testsuite/systemtap.base/declaration.exp: Remove test.
| | * Make publican invocation make -j safe.Mark Wielaard2010-01-052-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | publican isn't make -j safe. So cheat a little, always create pdf and html at the same time, then make html depend on pdf build for copying. * doc/beginners/Makefile.am ($(SBG).pdf): Also generate html version. ($(SBG).html): Depend on pdf version, then copy. * doc/beginners/Makefile.in: Regenerated.
| | * Reformat/change per Josh's email comments.Robb Romans2010-01-041-53/+77
| | |
| | * Purge sdt utrace support.Stan Cox2010-01-046-172/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sdt.h (UTRACE_SDT): Remove. * tapset-utrace.cxx (utrace_derived_probe): Remove has_library and library. (utrace_derived_probe_group::emit_probe_decl): Remove mmap_callback, sdt_sem_offset, and sdt_sem_address. (utrace_derived_probe_group::emit_module_decls): Remove sdt_sem_offset and sdt_sem_address support. * tapsets.cxx (sdt_var_expanding_visitor): Remove utrace_probe. (sdt_query::handle_query_module) Remove utrace_type. (sdt_query::convert_probe): Likewise. * postgres.exp: Remove utrace testing. * sdt.exp: Likewise. * sdt_misc.exp: Likewise.
| * | bz6436 backtraces from uprobesTim Moore2010-01-058-69/+117
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements proper unwinding from uprobes in the presence of uretprobe trampolines. * runtime/stack.c (_stp_stack_print): Rework for uprobe context case and refactor a bit. * runtime/uprobes2/uprobes.h (GET_PC_URETPROBE_NONE): new constant * runtime/uprobes2/uprobes.c (uprobe_get_pc): Support translating the trampoline function from uprobe context in addition to uretprobe context. * runtime/uprobes/uprobes.h (GET_PC_URETPROBE_NONE): ditto * runtime/uprobes/uprobes.c (uprobe_get_pc): ditto * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Initialize ri in context to GET_PC_URETPROBE_NONE in generated enter_uprobe_probe. * testsuite/systemtap.context/fib.stp: Add an option to do a backtrace on function entry. * testsuite/systemtap.context/fib.exp: Test backtrace in function entry (uprobe) probes.
* / Client argument handling:Dave Brolley2010-01-072-11/+9
|/ | | | | | | Pass partial options to the server instead of complaining about them in the client. Update known failures from buildok in server.exp.
* Change directory of utsrelease.h to include/generated for 2.6.33Wenji Huang2010-01-041-1/+3
|
* Make probe syscall.mmap2 optionalWenji Huang2010-01-041-3/+3
| | | | The function sys32_mmap2 is removed since 2.6.33.
* Add SystemTap_Beginners_Guide to build.Mark Wielaard2010-01-0232-122/+667
| | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Add --enable-publican and --with-publican-brand. Setup "shadow" directory doc/beginners. * Makefile.in: Regenerated. * configure: Regenerated. * doc/Makefile.am (SUBDIRS): Add beginners. * doc/Makefile.in: Regenerated. * doc/SystemTap_Beginners_Guide/en-US/Book_Info.xml (productname): Set to Systemtap. (productnumber): Set to 1.0. * SystemTap_Beginners_Guide/en-US/*.xml: Replace includes from extras/testsuite to ../testsuite, * doc/SystemTap_Beginners_Guide/publican.cfg: Moved to ... * doc/SystemTap_Beginners_Guide/publican.cfg.in: ... here. * doc/SystemTap_Beginners_Guide/Makefile: Removed. * doc/SystemTap_Beginners_Guide/old-syncandbuild.sh: Removed. * doc/SystemTap_Beginners_Guide/syncandbuild.sh: Removed. * doc/SystemTap_Tapset_Reference/Makefile.in: Regenerated. * doc/beginners/Makefile.am: New makefile. * doc/beginners/Makefile.in: New generated file. * grapher/Makefile.in: Regenerated. * systemtap.spec: Add with_publican and publican_brand.
* grapher: workaround for bz 11118Tim Moore2009-12-311-1/+1
| | | | | | * grapher/CairoWidget.cxx (CairoTextBox::draw): Use boost::is_from_range instead of is_any_of. Reports on the net suggest that is_any_of triggers a compiler bug.