summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Change warning message from configure for mysqlguanglei2006-10-201-0/+1
|
* Adding s390x supportdwilder2006-10-197-0/+296
|
* * configure.ac: add the checking for mysql_config, mysqlclient library and ↵guanglei2006-10-162-5/+20
| | | | | | header files * runtime/lket/b2a/Makefile.am: set compile flags according to the existance of mysql_config
* 2006-10-12 Martin Hunt <hunt@redhat.com>hunt2006-10-132-1/+5
| | | | * stack-ppc64.c (__stp_stack_sprint): Declare sp before _sp.