summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* 2007-03-18 Martin Hunt <hunt@redhat.com>hunt2007-03-185-11/+14
| | | | | * stack.c, string.c, sym.c, transport/symbols.c: Fix some signed vs unsigned comparison warnings.
* *** empty log message ***hunt2007-03-181-3/+1
|
* 2007-03-18 Martin Hunt <hunt@redhat.com>hunt2007-03-187-540/+51
| | | | | | | | | | | | * staprun.h (VERSION_CMD): Command to use for version check. Changes to support runtime decision on new or old transport. * mainloop.c (init_staprun): Check the kernel version at runtime instead of at compile time. (cleanup_and_exit): Call the correct relayfs close function. (stp_main_loop): Call the correct relayfs init function. * relay.c: Remove ifdef wrapper. File is always compiled and used if the kernel version is appropriate. * relay_old.c: Ditto.
* 2007-03-14 Martin Hunt <hunt@redhat.com>hunt2007-03-1418-3649/+4
| | | | | * stpd: Remove directory. * relayfs: Remove directory.
* 2007-03-14 Martin Hunt <hunt@redhat.com>hunt2007-03-1413-144/+344
| | | | | | | | | | | | | | | | | | | | * bench2/bench.rb: Updated to work with new transport and new itest.c. * bench2/Makefile: Updated for new itest.c * bench2/itest.c: Rewritten to use multiple threads and automatically divide the workload among the threads. * print.c (_stp_print_flush): Move to print_new.c and print_old.c. * print_new.c: New file containing _stp_print_flush() for the new transport. * print_old.c: Ditto for old transport. * runtime.h (STP_OLD_TRANSPORT): Define (errk): Define. (MAXSTRINGLEN): Define if not already defined. * io.c (_stp_vlog): Use _stp_ctl_write().
* 2007-03-14 Martin Hunt <hunt@redhat.com>hunt2007-03-1410-543/+915
| | | | | | | | | | | | | | | | * transport_msgs.h: ifdef old messages as such. Add support for new transport. * relayfs.c: Simplify and add new interface to look like utt. * utt.[ch]: New files. Similar to the proposed utt interface. These setup and teardown relayfs on debugfs. * control.c: New file. Implements a simple control channel. A small subset of procfs.c. * procfs.c: This is now only used for old kernels lacking newer relayfs. Change STP_RELAYFS to STP_BULKMODE. Use new messages from transport_msgs.h. Don't support RELAYFS_CHANNEL_VERSION >= 4. CHanges all control channel functions to new names. Use pids instead of module names in /proc names.
* 2007-03-14 Martin Hunt <hunt@redhat.com>hunt2007-03-1412-0/+2416
| | | | | | | | | | | | | | | * staprun.c: Renamed from stpd.c. Removed quiet and print_only options. Added "-x" option as an alias for "-t". Removed "-m" option. Updated arg processing to leave 4 slots for modoptions[]. Bump the priority of staprun. * ctl.c: New. Transport control channel functions. * relay.c: New. Relayfs control functions for new transport. * relay_old.c: New. Relayfs control functions for older versions of relayfs. * mainloop.c: New. Staprun main loop. * staprun.h: Renamed from librelay.h. Cleaned up. * stap_merge.c: Renamed. Updated for modified save format.
* 2007-03-13 Frank Ch. Eigler <fche@redhat.com>fche2007-03-141-0/+1
| | | | | | | | | | | | | | | | | | | | PR 4171. * Makefile.am (check, installcheck): Pass build-tree pointers in environment variables. * configure.ac: Run separate configury for testsuite/. * configure, Makefile.in: Regenerated. 2007-03-14 Frank Ch. Eigler <fche@redhat.com> PR 4171. * configure.ac, configure, aclocal.m4: New files to permit testsuite-only build tree. * Makefile.am (RUNTEST): Arrange a crazy concoction of environment/make variable for runtest. * Makefile.in: Regenerated. * */*.stp: Switch test cases from "./stap" to "stap" throughout. * lib/systemtap.exp: Assume/trace environment variables. (stap_run_batch): Add "#! stap"-handling hack.
* 2007-03-12 Frank Ch. Eigler <fche@elastic.org>fche2007-03-124-20/+21
| | | | | | | | | | * librelay.c (init_stp): Use /proc/MODULE rather than /proc/systemtap/MODULE. 2007-03-12 Frank Ch. Eigler <fche@elastic.org> * procfs.c (_stp_register_procfs): Use /proc/MODULE rather than /proc/systemtap/MODULE.
* 2007-03-12 Frank Ch. Eigler <fche@redhat.com>fche2007-03-125-18/+47
| | | | | | | | | | | | | PR 4179. Based on patch from Vasily Averin <vvs@sw.ru>: * time.c (_stp_init_time): Recover from partial failures. 2007-03-12 Frank Ch. Eigler <fche@redhat.com> PR 4179. Based on patch from Vasily Averin <vvs@sw.ru>: * procfs.c (_stp_register_procfs): Recover from partial failures. * transport.c (_stp_transport_open): Ditto.
* Fix ChangeLog whitespace errors.roland2007-03-091-19/+38
|
* Rewrote s390x version of __stp_put_asm and __stp_put_asm to do singledwilder2007-03-012-34/+21
| | | | byte writes.
* loc2c-runtime.h: Added defines for EX_TABLE needed by olderdwilder2007-02-272-0/+24
| | | | s390 kernels that do not already have it defined.
* Changed the s390 versions of __stp_put_asm __stp_get_asm to use EX_TABLE ↵dwilder2007-02-261-56/+2
| | | | macro eliminating the need for both a s390 and s390x version of these functions. This alos fixed an aligment problem building the the exception table.
* * printf format warning fixfche2007-02-251-1/+1
|
* The s390x version of store_deref was missed named, I fixed it.dwilder2007-02-121-1/+1
|
* 2007-02-07 Martin Hunt <hunt@redhat.com>hunt2007-02-073-1/+10
| | | | | | | * stack-ppc64.c (__stp_stack_print): Remove an old reference to the string length and instead limit backtraces to MAXBACKTRACE. * stack.c: Define MAXBACKTRACE
* 2007-02-06 Josh Stone <joshua.i.stone@intel.com>jistone2007-02-062-10/+10
| | | | | | | | runtime/ * loc2c-runtime.h (kread): Let it work with const types. testsuite/ * systemtap.base/deref.stp: Test kread with const sources.
* 2007-01-31 Martin Hunt <hunt@redhat.com>hunt2007-01-3121-825/+590
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * string.c (_stp_string_init): Deleted. (_stp_sprintf): Deleted. (_stp_vsprintf): Deleted. (_stp_string_cat_cstr): Deleted. (_stp_string_cat_string): Deleted. (_stp_string_cat_char): Deleted. (_stp_string_ptr): Deleted. (_stp_string_cat): Deleted. (_stp_snprintf): Moved from vsprintf.c. (_stp_vscnprintf): Moved from vsprintf.c. * string.h (STP_STRING_SIZE): Deleted. (STP_NUM_STRINGS): Deleted. Remove all references to type "String". * vsprintf.c (_stp_vscnprintf): Moved to string.c. (_stp_snprintf): Moved to string.c * sym.c (_stp_symbol_sprint): Replaced with _stp_symbol_print, which writes to the print buffer. (_stp_symbol_sprint_basic): Replaced with _stp_symbol_snprint. * runtime.h: Include io.c. * stat-common.c: Use new _stp_print* functions. * stat.c: Ditto. * regs.c: Renamed to regs-ia64.c. * current.c: Renamed regs.c. * regs-ia64.c: New file (renamed from regs.c). * stack.c (_stp_stack_sprint): Renamed _stp_stack_print and now just prints to the print buffer. Calls __stp_stack_print instead of __stp_stack_sprint. (_stp_stack_snprint): New function. Calls _stp_stack_print and then copies the print buffer into a string. (_stp_stack_printj): Deleted. (_stp_ustack_sprint): Deleted. * stack-*.c: Rewritten to print instead of writing to strings. Uses new _stp_print* functions. * print.c (_stp_printf): Create new function instead of macro. (_stp_print): Ditto. (_stp_print_char): New function. * map.c: Use _stp_print() and _stp_print_char() instead of _stp_print_cstr(). * io.c (_stp_vlog): Use _stp_print() instead of _stp_string_cat_cstr(). * copy.c (_stp_string_from_user): Deleted.
* 2007-01-30 Martin Hunt <hunt@redhat.com>hunt2007-01-302-8/+12
| | | | * symbols.c: Comment out many debug lines.
* 2007-01-30 Martin Hunt <hunt@redhat.com>hunt2007-01-304-15/+37
| | | | | | | | | | | * io.c (_stp_vlog): Use dynamic percpu allocations instead of very wasteful static allocations. * print.c (_stp_print_init): Do percpu allocations for io.c. (_stp_print_cleanup): Free percpu allocations. * string.c (_stp_sprintf): Overflow check needed to be >= instead of >.
* 2007-01-30 Martin Hunt <hunt@redhat.com>hunt2007-01-304-69/+18
| | | | | | | | | | | * alloc.c (_stp_alloc_percpu): Don't implement our own; just call __alloc_percpu with appropriate args for the OS version. (_stp_free_percpu): Delete. * map.c (_stp_map_init): When calling kmalloc_node, first call cpu_to_node() to get the proper node number. * stat.c (_stp_stat_del): Call free_percpu() instead of _stp_free_percpu().
* nonefche2007-01-291-1/+2
|
* 2007-01-29 Martin Hunt <hunt@redhat.com>hunt2007-01-294-7/+15
| | | | | | * procfs.c: Count allocated IO memory. * symbols.c: Use _stp_kmalloc() and _stp_kzalloc(). * transport.c: Count allocated IO memory.
* 2007-01-29 Martin Hunt <hunt@redhat.com>hunt2007-01-296-9/+63
| | | | | | | | | | * alloc.c (_stp_kmalloc): New function. Call kmalloc with the coirrect flags and track usage. (_stp_kzalloc): Ditto. * map.c: Use new alloc calls. * print.c: Ditto. * stat.c: Ditto. * time.c: Ditto.
* .roland2007-01-261-30/+34
|
* 2007-01-25 Roland McGrath <roland@redhat.com>roland2007-01-261-1/+1
| | | | * loc2c-runtime.h (store_deref): Use "Zr" constraint for 64-bit case.
* 2007-01-22 Josh Stone <joshua.i.stone@intel.com>jistone2007-01-232-20/+29
| | | | | | | | | runtime/ * loc2c-runtime.h (kread, kwrite): Tweaks to work better with reading and writing pointer values. testsuite/ * systemtap.base/deref.stp: Rewrite test, and now also check the ability to read/write pointers.
* Fix for kallsyms problemhunt2007-01-221-11/+7
|
* 2007-01-22 Martin Hunt <hunt@redhat.com>hunt2007-01-222-0/+39
| | | | * map-gen.c (_stp_map_exists): New. Check for membership only.
* 2007-01-19 Josh Stone <joshua.i.stone@intel.com>jistone2007-01-202-1/+46
| | | | | | | | | | | | | PR 3079 runtime/ * loc2c-runtime.h (kread, kwrite): New macros to safely read/write values from kernel pointers. This includes a workaround for 64-bit numbers on i386 platforms. testsuite/ * systemtap.base/deref.stp: Use the new kread macro that should work fine with 64-bit numbers on i386 platforms. Also expand the test to include writes with kwrite. * systemtap.base/deref.exp: Remove the setup_kfail.
* 2007-01-10 Martin Hunt <hunt@redhat.com>hunt2007-01-104-41/+122
| | | | | | | | | | | | | | | PR 3708 * map.c (str_copy): Check for NULL pointers. (_new_map_set_int64): Don't check val for 0. (_new_map_set_str): Don't check val for NULL. * map-gen.c (VAL_IS_ZERO): Removed. (_stp_map_del): New. (__stp_map_set): Don't check for zero. * pmap-gen.c (VAL_IS_ZERO): Removed. (_stp_pmap_del): New. (__stp_pmap_set): Don't check for zero.
* 2007-01-09 Martin Hunt <hunt@redhat.com>hunt2007-01-092-4/+10
| | | | | | * symbols.c (_stp_del_module): Fix so memory allocated for module 0 (kernel) is freed. (_stp_free_modules): No need to lock module list.
* 2006-12-20 Martin Hunt <hunt@redhat.com>hunt2006-12-202-0/+5
| | | | * runtime.h: Include mm.h.
* 2006-12-20 Martin Hunt <hunt@redhat.com>hunt2006-12-202-5/+21
| | | | * transport.c: Fixes to use the new 2.6.20 workqueue API.
* runtime/lket/b2a/lket-b2a.c:guanglei2006-12-202-3/+18
| | | | bugfix for NULL appname when search appNameTree.
* 2006-12-18 David Smith <dsmith@redhat.com>dsmith2006-12-182-1/+8
| | | | | | * lket/b2a/Makefile.in: Regenerated. This needed to be done since lket/b2a/README was removed but lket/b2a/Makefile.in still had a reference to it which was causing "make distdir" to fail.
* 2006-12-18 Frank Ch. Eigler <fche@elastic.org>fche2006-12-182-1/+41
| | | | | | | | | | | PR 3079 * loc2c-runtime.h (deref, store_deref): Fork x86 and x86-64 variants. Remove dysfunctional 64-bit ops from x86. 2006-12-18 Frank Ch. Eigler <fche@elastic.org> * vfs.stp (ppos_pos): Protect contents with deref(), though this blocks operation on i686 due to bug #3079.
* 2006-12-15 Frank Ch. Eigler <fche@elastic.org>fche2006-12-152-1/+5
| | | | * print.c (_stp_print_flush): Add a likely() marker to the hot path.
* 2006-12-13 Frank Ch. Eigler <fche@elastic.org>fche2006-12-132-1/+5
| | | | * regs.h (s390x REG_IP): Parenthesize for warning-free builds.
* 2006-12-11 Martin Hunt <hunt@redhat.com>hunt2006-12-112-5/+27
| | | | | | * symbols.c (get_sections): Set buffer sizes to large enough sizes to hold all possible values, but also include checks in case we are wrong.
* 2006-12-08 Josh Stone <joshua.i.stone@intel.com>jistone2006-12-092-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR 3681. * staptree.h (struct vardecl): Add a literal 'init' member for the initialization value of globals. * staptree.cxx (vardecl::vardecl): Initialize 'init' to NULL. (vardecl::print): Print global init value during pass-1 output. * main.cxx (printscript): Print global init values during verbose pass-2 output. * parse.cxx (parser::parse_global): Set the initialization literal of global vardecls. * translate.cxx (var::init): Don't unconditionally override the value of numeric globals when the module_param isn't used. (c_unparser::emit_global_param): Write numeric module_params directly into the global variable, as an int64_t instead of long. (c_unparser::emit_global): Add initialization to global declarations. Don't create a temp module_param long for numeric globals anymore. runtime/ * runtime.h (param_set_int64_t, param_get_int64_t, param_check_int64_t): New functions to allow taking module parameters directly as int64_t values. testsuite/ * systemtap.base/global_init.exp, systemtap.base/global_init.stp: New test for checking the timeliness of global initialization.
* 2006-12-06 Josh Stone <joshua.i.stone@intel.com>jistone2006-12-072-27/+47
| | | | | | | | | | | | | | | | | | | | | PR 3623. * tapsets.cxx (timer_derived_probe_group::emit_module_decls): Restart the timers if we are in STARTING or RUNNING state. (hrtimer_derived_probe_group::emit_module_decls): Ditto. (be_derived_probe_group::emit_module_init): indicate error to the rest of the initialization if any begin probes fail. * translate.cxx (c_unparser::emit_module_init): Set the global error state on an initialization error so timers know to shut down. runtime/ * time.c (stp_timer_reregister): Add a global to control whether the gettimeofday timer should restart itself, for clean shutdown. (__stp_time_timer_callback): Check the global. (_stp_kill_time, _stp_init_time): Set the global. (_stp_gettimeofday_ns): Switch to preempt_enable_no_resched. * time.c (__stp_time_cpufreq_callback): Use the cpu# from the notifier. (_stp_init_time): No need to disable preemption around cpufreq init.
* 2006-12-04 Martin Hunt <hunt@redhat.com>hunt2006-12-042-30/+50
| | | | | * bench2/bench.rb: Fixes for the latest runtime changes.
* Always include sym.chunt2006-12-041-0/+1
|
* add LKET testcase into testsuite/systemtap.samples/guanglei2006-11-212-48/+42
| | | | | change the return codes of lket-b2a and add a new macro b2a_error() for error reporting
* return value changes for lket-b2aguanglei2006-11-201-7/+17
|
* bugfix for #3526:guanglei2006-11-193-65/+58
| | | | | | | | | runtime/lket/b2a/lket_b2a.[ch]: bugfix for #3536 lket_trace.stp: add the logging of pid, ppid process.stp: add logging of tid, ppid for lket_internal.process.execve. Change to use for_each_process() in process_snapshot() to get the info of all running processes. register_event.stp: update the registering codes of execve event.
* *** empty log message ***hunt2006-11-151-6/+7
|
* 2006-11-15 Martin Hunt <hunt@redhat.com>hunt2006-11-152-3/+8
| | | | | * symbols.c (do_kernel_symbols): Add sizeof(long) to sym_base to preserve 64-bit alignment.