summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 2006-11-15 Martin Hunt <hunt@redhat.com>hunt2006-11-153-11/+24
| | | | | | | | * procfs.c (_stp_proc_write_cmd): For STP_SYMBOLS, type field is a long to preserve alignment. Use STP_ALLOC_FLAGS. * symbols.c: Use STP_ALLOC_FLAGS.
* 2006-11-15 Martin Hunt <hunt@redhat.com>hunt2006-11-155-26/+34
| | | | | | | * alloc.c (STP_ALLOC_FLAGS): Define. Cleanup ifdefs. * map.c: Use STP_ALLOC_FLAGS. * stat.c: ditto.
* bugfix of NFS event register codes for LKETguanglei2006-11-101-2/+1
| | | | bugfix of lket-b2a
* transport/procfs.c:guanglei2006-11-102-2/+7
| | | | bugfix of the obsolete buf_info and consumed_info.
* 2006-11-09 Martin Hunt <hunt@redhat.com>hunt2006-11-094-33/+48
| | | | | | | | * transport_msgs.h: Change all ints to int32_t. Prefix all struct names with "_stp". * transport.c: Use new struct names. (_stp_handle_start): Send pointer size and endianess. * procfs.c: Use new struct names.
* 2006-11-09 Martin Hunt <hunt@redhat.com>hunt2006-11-095-39/+47
| | | | | | | | | | | * librelay.c: Change all references to transport messages to use the new names with "_stp" prefix. (stp_main_loop): For STP_SYMBOLS, check pointer size and endianess to confirm staprun is compatible with the kernel. * librelay.h: Move a bunch of common includes here. * stpd.c: Cleanup includes. * symbols.c: Ditto.
* 2006-11-09 Martin Hunt <hunt@redhat.com>hunt2006-11-092-3/+7
| | | | * sym.h: Change int to int32_t.
* add options for lket-b2a to control the output data fields of lket.out.guanglei2006-11-093-9/+60
| | | | | | | | make fork/execce trace hooks lket internally and turned on by default. add stoptrace_fork and stoptrace_execve flags for lket to control stopping fork/execve in user scripts. update lket-b2a and lket man page.
* remove runtime/lket/b2a/READMEguanglei2006-11-081-48/+0
|
* * a question for huntfche2006-11-061-1/+1
|
* *** empty log message ***hunt2006-11-021-0/+8
|
* 2006-11-02 Martin Hunt <hunt@redhat.com>hunt2006-11-022-2/+5
| | | | * symbols.c (_stp_do_module): Fix error message.
* New dynamic module and symbol handling code.hunt2006-11-0212-84/+923
|
* 2006-11-02 Martin Hunt <hunt@redhat.com>hunt2006-11-023-3/+8
| | | | | * io.c (_stp_vlog, _stp_dbug): Make first parameter const. * runtime.h: Update prototype for _stp_dbug.
* 2006-10-27 Thang Nguyen <thang.p.nguyen@intel.com>tpnguyen2006-10-272-3/+16
| | | | | * runtime/regs.c: patch from Bibo Mao for fixing the return value on IA64 (bz #3404).
* sync lket-b2a with LKET hookid rearrangementguanglei2006-10-243-22/+28
|
* New man page for lket-b2aguanglei2006-10-232-5/+15
| | | | | | Document signal trace hooks into lket man page bugfix of lket-b2a for event description data insert