summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'origin/master' into pr4225Frank Ch. Eigler2008-08-065-8/+454
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'origin/master': Use relative instead of absolute line. (bug 6611) move post-0.7 news tidbit to the top Add test for $$vars, $$params, $$locals. typographical tweaks for embedded script code Add $$vars, $$parms, $$locals Rename $path to $pathname of syscall tapset for 2.6.27 Correct several tests for 2.6.27 c code generation: assert C indentation/nesting cancels out at appropriate points Tweak test_installcheck for helloworld.meta and traceio2.meta. Run both tests for installcheck tests. No need for random suffix file cmdline and sysinfo files in the Ensure that a systemtap server is available if 'server' is specified session.h (struct systemtap_session): Added itrace_derived_probe * syscalls2.stp: Add sys_unlinkat. Fix on_each_cpu() call for kernels >2.6.26. Remove unused STAPCONF_MODULE_NSECTIONS
| * session.h (struct systemtap_session): Added itrace_derived_probedcn2008-07-291-0/+438
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | group. elaborate.cxx (systemtap_session::systemtap_session): Added initialization of itrace_derived_probes. tapsets.cxx (struct itrace_derived_probe): Add derived_probe struct for holding info needed by itrace probes. (struct itrace_derived_probe_group): New derived_probe_group to handle itrace probes. (itrace_derived_probe::itrace_derived_probe): Needed for use with task_finder. (itrace_derived_probe_group::join_group): Ditto. (itrace_derived_probe_group::enroll): Ditto. (itrace_derived_probe_group::emit_probe_decl): Ditto. (itrace_derived_probe_group::emit_module_decls): Ditto. (itrace_derived_probe_group::emit_module_init): Ditto. (itrace_derived_probe_group::emit_module_exit): Ditto. stapprobes.5.in : Added documentation of itrace probe.
| * Fix on_each_cpu() call for kernels >2.6.26.Josh Stone2008-07-243-0/+12
| | | | | | | | | | | | | | | | This is a generalization of the patch from James Bottomley: http://sources.redhat.com/ml/systemtap/2008-q3/msg00220.html The on_each_cpu() change was merged *after* the 2.6.26 release, so I'm using an autoconf test instead of James' version check.
| * Remove unused STAPCONF_MODULE_NSECTIONSJosh Stone2008-07-242-8/+4
| |
* | Fix i386 dwarf_register_4() to work in uprobe handlers.Jim Keniston2008-08-051-5/+2
| |
* | PR4225: it's alive, alive!Frank Ch. Eigler2008-08-021-1/+1
| |
* | PR4225: signs of lifeFrank Ch. Eigler2008-08-021-0/+14
|/
* No longer allocates structure used to save vma information.David Smith2008-07-213-4/+80
| | | | | | | | | | | | | | | 2008-07-21 David Smith <dsmith@redhat.com> * task_finder_vma.c (__stp_tf_vma_initialize): New function to initialize the free list. (__stp_tf_vma_put_free_entry): Puts a vma entry back on the free list. (__stp_tf_add_vma): Instead of allocating a vma entry, grab one from the free list by calling __stp_tf_vma_put_free_entry(). (__stp_tf_remove_vma_entry): Instead of freeing a vma entry, call __stp_tf_vma_put_free_entry() to put it on the free list instead. * task_finder.c (stap_start_task_finder): Calls __stp_tf_vma_initialize().
* BZ442528 changelogs: ia64 fetch_register speedupsFrank Ch. Eigler2008-07-181-0/+5
|
* PR442528Frank Ch. Eigler2008-07-181-0/+30
|
* support multiple-relocatable-section modules such as hypothetical ↵Frank Ch. Eigler2008-07-175-92/+75
| | | | -ffunction-sections .ko's
* PR6738: restore support for rhel4-era (2.6.9) kernelsFrank Ch. Eigler2008-07-1210-190/+60
|
* PR6736: changelogs for post-merge compiled unwind/symbols data reorganizationFrank Ch. Eigler2008-07-105-3/+31
|
* Merge commit 'origin/master' into pr6429-comp-unwindsymsFrank Ch. Eigler2008-07-095-3/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'origin/master': fix shutdown race condition for scripts that might exit during begin probes Fix PR 6732: Add runtime/autoconf-real-parent.c check for task_struct field. clarify dejagnu test case name for empty-struct changes add changelog entries for last two changes Add test suite for declaration resolution Fix semantic error: empty struct Add hack to support git 1.6 in git_version.sh Sync latest fix for git_version.sh from RadeonHD's tree Slightly cleanup code of translate.cxx PR2111: add general blurbage to stapprobes.5 on syscalls tapset Use `uname -rvm` for checking system compatibility. Generate Add section to stapex manual page on how installed examples are documented. Install examples, demos and samples. Install tutorial and langref manuals.
| * fix shutdown race condition for scripts that might exit during begin probesFrank Ch. Eigler2008-07-092-2/+6
| |
| * Fix PR 6732: Add runtime/autoconf-real-parent.c check for task_struct field.Mark Wielaard2008-07-093-1/+25
| |
* | pass /sys/module/*/sections/* addresses to the kernel module tooFrank Ch. Eigler2008-07-071-7/+83
| |
* | avoid appearing to succeed in stp_relocation() of a symbol for a module that ↵Frank Ch. Eigler2008-07-041-0/+4
| | | | | | | | is not known to be loaded
* | Merge commit 'origin/master' into pr6429-comp-unwindsymsFrank Ch. Eigler2008-07-042-29/+62
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'origin/master': ubuntu (2.6.24-16-server) kernel compatibility fix client/server take 2. See bz6565. Add functioncallcount.meta and functioncallcount.stp. Add para-callgraph.stp and para-callgraph.meta. Fixed __stp_get_mm_path() error return code. diagnostics improvement: print arch/mach at top if -vv Make _vfs.generic_commit_write only for kernel<=2.6.25 Handles "mortally wounded" threads correctly when detaching. further clarify that elfutils need not be absolutely freshest, nor rebuilt every time point out releases/ directory; clarify optionality of elfutils bundling Add auto_free_ref to auto_free stuff; bug 6694
| * Fixed __stp_get_mm_path() error return code.David Smith2008-07-012-6/+19
| | | | | | | | | | | | | | | | | | 2008-07-01 David Smith <dsmith@redhat.com> * task_finder.c (__stp_get_mm_path): Corrected error return code. (__stp_utrace_attach_match_tsk): Ignores ENOENT error from __stp_get_mm_path(). (stap_start_task_finder): Ditto.
| * Handles "mortally wounded" threads correctly when detaching.David Smith2008-06-302-23/+43
| | | | | | | | | | | | | | | | | | | | 2008-06-30 David Smith <dsmith@redhat.com> * task_finder.c (stap_utrace_detach_ops): Removed check to see if thread has a mm (in the case where a thread isn't quite dead yet). (stap_utrace_attach): Minor error handling improvement. (__stp_utrace_attach_match_tsk): Ditto.
* | emit all symbol tables at compile time; don't do any module munging; new ↵Frank Ch. Eigler2008-07-047-872/+84
| | | | | | | | unwinder still disabled
* | transport/symbol rework: kernel-only probes workingFrank Ch. Eigler2008-06-298-16/+29
| |
* | STP_RELOCATE message for kernel relocatability (re)adaption, starting ↵Frank Ch. Eigler2008-06-299-50/+196
| | | | | | | | implementation
* | Merge commit 'origin/master' into pr6429-comp-unwindsymsFrank Ch. Eigler2008-06-275-8/+76
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'origin/master': Always include libdw using link groups. Fix bug in handling process(PID) probes. Added tests for 'process(PID)' variants. This commit makes changes to the VFS tapset. The changes include deprecation of syscalls2.stp: Add sys_renameat. Only probe lines once for the :* wildcard line pattern. Revert checking address in runtime bz451707: fix conversions.exp test $name Cleanup in tapsets.cxx Added powerpc support to runtime/syscall.h. Remove validating _stext due to many aliased symbols PR6646: Add checking address in runtime Fixed offset argument to vm_callback.
| * Revert checking address in runtimeWenji Huang2008-06-252-23/+5
| |
| * Added powerpc support to runtime/syscall.h.David Smith2008-06-242-3/+50
| | | | | | | | | | | | | | 2008-06-24 David Smith <dsmith@redhat.com> From: Srinivasa DS <srinivasa@in.ibm.com> * syscall.h: Added powerpc support.
| * Remove validating _stext due to many aliased symbolsWenji Huang2008-06-241-7/+0
| |
| * PR6646: Add checking address in runtimeWenji Huang2008-06-242-1/+38
| |
| * Fixed offset argument to vm_callback.David Smith2008-06-232-4/+13
| | | | | | | | | | | | | | | | | | 2008-06-23 David Smith <dsmith@redhat.com> * task_finder.c (__stp_utrace_task_finder_target_quiesce): Fixed vm_callback offset by shifting it left PAGE_SHIFT bits. (__stp_target_call_vm_callback): Ditto. (__stp_utrace_task_finder_target_syscall_exit): Ditto.
* | PR6429: remove stapio STP_UNWIND support and associated elfutils dependencyFrank Ch. Eigler2008-06-231-1/+2
|/
* Handle exec's that use a relative path.David Smith2008-06-232-6/+7
| | | | | | | 2008-06-23 David Smith <dsmith@redhat.com> * task_finder.c (__stp_utrace_task_finder_report_exec): Handles relative exec paths correctly.
* Made RHEL5 changes.David Smith2008-06-233-3/+36
| | | | | | | | | 2008-06-23 David Smith <dsmith@redhat.com> * task_finder_vma.c (__stp_tf_vma_hash): Improved determination of whether this is a 64-bit platform. * syscall.h: Handles kernels with older style register definitions.
* Major update to memory map change notification code.David Smith2008-06-234-4/+571
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-23 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe_group::emit_probe_decl): Handles UDPF_NONE value. (utrace_derived_probe_group::emit_vm_callback_probe_decl): New function. (utrace_derived_probe_group::emit_module_decls): Calls emit_vm_callback_probe_decl() to set up vm_callbacks. 2008-06-23 David Smith <dsmith@redhat.com> * task_finder.c (__stp_tf_vm_cb): New function. (stap_register_task_finder_target): Sets up syscall entry and syscall exit handlers. (__stp_find_file_based_vma): New function. (__stp_utrace_task_finder_target_syscall_entry): New function. Saves vma information off at syscall entry. (__stp_target_call_vm_callback): New function. (__stp_utrace_task_finder_target_syscall_exit): New function. Handles changes to memory maps based on information saved at syscall entry. * syscall.h: New file containing syscall function. * task_finder_vma.c: New file containing saved vma information handling functions.
* Removed trailing semicolons from macro definitions.David Smith2008-06-232-2/+6
| | | | | | 2008-06-23 David Smith <dsmith@redhat.com> * regs.h: Removed trailing semicolons from macro definitions.
* Got smarter on which utrace events to set on a newly found thread.David Smith2008-06-172-3/+15
| | | | | | | | | | 2008-06-17 David Smith <dsmith@redhat.com> * task_finder.c (__stp_utrace_attach_match_filename): Uses new __STP_ATTACHED_TASK_EVENTS macro to determine which events to set on a newly found process based on whether the stap_task_finder_target structure has a vm_callback defined. (stap_start_task_finder): Ditto.
* Improved callback handling.David Smith2008-06-162-8/+15
| | | | | | | 2008-06-16 David Smith <dsmith@redhat.com> * task_finder.c (stap_start_task_finder): Improved callback handling.
* Remove STP_UNWIND support in _stp_ctl_write_dbugWenji Huang2008-06-132-4/+3
|
* Very early beginnings of memory map notification support.David Smith2008-06-102-10/+109
| | | | | | | | | | | | | | | 2008-06-10 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe_group::emit_probe_decl): Initializes .vm_callback. 2008-06-10 David Smith <dsmith@redhat.com> * task_finder.c (struct stap_task_finder_target): Added vm_callback public field. (stap_register_task_finder_target): Sets up .report_quiesce handler. (__stp_utrace_task_finder_target_quiesce): New function.
* Made 2.6.25 kernel updates.David Smith2008-06-092-2/+11
| | | | | | | | | | | | | | 2008-06-09 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe::join_group): Removed generated inclusion of tracehook.h. (utrace_var_expanding_copy_visitor::visit_target_symbol): Uses '_stp_arg(0)' to get value of '$syscall'. 2008-06-09 David Smith <dsmith@redhat.com> * task_finder.c (__stp_utrace_task_finder_report_exec): Handles 2.6.25 kernels.
* Changed/renamed utrace probes.David Smith2008-06-062-36/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-06 David Smith <dsmith@redhat.com> * tapsets.cxx (enum utrace_derived_probe_flags): Redefined in terms of probe types instead of utrace events. (utrace_var_expanding_copy_visitor::visit_target_symbol): Uses new utrace_derived_probes_flags values. (utrace_builder::build): Handles new probe types and new utrace_derived_probes_flags values. (utrace_derived_probe_group::emit_probe_decl): Updated to handle new utrace_derived_probe_flags values. (utrace_derived_probe_group::emit_module_decls): Ditto. Also correctly handles 'begin' events correctly by installing a quiesce handler (instead of running the probe directly). (register_standard_tapsets): Registers updated utrace probe types. 2008-06-06 David Smith <dsmith@redhat.com> * task_finder.c: Added some debug logic. Use '-DDEBUG_TASK_FINDER' to enable. (stap_utrace_attach): Renamed from '__stp_utrace_attach'. (__stp_utrace_attach_match_filename): Calls callback with notification that this is a process or thread event. (__stp_utrace_attach_match_tsk): Ditto. (__stp_utrace_task_finder_report_clone): Ditto. (__stp_utrace_task_finder_report_exec): Ditto. (stap_utrace_task_finder_report_death): Ditto. (stap_start_task_finder): Ditto. (stap_stop_task_finder): Added debug logic. 2008-06-06 David Smith <dsmith@redhat.com> * systemtap.base/utrace_p4.exp: Updated for utrace probe changes. * systemtap.base/utrace_p5.exp: Ditto.
* PR6429: remove unused fileFrank Ch. Eigler2008-06-031-97/+0
|
* PR6429: remove stapio STP_UNWIND support and associated elfutils dependencyFrank Ch. Eigler2008-06-036-18/+13
|
* SW5106 Remove old map and histogram formatting codeStan Cox2008-05-29110-7133/+19
|
* Fix powerpc dwarfless argument accessAnanth N Mavinakayanahalli2008-05-291-0/+7
|
* Handle bug #6500 fallout.David Smith2008-05-282-30/+93
| | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe_group::emit_probe_decl): Instead of adding clone handlers, just call the probes directly. (utrace_derived_probe_group::emit_module_decls): For syscall probes, on exec detach the parent's utrace engine from the child. 2008-05-28 David Smith <dsmith@redhat.com> * task_finder.c (__stp_utrace_attach_match_filename): Added register_p parameter, which is passed on to the callback. Only adds death notification if register_p is 1. If register_p is 0, removes death notification. (__stp_utrace_attach_match_tsk): Moved code from __stp_utrace_task_finder_report_clone that handles the details of grabbing a task's path. (__stp_utrace_task_finder_report_clone): Calls new __stp_utrace_attach_match_tsk(). (__stp_utrace_task_finder_report_exec): Notifies upper layer that it might need to detach from newly exec'ed process.`
* Minor improvement to multi-threaded support.David Smith2008-05-282-8/+33
| | | | | | | | | | | | | | | | | | | 2008-05-21 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe_group::emit_module_decls): Added new 'event_flag' parameter to task_finder callback. Only calls probe handlers if we received the correct event. 2008-05-21 David Smith <dsmith@redhat.com> * task_finder.c (__stp_utrace_attach_match_filename): Added event_flag parameter of event to pass to callback. (__stp_utrace_task_finder_target_death): Ditto. (__stp_utrace_task_finder_report_clone): Calls __stp_utrace_attach_match_filename() with new argument. (__stp_utrace_task_finder_report_exec): Ditto. (stap_start_task_finder): Calls callback with an invalid event_flag since this callback call isn't related to an event.
* Add prototypes for using the 2.6.26 probe_kernel_* functions.Josh Stone2008-05-273-35/+105
| | | | | | | | | For now, the autoconf for the new code is disabled, because it shows poorer performance than our existing dereferencing functions. This is probably because ours get inlined and optimized. The code is being committed so that we may re-evaluate its usefulness in the future. This addresses bugzilla 6432.
* Srinivasa DS <srinivasa@in.ibm.com>,PR6429 Inerim fix to avoid compilation ↵Srikar Dronamraju2008-05-251-0/+20
| | | | error of systemtap module
* Fixed PR 6499 (utrace probe crash).David Smith2008-05-162-14/+29
| | | | | | | | | | | | | 2008-05-16 David Smith <dsmith@redhat.com> PR 6499. * task_finder.c (stap_register_task_finder_target): Added error check. (__stp_utrace_task_finder_report_clone): Ditto. (stap_utrace_detach_ops): Uses do_each_thread/while_each_thread instead of for_each_process (which only iterated among process group leaders instead of all threads). (stap_start_task_finder): Ditto.