summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* From srinivasa@in.ibm.com, To make systemtap to work with register rename ↵srinivasa2008-01-185-4/+122
| | | | patch for x86/x86_64
* PR4037 and fixes to better synchronize staprun and stapio.hunt2008-01-1512-207/+369
|
* Turn DEBUG_MEM off by default.hunt2008-01-151-1/+1
|
* Add support for memory allocation tracking.hunt2008-01-1517-94/+436
|
* PR5603 hack for stack smashfche2008-01-122-2/+7
| | | | | | | 2008-01-12 Frank Ch. Eigler <fche@elastic.org> PR 5603 horrible hack. * symbols.c (do_kernel_symbols): Make buf[256] instead of [128].
* * runtime/uprobes/uprobes_x86_64.c: Fix handling of indirectkenistoj2007-12-271-5/+10
| | | | | jmps and calls that use rip-relative addressing. Allow probing of opcode 0x63.
* 2007-12-11 Martin Hunt <hunt@redhat.com>hunt2007-12-113-17/+27
| | | | | | | PR5368 * relay_old.c (init_oldrelayfs): Don't start threads if load_only. * relay.c (init_relayfs): Ditto.
* 2007-11-14 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-11-141-0/+6
| | | | | | From Cai Fei <caifei@cn.fujitsu.com> * regs-ia64.c (ia64_fetch_register): Fix the bug of fetching register 12 on IA64.
* 2007-11-14 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-11-141-0/+3
| | | | | | From Cai Fei <caifei@cn.fujitsu.com> * regs-ia64.c (ia64_fetch_register): Fix the bug of fetching register 12 on IA64.
* PR 5270kenistoj2007-11-131-0/+6
| | | | | | | | | | | | | * main.cxx: Restored pre-10-08 version: moved uprobes build to buildrun.cxx. * buildrun.cxx: Reworked uprobes build so that the resulting Module.symvers can be used in building the stap-generated module. If user isn't root, call verify_uprobes_uptodate() rather than trying (and failing) to rebuild uprobes.ko. * buildrun.h: uprobes_enabled() and make_uprobes() are no longer extern. * runtime/uprobes/Makefile: Added uprobes.ko target for use by verify_uprobes_uptodate().
* 2007-11-12 Martin Hunt <hunt@redhat.com>hunt2007-11-122-7/+22
| | | | | * print.c (_stp_print): Rewrite to eliminate the strlen() call and save a bit of time.
* 2007-11-09 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2007-11-096-4/+59
| | | | | | | | | | | | | | | | PR3858 * print.c: Add -DRELAY_HOST=<hostname> and -DRELAY_GUEST=<hostname> options support. (_stp_print_flush): Disable irqs if -DRELAY_* option is specified. * print_old.c: Export stp_print_flush to other modules if the -DRELAY_HOST option is specified. * print_new.c: Ditto. * transport.c (_stp_transport_init): Reduce relay buffer size to 64KB*2 if -DRELAY_GUEST is specified. * systemtap.printf/sharedbuf.exp: New test for buffer sharing option. * systemtap.printf/sharedbuf.stp: Ditto. * systemtap.printf/hello.stp: Ditto. * systemtap.printf/hello2.stp: Ditto.
* 2007-11-09 Martin Hunt <hunt@redhat.com>hunt2007-11-095-7/+25
| | | | | | | | | PR 5281 * transport.c (_stp_detach, _stp_attach): Call utt_set_overwrite() instead of setting a flag directly. * utt.c (utt_set_overwrite): New. Set overwrite mode. * relayfs.c (utt_set_overwrite): New. Set overwrite mode. * utt.h: Remove global utt_overwrite_flag.
* 2007-11-09 Martin Hunt <hunt@redhat.com>hunt2007-11-092-1/+6
| | | | | * mainloop.c (stp_main_loop): Bump recvbuf to 8196 for compatibility with old transport.
* 2007-11-01 Martin Hunt <hunt@redhat.com>hunt2007-11-015-33/+54
| | | | | | * procfs.c, control.c, transport.c: Recognize when stapio is detached and disable delayed work. Enable when attached. Cleanup code to destroy workqueue on exit.
* 2007-10-26 Martin Hunt <hunt@redhat.com>hunt2007-10-262-1/+10
| | | | | | PR5218 * stapio.c (main): Set initialized properly when attached.
* stat-common.c: Allow histogram bucket elision to be turned offmmason2007-10-252-29/+41
| | | | | with -DHIST_ELISION=<negative #>. Also cleaned up looping code to prevent unnecessary interation over non-existent buckets.
* uprobes ppc64 ssol changessrikar2007-10-253-14/+124
|
* x86_64 uprobeskenistoj2007-10-222-0/+781
|
* Fixed 10/16 update to arch_validate_probed_insn() decls.kenistoj2007-10-192-2/+3
|
* 2007-10-17 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2007-10-172-0/+9
| | | | | * autoconf-tsc-khz.c: Not to be compiled if the kernel version is younger than 2.6.23 on i386.
* 2007-10-17 Martin Hunt <hunt@redhat.com>hunt2007-10-172-23/+4
| | | | | PR5000 * vsprintf.c: Remove _stp_endian.
* * runtime/uprobes/uprobes.[ch], uprobes_i386.[ch],kenistoj2007-10-166-21/+42
| | | | | | | | | uprobes_ppc64.h, uprobes_s390.h: Adjusted SLOT_IP and arch_validate_probed_insn to accept task pointer (needed by x86_64); added uprobe_probept_arch_info and uprobe_task_arch_info (ditto). * runtime/uprobes/uprobes_i386.c: Fixed a couple of glitches discovered when porting to x86_64
* 2007-10-15 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2007-10-152-1/+5
| | | | * autoconf-tsc-khz.c: Fix a bug to be configured correctly.
* 2007-10-12 Martin Hunt <hunt@redhat.com>hunt2007-10-124-104/+472
| | | | | | | | | | * transport.c (_stp_ask_for_symbols): Don't ask for transport_info yet. Need to wait until symbols are received. (_stp_work_queue): Rename _stp_ready_q to _stp_ctl_ready_q. * procfs.c: Create a ".symbols" channel and use it for STP_MODULE and STP_SYMBOLS. Rename "cmd" channel to ".cmd". * control.c: Ditto.
* 2007-10-12 Martin Hunt <hunt@redhat.com>hunt2007-10-128-27/+81
| | | | | | | | | | | | | | | | Changes to separate the symbols from the command channel. * cap.c (init_cap): Add CAP_DAC_OVERRIDE. * staprun.h: Change init_ctl_channel prototype. * ctl.c (init_ctl_channel): Modify to open either a command or symbol channel. Use ".cmd" and ".symbols" as the new names. * mainloop.c (init_stapio): Call init_ctl_channel(0); * staprun.c (cleanup): Call stop_symbol_thread(). (main): Call start_symbol_thread(). * staprun_funcs.c (handle_symbols): Make a thread. (start_symbol_thread): New. (stop_symbol_thread): New.
* * staprun error-check reordering for parseko/cmdline* testsfche2007-10-122-9/+16
| | | | | * staprun.c (main): Move checks for init_cap and getuid from just before command line argument parsing to just after.
* * runtime/uprobes/uprobes_ppc64.[ch]: Addedkenistoj2007-10-104-0/+399
| | | | * runtime/uprobes/uprobes_s390.[ch]: Added
* PR 5083kenistoj2007-10-091-13/+38
| | | | | | | * runtime/uprobes/uprobes.c: Adjust module ref-count when creating or removing uprobe_process, so "rmmod --wait uprobes" waits as needed until uretprobed functions return.
* 2007-10-09 Martin Hunt <hunt@redhat.com>hunt2007-10-0911-739/+4
| | | | * user/*: Removed obsolete userspace test files.
* 2007-10-09 Martin Hunt <hunt@redhat.com>hunt2007-10-096-3/+45
| | | | | | | * common.c (set_clexec): New. * staprun.h: Add prototype for set_clexec. * relay*.c, ctl.c: Call set_clexec after file opens.
* PR 5709kenistoj2007-10-088-115/+136
| | | | | | | | | | | | | | | | | | | | | | | * main.cxx: Add pass 4.5: make uprobes.ko in runtime/uprobes * buildrun.cxx: Add uprobes_enabled() and make_uprobes(). Factor run_make_cmd() out of compile_pass(). * buildrun.h: Add uprobes_enabled and make_uprobes decls. * tapsets.cxx: Do correct #include for modprobed uprobes.ko; set need_uprobes in pass 2. * session.h: Add need_uprobes * runtime/staprun/common.c: Add -u option -> need_uprobes * runtime/staprun/staprun_funcs.c: Generalize insert_module() to support inserting uprobes.ko. * runtime/staprun/staprun.c: Add enable_uprobes(). insert_module call becomes insert_stap_module(). * runtime/staprun/staprun.h: Reflect insert_module() and need_uprobes changes * runtime/uprobes/*.[c,h]: uprobes is built as a module, rather than included into the source of the stap-generated module. * runtime/uprobes/Makefile: Added
* 2007-10-02 Frank Ch. Eigler <fche@elastic.org>fche2007-10-022-4/+11
| | | | | | | PR 5041 From <michael.gruener@linux.vnet.ibm.com>: * loc2c-runtime.h (store_register): Add value as macro parameter where missing.
* uprobes.c, uprobes.h: architecture-independent codekenistoj2007-09-286-0/+3073
| | | | | uprobes_i386.c, uprobes_i386.h: i386 code uprobes_arch.c, uprobes_arch.h: map to architecture-specific files
* 2007-09-24 Masami Hiramatsu <mhiramat@redhat.com>hiramatu2007-09-245-32/+108
| | | | | | | | | | | | | | | | | | | | | PR 3916 * buildrun.cxx (compile_pass): Add new autoconf options for checking time related APIs. * time.c (stp_time_t): Rename cpufreq to freq. (__stp_get_freq): Rename from __stp_estimate_cpufreq. Use tsc_khz or cpu_khz if it is available. Use itc_freq on ia64. (__stp_ktime_get_real_ts): New function to get current kernel time. (__stp_time_timer_callback): Call __stp_ktime_get_real_ts to get base time. (__stp_init_time): Ditto. (__stp_constant_freq): New function to check the processor has constant frequency timestamp counter. (_stp_kill_time): Don't use the cpufreq notifier if the processor has constant frequency timestamp counter. (_stp_init_time): Ditto. * autoconf-ktime-get-real.c : New file. * autoconf-constant-tsc.c: Ditto. * autoconf-tsc-khz.c: Ditto.
* PR 5057: histogram zero elisionfche2007-09-222-0/+43
| | | | | | | | | | | | | | | 2007-09-22 Frank Ch. Eigler <fche@elastic.org> PR 5057. * stat-common.c (_stp_stat_print_histogram): Elide consecutive zero rows beyond 2*STAT_ELISION+1. (STAT_ELISION): New parameter, default 2. 2007-09-22 Frank Ch. Eigler <fche@elastic.org> PR 5057. * systemtap.maps/linear_nearlyempty.*: New test for histogram printing elision.
* 2007-09-21 Martin Hunt <hunt@redhat.com>hunt2007-09-212-25/+70
| | | | | | | | PR 5024 * stat-common.c (_stp_stat_print_histogram): Change overflow and underflow handling for linear histograms. (__stp_stat_add): For linear histograms, use under and over buckets.
* 2007-09-21 Martin Hunt <hunt@redhat.com>hunt2007-09-212-1/+5
| | | | | From Alan Brunelle * control.c (_stp_ctl_read_cmd): Cast count to an int before printing.
* 2007-09-20 Martin Hunt <hunt@redhat.com>hunt2007-09-203-5/+9
| | | | | * transport.h: Increase default buffer size. * control.c (_stp_ctl_read_cmd): Check buffer size.
* 2007-09-19 Martin Hunt <hunt@redhat.com>hunt2007-09-192-3/+28
| | | | | | | | | | PR 5042 * procfs.c (_stp_rmdir_proc_module): Warn if removal of /proc/systemtap/module is deferred. Do not defer removal of /proc/systemtap. (_stp_mkdir_proc_module): Call path_release(). Set ownership of /proc/systemtap/module to force deletion to be deferred. (_stp_create_procfs): Set owner of all path components.
* Remove debug.hunt2007-09-141-1/+0
|
* 2007-09-14 Martin Hunt <hunt@redhat.com>hunt2007-09-142-6/+16
| | | | | * procfs.c (_stp_create_procfs): Be sure that directories in the path are really directories and not files.
* 2007-09-14 Martin Hunt <hunt@redhat.com>hunt2007-09-143-38/+14
| | | | | | | | | * ctl.c (init_ctl_channel): Return 1 if the ctl file opened was for the old relayfs transport. * mainloop.c (init_stapio): Don't call using_old_transport(). Use the return of init_ctl_channel() instead. (using_old_transport): Deleted.
* 2007-09-13 David Smith <dsmith@redhat.com>dsmith2007-09-132-10/+15
| | | | | | | | * procfs.c (_stp_procfs_dir_lookup): Added 'const' qualifier to 'dir' parameter. (_stp_create_procfs): Added 'const' qualifier to 'path' parameter. Removed debug prints. (_stp_close_procfs): Removed debug prints.
* 2007-09-12 Martin Hunt <hunt@redhat.com>hunt2007-09-128-144/+193
| | | | | | | | | | | | | | | | | | | | | | | * map-stat.c (_stp_map_new_hstat_log): Set buckets to HIST_LOG_BUCKETS. (_stp_pmap_new_hstat_log): Ditto. (_stp_map_new_hstat_linear): Call _stp_stat_calc_buckets(). (_stp_pmap_new_hstat_linear): Ditto. * stat.h (STP_MAX_BUCKETS): Define.. (HIST_LOG_BUCKETS): Define. * stat.c (_stp_stat_init): Call _stp_stat_calc_buckets(). * stat-common.c (_stp_stat_calc_buckets): New function. Common bucket calculation and error reporting code. (_stp_bucket_to_val): New function. (_stp_val_to_bucket): Renamed and now handles negative numbers. (_stp_stat_print_histogram): Handle negative values in log histograms. (__stp_stat_add): Cleanup.. * map-gen.c (_stp_map_new): Remove buckets param for HIST_LOG. * pmap-gen.c (_stp_pmap_new): Ditto.
* 2007-09-10 Martin Hunt <hunt@redhat.com>hunt2007-09-103-1/+185
| | | | * procfs.c: New file. Common runtime procfs functions.
* 2007-09-10 Martin Hunt <hunt@redhat.com>hunt2007-09-103-40/+22
| | | | | | | * procfs.c (_stp_register_ctl_channel): Call _stp_mkdir_proc_module(). (_stp_unregister_ctl_channel): Call _stp_rmdir_proc_module(). * transport.c: Include ../procfs.c runtime procfs functions.
* 2007-08-31 Martin Hunt <hunt@redhat.com>hunt2007-08-312-0/+2
| | | | | | * mainloop.c (start_cmd): Set the priority to forked processes back to normal. (system_cmd): Ditto.
* 2007-08-31 Martin Hunt <hunt@redhat.com>hunt2007-08-312-0/+8
| | | | | * mainloop.c (start_cmd): Set the priority to forked processes back to normal.
* 2007-08-24 Frank Ch. Eigler <fche@elastic.org>fche2007-08-251-0/+1
| | | | | | | * configure.ac: Check for proper $PROCFLAGS-dependent -lcap. * Makefile.am (staprun_LDADD): Use autoconf variable rather than -lcap literal. * configure, aclocal.m4, Makefile.in, config.in: Regenerated.