summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * PR9995: Test for [installtest_p] && [utrace_p].Mark Wielaard2009-04-021-2/+2
| |
| * Check for utrace in usymbols.exp.Mark Wielaard2009-04-021-2/+3
| |
| * Make task_finder.c compiler if ! defined (CONFIG_UTRACE).Mark Wielaard2009-04-021-2/+28
| | | | | | | | | | | | | | * runtime/task-finder.c: If ! defined (CONFIG_UTRACE) define dummy noop API for sym.c consisting of struct stap_task_finder_target, stap_add_vma_map_info, stap_remove_vma_map_info and stap_find_vma_map_info.
| * PR10019: --skip-badvars to suppress run-time memory errors tooFrank Ch. Eigler2009-04-014-1/+15
| | | | | | | | | | | | | | | | * NEWS: Note this change. * hash.cxx (find_script_hash): Add s.skip_badvars into hash. * translate.cxx (translate_pass): Emit STP_SKIP_BADVARS. * runtime/loc2c-runtime.h (DEREF_FAULT, STORE_DEREF_FAULT): Provide dummy implementation if STP_SKIP_BADVARS.
| * Fix the magic run-stap wrappers even moreJosh Stone2009-04-016-23/+19
| |
| * PR4105: removing redundant buildok/twentysix.stp testFrank Ch. Eigler2009-04-013-9/+0
| |
| * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapRoland McGrath2009-04-0127-322/+526
| |\
| | * introduce [utrace_p] as dejagnu check for utrace presence in kernelFrank Ch. Eigler2009-04-0111-91/+48
| | | | | | | | | | | | | | | | | | * testsuite/lib/systemtap.exp: Define here. * testsuite/systemtap.*/*.exp: Use it here. Eliminate duplicated utrace_support_present logic.
| | * Move testcase itrace3's warning into expectJosh Stone2009-04-011-1/+1
| | | | | | | | | | | | | | | | | | As it was, the ATTENTION was causing expect mismatches even when the test worked fine. The warning is served just as well from the expect script before starting the test.
| | * Add insn.block testcase to itrace.exp in testsuiteMaynard Johnson2009-04-011-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Earlier today, I posted a runtime patch for the insn.block probe point. Once that patch is committed, the insn.block probe can be safely tested on any architecture. The attached patch adds such a testcase to the testsuite. Regards, -Maynard
| | * Fix for insn probe: Call arch_has_*_step() prior to calling utrace_controlMaynard Johnson2009-04-011-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The attached patch is version 2 for the problem I reported earlier today. Frank, is this more what you had in mind? With this patch, there's no need for the user to look at the system log. Error messages are sent to stderr: ERROR: insn probe init: arch does not support block step mode ERROR: probe process("/test").function("doit1@/test.c:22").return registration error (rc -1) -Maynard
| | * Revert "Fix runtime/itrace.c to call arch_has_*_step() prior to calling ↵Josh Stone2009-04-011-13/+0
| | | | | | | | | | | | | | | | | | utrace_control" This reverts commit 489afa702639fd10e9756795bd516d939766247d.
| | * Fix runtime/itrace.c to call arch_has_*_step() prior to calling utrace_controlMaynard Johnson2009-04-011-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As Roland pointed out in his Mar 31 reply to a posting of mine (subject: Re: Testing insn.block probe point uncovers possible utrace bug), utrace_control() documents that the caller must ensure that arch_has_single_step and arch_has_block_step are defined before trying to use those step modes. The attached patch addresses that issue. I've tested this patch on x86_64 arch, and a block step test runs successfully, since block step is supported on that arch. Testing on ppc64 arch, the test fails as expected (since block step is not supported on ppc64 yet) with: "ERROR: callback for <pid> failed: 1" which is sent to stdderr and "usr_itrace_init: arch does not support block step mode" which is sent to the system log. This isn't the most user-friendly way of surfacing an error. Perhaps the stap runtime could have a set of defined return codes that would be mapped to strings so the user can get an idea of what the error is without looking in the system log. But that's a side issue, of course. Regards, -Maynard
| | * PR10016: Purge stap of all pgrp and system() usageJosh Stone2009-04-014-81/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We hereby no longer try to manipulate process groups in any way. We don't set a private process group, and we never kill() our entire group either. Instead of using system(), we now have a stap_system() which saves the child PID, so when we get a terminating signal we can pass it along to the child. Signals sent through the TTY have always worked, since the TTY sends it to the entire pgrp. However, if we're running as part of a wrapper script or GUI, which may not have a separate process group for stap, we still would like to allow "kill -TERM $STAPPID" to terminate stap nicely. There's still a short window of failure in the time that staprun is active, because we can't kill a setuid process from a user process. Once staprun drops privileges and execs to stapio though, everything should work fine.
| | * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapMark Wielaard2009-04-011-1/+1
| | |\
| | | * PR10020 sys_sigaltstack param changeFrank Ch. Eigler2009-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The new code uses a %( kernel_v < "2.6.29" %) conditional to look at the passed pt_regs instead of named *bx parameters. A more general solution will be needed at some point.
| | * | Move #endif for STP_NEED_VMA_TRACKER up to not cover other utrace callbacks.Mark Wielaard2009-04-011-1/+1
| | | | | | | | | | | | | | | | * tapsets.cxx (utrace_derived_probe_group::emit_module_init): Correct #endif.
| | * | Merge branch 'master' into pr6866Mark Wielaard2009-04-0180-2845/+5042
| | |\|
| | * | Wrap vma callbacks in STP_NEED_VMA_TRACKER.Mark Wielaard2009-04-012-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Will be defined by new ucontext symbol stapset. * tapset.cxx: Wrap all vma callbacks in STP_NEED_VMA_TRACKER. * testsuite/systemtap.context/usymbols.exp: Define STP_NEED_VMA_TRACKER explicitly for now.
| | * | Merge branch 'master' into pr6866Mark Wielaard2009-03-2232-210/+893
| | |\ \
| | * | | Emit vma callbacks for uprobes.Mark Wielaard2009-03-202-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Emit vma callbacks. (uprobe_derived_probe_group::emit_module_init): Activate vma callbacks. * testsuite/systemtap.context/usymbols.exp: Track through uprobes, so as to make sure we have the symbols.
| | * | | Emit vma callbacks for itrace.Mark Wielaard2009-03-201-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tapsets.cxx (itrace_derived_probe_group::emit_module_decls): Emit vma callbacks. (itrace_derived_probe_group::emit_module_init): Activate vma callbacks.
| | * | | Explicitly emit utrace vma callbacks.Mark Wielaard2009-03-201-48/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tapsets.cxx (utrace_derived_probe_group::emit_vm_callback_probe_decl): Removed. (emit_vma_callback_probe_decl): New static helper function. (utrace_derived_probe_group::emit_module_decls): Emit vma callbacks. (utrace_derived_probe_group::emit_module_init): Activate vma callbacks.
| | * | | Move _stp_tf_vm_cb to sym.c.Mark Wielaard2009-03-202-41/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tapsets.cxx (utrace_derived_probe_group::emit_module_decls): Remove output task finder vma callback _stp_tf_vm_cb. * runtime/sym.c (_stp_tf_vm_cb): And add it here.
| | * | | Don't double include task_finder.c.Mark Wielaard2009-03-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * tapsets.cxx (itrace_derived_probe_group::emit_module_decls): Don't emit another include task_finder.c. Already done through runtime.h.
| | * | | Merge branch 'master' into pr6866Mark Wielaard2009-03-2018-79/+187
| | |\ \ \
| | * | | | Remove __stp_tf_vm_cb from task_finder interface.Mark Wielaard2009-03-192-36/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/task_finder.c (__stp_tf_vm_cb): Removed. * tapsets.cxx (utrace_derived_probe_group::emit_module_decls): Output task finder vma callback and hook it.
| | * | | | Initialize user and vm_start before use.Mark Wielaard2009-03-191-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | * runtime/sym.c (_stp_mod_sec_lookup): Initialize user and vm_start.
| | * | | | Get rid of __stp_tf_get_vma_entry_addr function.Mark Wielaard2009-03-192-43/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/task_finder_vma.c (__stp_tf_get_vma_entry_addr): Deleted. (struct __stp_tf_vma_entry): Replace module by user void* field. (stap_add_vma_map_info): Take a void *user arg. (stap_find_vma_map_info): Take a void **user arg. * runtime/sym.c (_stp_mod_sec_lookup): Use stap_find_vma_map_info.
| | * | | | Replace mutex in task_finder_vma with rwlock to be interrupt context safe.Mark Wielaard2009-03-181-31/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/task_finder_vma.c: Replace all mutex calls with appropriate read or write (un)lock calls.
| | * | | | Merge branch 'master' into pr6866Mark Wielaard2009-03-1812-102/+134
| | |\ \ \ \
| | * | | | | Make stap_run send_log of command to execute.Mark Wielaard2009-03-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/lib/stap_run.exp (tap_run): Add send_log of cmd.
| | * | | | | Merge branch 'master' into pr6866Mark Wielaard2009-03-17154-2000/+12939
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolved conflicts: runtime/task_finder.c: name vs path.
| | * | | | | | Adjust ET_DYN symbol addresses against module base.Mark Wielaard2009-02-211-31/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * translate.cxx (dump_unwindsyms): Adjust sym_addr for ET_DYN always against module base as workaround for buggy elfutils < 0.138.
| | * | | | | | Merge branch 'master' into pr6866Mark Wielaard2009-02-20221-24130/+9178
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog: Removed runtime/ChangeLog: Removed runtime/sym.c: Merged runtime/task_finder.c: Merged tapset/ChangeLog: Removed testsuite/ChangeLog: Removed
| | * \ \ \ \ \ \ Merge branch 'master' into pr6866.Mark Wielaard2009-01-2390-3141/+8090
| | |\ \ \ \ \ \ \
| | * | | | | | | | dump_unwindsyms: Adjust against correct p_vaddr.Mark Wielaard2008-12-172-8/+24
| | | | | | | | | |
| | * | | | | | | | Simplify dwfl_module_relocate_address workaround.Mark Wielaard2008-12-162-20/+23
| | | | | | | | | |
| | * | | | | | | | Compile and use helper usymbols_lib.c library for usymbols.exp test.Mark Wielaard2008-12-154-30/+73
| | | | | | | | | |
| | * | | | | | | | context-symbols.stp (probefunc): Call _stp_symbol_snprint with current task.Mark Wielaard2008-12-152-4/+6
| | | | | | | | | |
| | * | | | | | | | Always include task_finder.c and enable emit_vm_callback_probe_decl.Mark Wielaard2008-12-156-23/+31
| | | | | | | | | |
| | * | | | | | | | Work around buggy dwfl_module_relocate_address in dump_unwindsyms.Mark Wielaard2008-12-152-3/+25
| | | | | | | | | |
| | * | | | | | | | PR6866: First pass at translating addresses to symbol names through vma.Mark Wielaard2008-12-1013-27/+238
| | | | | | | | | |
| * | | | | | | | | Fix sudo magic wrappers for run-stap devel script.Roland McGrath2009-04-015-4/+67
| | |_|_|_|_|_|_|/ | |/| | | | | | |
| * | | | | | | | Use alloca trick to keep argN active on GCC 4.1.Stan Cox2009-04-013-17/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * includes/sys/sdt.h (STAP_UNINLINE): New. (STAP_UNINLINE_LABEL): New. static_uprobes.exp: Match using charset instead of .*
| * | | | | | | | testsuite/systemtap.context/*.tcl: Don't wait 4 whole minutes for timeout.Mark Wielaard2009-04-014-4/+4
| | | | | | | | |
| * | | | | | | | context.exp: log which subtest is being sourced.Mark Wielaard2009-04-011-0/+1
| | | | | | | | |
| * | | | | | | | PR4105: support up to 9 (up from 5) array index dimensionsFrank Ch. Eigler2009-04-014-0/+697
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/map-gen.c, pmap-gen.c: Hand-expand arity 6..9 cases throughout. * testsuite/buildok/thirty.stp: New test. * testsuite/buildko/two.stp: New test. An Alan Smithee patch.
| * | | | | | | | semok/badvar.stp test: add stap -p2 as for other semok testsFrank Ch. Eigler2009-04-011-1/+3
| | | | | | | | |
* | | | | | | | | Merge branch 'master' of ssh://kenistoj@sources.redhat.com/git/systemtapJim Keniston2009-03-3170-2831/+4313
|\| | | | | | | |