summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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.
* Regenerate examples index to include new memory/vm.tracepoints.stp.Mark Wielaard2009-12-304-1/+63
|
* Fixup some memory tapset vm kernel function probe fallbacks.Mark Wielaard2009-12-293-20/+53
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove all caching from _stp_module_relocate.Mark Wielaard2009-12-291-38/+13
| | | | | | | | | | | This function now also does user space address relocation. The connection with module loading/unloading was removed in commit 1b94bf which made all symbol tables emitted at compile time. _stp_module_relocate is called from the dwarf unwinder, and when doing some of the symbol lookup through dwflpp::emit_adress now. * runtime/sym.c (_stp_module_relocate): Remove last, last_sec and last_tsk caching and invalidation code.
* Guard SDEV_BLOCK and SDEV_CREATED_BLOCK in tapset/scsi.stp with #ifdef.Mark Wielaard2009-12-291-0/+4
| | | | | Older kernels didn't define these constants, which are only used in the tapset/scsi.stp describe_device_state() function.
* Set last_tsk in runtime/sym.c _stp_module_relocate.Mark Wielaard2009-12-291-0/+1
| | | | last_tsk was checked but never set. Noticed by Wenji Huang.
* Extend skipped.exp test timeout for slower machines.Mark Wielaard2009-12-281-1/+1
|
* Fix test output for PR10849 make MAXSKIPPED overflow trigger an error messageMark Wielaard2009-12-281-5/+8
|
* Define __GFP_MOVABLE GFP_ZONEMASK __GFP_NOTRACK in memory.stp if not there.Mark Wielaard2009-12-281-0/+16
| | | | | Older kernels might not have these defines available, so define them if not yet there.
* XFAIL PR10732 declaration.exp empty-struct always fails.Mark Wielaard2009-12-281-0/+1
|
* Merge remote branch 'origin/master'Tim Moore2009-12-2351-5344/+7337
|\
| * ppc stack: transcribe portions of modern kernel ppc/.../asm/ptrace.hFrank Ch. Eigler2009-12-221-0/+18
| | | | | | | | | | * runtime/stack-ppc.c (__stp_stack_print): Define STACK_FRAME_LR_SAVE, STACK_FRAME_REGS_MARKER,STACK_FRAME_MARKER, etc.
| * sdt.h semaphore: use get_user / put_user instead of __access_process_vm.Frank Ch. Eigler2009-12-223-19/+14
| | | | | | | | | | | | * translate.cxx (translate_pass): Don't #include <access_blah.> * tapsets.cxx, tapset-utrace.cxx: Replace __access_process_vm() calls with get_user() / put_user() respectively.
| * AUTHORS bumpJosh Stone2009-12-221-0/+2
| |
| * Fixed ia64 compile problem with runtime/stack-ia64.c.David Smith2009-12-221-1/+2
| | | | | | | | * runtime/stack-ia64.c (__stp_stack_print): Added new 'ri' parameter.
| * Updates to SCSI tapset scsi.stp and corresponding testcasesAndre Detsch2009-12-222-30/+139
| |
| * Update tapset related to struct inet_sock for 2.6.33Wenji Huang2009-12-224-0/+40
| | | | | | | | | | | | | | * tapset/inet_sock.stp : Add prefix "inet_" to field. * tapset/ip.stp : Ditto. * tapset/tcp.stp : Ditto. * tapset/tcpmib.stp : Ditto.
| * Tracepoint based tapset for memory - changes to NEWS and tapset/memory.stp ↵Rajasekhar Duddu2009-12-222-0/+268
| | | | | | | | that got left out in earlier commit 0c487e433fd6343e49b1e9dbc6492f38cfe26143.
| * Fixed compilation on f11.David Smith2009-12-211-0/+1
| | | | | | | | * runtime/task_finder.c: Fixed last checkin.
| * Incremented version number for release 1.1.David Smith2009-12-2113-3797/+5017
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS: Set version number. * configure.ac: Incremented version number. * systemtap.spec: Incremented version number and added changelog entry. * testsuite/configure.ac: Ditto. * Makefile.in: Regenerated. * aclocal.m4: Ditto. * configure: Ditto. * doc/Makefile.in: Ditto. * doc/SystemTap_Tapset_Reference/Makefile.in: Ditto. * grapher/Makefile.in: Ditto. * testsuite/Makefile.in: Ditto. * testsuite/aclocal.m4: Ditto. * testsuite/configure: Ditto.
| * PR11113 fix. Support new utrace API.David Smith2009-12-214-4/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tapset-utrace.cxx (utrace_derived_probe_group::emit_module_decls): Handles new utrace api. * runtime/itrace.c (usr_itrace_report_signal): Ditto. (usr_itrace_report_clone): Ditto. (usr_itrace_report_death): Ditto. * runtime/task_finder.c (__stp_utrace_task_finder_report_clone): Ditto. (__stp_utrace_task_finder_report_exec): Ditto. (__stap_utrace_task_finder_report_death): Ditto. (__stp_utrace_task_finder_target_death): Ditto. (__stp_utrace_task_finder_target_quiesce): Ditto. (__stp_utrace_task_finder_target_syscall_entry): Ditto. (__stp_utrace_task_finder_target_syscall_exit): Ditto. * runtime/uprobes2/uprobes.c (uprobe_report_signal): Ditto. (uprobe_report_quiesce): Ditto. (uprobe_report_exit): Ditto. (uprobe_report_clone): Ditto. (uprobe_report_exec): Ditto.
| * PR11112: Check the full %m/M buffer, and limit the lengthJosh Stone2009-12-211-13/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already had code in place to try a deref on the requested memory buffer, but it was missing the static-precision case. Thus, it was possible to craft an address that would pass the check on the first byte but would pagefault at the end of the buffer. While we're at it, we should also be limiting the number of bytes in such a read, so even legitimately-huge buffers won't chew up kernel time. I've arbitrarily chosen 1024 as the limit, but we can revisit that later. (see also PR10490) TODO: we need a reliable testcase where a starting address is valid but the end address is bogus. In PR11112, the reproducer was using a huge precision to run off the heap, but we need something that will consistently work even with <1024 length.
| * NEWS entry for client/server/cert tools reorg.Dave Brolley2009-12-211-0/+14
| |
| * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-12-215-32/+80
| |\
| | * Cleanup in testsuite/system.appsStan Cox2009-12-213-19/+40
| | | | | | | | | | | | | | | | | | * mysql.exp (stap-mysql.sh): Shutdown properly. * xulrunner.exp: Run depending on SYSTEMTAP_TESTAPPS env (stap-xul.sh): Fix xulrelease. Add mozjs-dtrace.o to js link line.
| | * PR11038 Trailing semicolon as null-statement confusing.Mark Wielaard2009-12-212-13/+40
| | | | | | | | | | | | | | | | | | * parse.cxx (parser::parse_statement): Squash semicolon after non-block-like statements. * testsuite/buildok/semicolon.stp: New test.
| * | Typo: @bindir -> @bindir@Dave Brolley2009-12-211-1/+1
| | |
| * | PR 10905: initscript improvements.Dave Brolley2009-12-219-1345/+1402
| | | | | | | | | | | | | | | | | | Make the stap-server initscript available as $bindir/stap-server Reimplement the stap-server initscript as a thin wrapper around $bindir/stap-server.
| * | Make sure we log server activity when testing using a server.Dave Brolley2009-12-211-1/+10
| | |
| * | Get PATH correct for fidning libexec tools for installcheck.Dave Brolley2009-12-211-4/+4
| | |
| * | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-12-2135-1568/+2075
| |\|
| | * PR10601: cleanup for i386, x86-64Frank Ch. Eigler2009-12-211-7/+16
| | | | | | | | | | | | | | | | | | * runtime/loc2c-runtime.h (usr_i386): Fix si/di ordering. Add ip. (usr_x86_64): Add rip. (u_*_register): Use kernel standard ARRAY_SIZE() instead of S().
| | * Merge remote branch 'origin/master'Tim Moore2009-12-2111-83/+269
| | |\
| | | * PR11015 Support shared library reloading (in different processes)Mark Wielaard2009-12-218-83/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/task_finder_vma.c (stap_remove_vma_map_info): Return negative status on failure. (stap_find_vma_map_info): Likewise. (stap_find_vma_map_info_user): New function. (stap_drop_vma_maps): New function. * runtime/sym.h (addr): Renamed to static_addr, to store addresses for sections which are always mapped at the same address. (_stp_module_relocate): Add extra struct task_struct *tsk argument. * runtime/sym.c (_stp_tf_exec_cb): New callback, calls stap_drop_vma_maps. (_stp_tf_mmap_cb): Don't store address in module.section, but call stap_add_vma_map_info() per tsk->group_leader for matched module. Don't register empty/null modules. (_stp_module_relocate): Take extra struct task_struct *tsk argument, cache last tsk used. Only use section->static_addr for none dynamic modules. Use stap_find_vma_map_info_user() to locate dynamic modules. (_stp_mod_sec_lookup): Add extra argument unsigned long *rel_addr to optionally store relative address when module/section found. (_stp_kallsyms_lookup): Use _stp_mod_sec_lookup to find relative address. (_stp_sym_init): Register _stp_tf_exec_cb in stap_task_finder_target. Add error check to see if task finder could be initialized. * dwflpp.cxx (emit_address): Pass NULL for kernel/modules and current for user tasks to _stp_module_relocate. * runtime/transport/symbols.c (_stp_do_relocation): Set new static_addr _stp_section field. * runtime/unwind.c (adjustStartLoc): Take new struct task_struct *tsk argument and pass to stap_find_vma_map_info_user and _stp_module_relocate to find adjusted addr. (_stp_search_unwind_hdr): Pass through struct task_struct *tsk. (unwind_frame): Likewise. * tapset/context-symbols.stp (probemod): Add NULL to _stp_mod_sec_lookup call to indicate we aren't interested in relative address. * tapsets.cxx (dwarf_derived_probe_group::emit_module_init): Pass NULL to _stp_module_relocate to indicate kernel/module address.
| | | * Tracepoint based tapset for memory subsystem.Rajasekhar Duddu2009-12-213-0/+62
| | | |
| * | | Look for stap-start-server and stap-stop-server in libexec.Dave Brolley2009-12-211-2/+2
| | | |
| * | | Typos in install and rpm spec.Dave Brolley2009-12-213-5/+5
| | | | | | | | | | | | | | | | | | | | o add / suffix to stap_pkglibexecdir o typo: %{name%} -> %{name}
| * | | Install %{libexecdir}/%{name}/stapio explicitely.Dave Brolley2009-12-211-0/+1
| | | |
| * | | Don't install the entire %{libexecdir}/%{name} directory.Dave Brolley2009-12-211-1/+0
| | | |