| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
* print.c (_stp_print): Rewrite to eliminate the strlen()
call and save a bit of time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* mainloop.c (stp_main_loop): Bump recvbuf to 8196 for
compatibility with old transport.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
PR5218
* stapio.c (main): Set initialized properly when
attached.
|
|
|
|
|
| |
with -DHIST_ELISION=<negative #>. Also cleaned up looping code to
prevent unnecessary interation over non-existent buckets.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* autoconf-tsc-khz.c: Not to be compiled if the kernel version is
younger than 2.6.23 on i386.
|
|
|
|
|
| |
PR5000
* vsprintf.c: Remove _stp_endian.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
* autoconf-tsc-khz.c: Fix a bug to be configured correctly.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.c (main): Move checks for init_cap and getuid
from just before command line argument parsing to just after.
|
|
|
|
| |
* runtime/uprobes/uprobes_s390.[ch]: Added
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* user/*: Removed obsolete userspace test files.
|
|
|
|
|
|
|
| |
* common.c (set_clexec): New.
* staprun.h: Add prototype for set_clexec.
* relay*.c, ctl.c: Call set_clexec after
file opens.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
PR 5041
From <michael.gruener@linux.vnet.ibm.com>:
* loc2c-runtime.h (store_register): Add value as macro parameter where
missing.
|
|
|
|
|
| |
uprobes_i386.c, uprobes_i386.h: i386 code
uprobes_arch.c, uprobes_arch.h: map to architecture-specific files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
From Alan Brunelle
* control.c (_stp_ctl_read_cmd): Cast count to an int before printing.
|
|
|
|
|
| |
* transport.h: Increase default buffer size.
* control.c (_stp_ctl_read_cmd): Check buffer size.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
* procfs.c (_stp_create_procfs): Be sure that directories in the path
are really directories and not files.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* procfs.c: New file. Common runtime procfs functions.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* mainloop.c (start_cmd): Set the priority to
forked processes back to normal.
(system_cmd): Ditto.
|
|
|
|
|
| |
* mainloop.c (start_cmd): Set the priority to
forked processes back to normal.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* mainloop.c (start_cmd): Send SIGINT to target_cmd,
not stapio.
|
|
|
|
| |
* stack.c (_stp_kta): Removed.
|
|
|
|
|
|
|
| |
* ioblock.stp: Fix __bio_ino() not to access i_ino if the page is not
assigned to any inode.
* stack-x86_64.c: Fix backtrace to use the value of stack register
instead of its address.
|
|
|
|
|
|
| |
From Lai Jiangshan <laijs@cn.fujitsu.com>
* common.c (parse_args): Make sure the '-c' and '-x' options can't
be specified together.
|
| |
|
|
|
|
|
|
|
|
| |
PR3857
From Masami Hiramatsu
* utt.c (utt_subbuf_start_callback): Use overwrite flag.
* control.c (_stp_ctl_open_cmd): Set overwrite_flag off.
(_stp_ctl_close_cmd): Set overwrite flag on.
|
|
|
|
| |
* bench2/bench.rb: Send HUP to stapio, instead of staprun.
|
|
|
|
| |
* staprun.c (main): Quit if effective uid is not root.
|
|
|
|
|
|
| |
PR4736
* staprun.c (cleanup): Set priority back to normal
before removing module.
|
|
|
|
| |
* stap_merge.tcl: New.
|