summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* utf8 rulesfche2007-04-111-1/+1
|
* * tweak #include syntaxfche2007-04-111-1/+1
|
* 2007-04-04 Sebastien Dugue <sebastien.dugue@bull.net>fche2007-04-113-0/+27
| | | | | * runtime/lket/b2a/lket_b2a.c: Fix percpu files parsing for percpu_header transport changes.
* 2007-04-10 Martin Hunt <hunt@redhat.com>hunt2007-04-102-0/+6
| | | | | * relay.c (close_relayfs): Give threads some time to run before closing.
* 2007-04-06 Martin Hunt <hunt@redhat.com>hunt2007-04-063-6/+10
| | | | | | * stp_merge.c (main): Remove extra newline in output. * stap_merge.c: Renamed from stp_merge.c. * Makefile: Updated.
* 2007-04-05 Martin Hunt <hunt@redhat.com>hunt2007-04-054-0/+79
| | | | * bench2/var_bench, var.st, const.st: New test.
* *** empty log message ***hunt2007-04-051-0/+9
|
* 2007-04-05 Martin Hunt <hunt@redhat.com>hunt2007-04-053-5/+129
| | | | | | | | | * bench2/bench.rb (Stapbench::run): Check result code of "killall staprun". If it is nonzero, something happened to staprun. Print an error. (Stapbench::load): Define STP_NO_OVERLOAD. * bench2/README: Update. * bench2/print_bench: New set of tests.
* 2007-04-02 Martin Hunt <hunt@redhat.com>hunt2007-04-025-35/+112
| | | | | | | | | | | | | * relay_old.c (close_oldrelayfs): If just detaching, call pthread_cancel. (open_relayfs_files): Just return 0 if relay_fd[cpu] not opened. (init_oldrelayfs): Scan percpu files to calculate ncpus. * mainloop.c (init_staprun): Call old transport init when necessary. (cleanup_and_exit): Ignore signals when cleaning up. * ctl.c (read_buffer_info): For old transport, need to read transport parameters.
* 2007-04-02 Martin Hunt <hunt@redhat.com>hunt2007-04-024-20/+49
| | | | | | | | | | | | | | | * transport_msgs.h (struct _stp_msg_trans): Deleted. Transport parameters are now read from procfs. * transport.c (_stp_ask_for_symbols): STP_TRANSPORT message is empty. * procfs.c (_stp_ctl_open_cmd): New. Set _stp_ pid. (_stp_ctl_close_cmd): New. Unset _stp_pid. (_stp_proc_fops_cmd): Add pointers to above funcs. (_stp_ctl_read_bufsize): New. (_stp_register_ctl_channel): Create a proc read entry "bufsize" containing transport buffer sizes.
* 2007-03-28 Martin Hunt <hunt@redhat.com>hunt2007-03-283-0/+23
| | | | | | * control.c (_stp_ctl_open_cmd): Set _stp_pid. (stp_ctl_close_cmd): Clear _stp_pid. * transport.h: Declare _stp_pid;
* 2007-03-26 Frank Ch. Eigler <fche@elastic.org>fche2007-03-262-0/+5
| | | | * transport.c: Add #include <linux/namei.h> for lookup_one_len.
* 2007-03-26 Martin Hunt <hunt@redhat.com>hunt2007-03-267-123/+149
| | | | | | | | | | | | | | | | * mainloop.c (run_stp_check): Just use system() call. (init_staprun): Remove _stp_pid module parameter. (cleanup_and_exit): If closed==2, just exit without removing module. (driver_poll): Remove. We no longer require stap running. (_stp_main_loop): Remove call to driver_poll. * ctl.c (init_ctl_channel): Don't put files in systemtap_pid, revert back to systemtap/modulename. * relay.c: Revert back to systemtap/modulename paths. * relay_old.c: Ditto. * staprun.c: Add -L and -A args.
* 2007-03-26 Martin Hunt <hunt@redhat.com>hunt2007-03-269-63/+220
| | | | | | | | * symbols.c (_stp_do_module): If a module has no symbols, just return NULL instead of an errorcode. * control.c, procfs.c, relayfs.c, transport.c, utt.c, utt.h: Revert back to using systemtap/modulename instead of systemtap_pid.
* Remove some debug statements.hunt2007-03-252-5/+1
|
* 2007-03-22 Frank Ch. Eigler <fche@elastic.org>fche2007-03-222-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | PR 4224. * staptree.h (probe): Add privileged field. * elaborate.cxx, parse.cxx: Pass privileged flag to probes. * tapsets.cxx (dwarf_query): Add has_absolute field. (dwarf_derived_probe ctor): Tolerate it. (register_patterns): Expose it. (dwarf_builder::build): Implement it with no dwfl whatsoever. * NEWS: Document kernel.statement().absolute. * stapprobes.5.in: Ditto. 2007-03-22 Frank Ch. Eigler <fche@elastic.org> PR 4224. * systemtap.base/probefunc.exp: Use kernel.statement().absolute instead with grep-found schedule_tick address. * semko/thirtyseven.stp, thirtyeight.stp: New tests. * buildok/twentyeight.stp: New test. 2007-03-22 Frank Ch. Eigler <fche@elastic.org> * sym.c (_stp_module_relocate): Tolerate empty section string.
* 2007-03-21 Martin Hunt <hunt@redhat.com>hunt2007-03-215-54/+65
| | | | | | | | | | | * sym.h: Declare _stp_module_relocate. * sym.c (_stp_module_relocate): Add comments, reformat, add a way for "last" cached values to be cleared when modules are removed. (_stp_symbol_print): Simplify and remove static buffer. (_stp_symbol_snprint): Ditto. * symbols.c (_stp_del_module): Add a call to _stp_module_relocate to clear its cache.
* 2007-03-21 Martin Hunt <hunt@redhat.com>hunt2007-03-212-1/+5
| | | | * map.c (_stp_map_init): Fix signed vs unsigned comparison warning.
* 2007-03-20 Frank Ch. Eigler <fche@elastic.org>fche2007-03-214-15/+46
| | | | | | | | | | | | | | | | | | | | | | PR 4224. * tapsets.cxx (add_probe_point): Make kernel implicitly relocated relative to the _stext symbol. (dwarf_derived_probe ctor, emit_module_decls): Cooperate. (lookup_symbol_address): New function. (dwarf_builder::build): Call it thrice. (in_kprobes_function): Simplify. * session.h (systemtap_session): Rename cached symbol addresses. * translate.cxx, elaborate.cxx: Corresponding tweaks. 2007-03-20 Frank Ch. Eigler <fche@elastic.org> PR 4224. * sym.c (_stp_module_relocate): Support kernel relocations. 2007-03-20 Frank Ch. Eigler <fche@elastic.org> * symbols.c (_stp_do_symbols): Add cautionary blurb for important setup of _stp_modules[0]->text.
* 2007-03-20 Martin Hunt <hunt@redhat.com>hunt2007-03-203-6/+29
| | | | | | * symbols.c (send_module): If send returns < 0 then cleanup and exit. (do_kernel_symbols): Ditto.
* 2007-03-20 Martin Hunt <hunt@redhat.com>hunt2007-03-202-6/+12
| | | | | * symbols.c (_stp_alloc_module): Fix up error cleanup when malloc fails.
* 2007-03-19 Frank Ch. Eigler <fche@elastic.org>fche2007-03-192-0/+8
| | | | | | | | | | | * buildrun.cxx (compile_pass): Emit kbuild-time autoconf widgets to customize runtime or translator C code to actual kernel rather than kernel version string. Thanks to FC 2.6."20" for the nudge. * tapsets.cxx (hrtimer*emit_module): First client: HRTIMER_{MODE_}REL. 2007-03-19 Frank Ch. Eigler <fche@elastic.org> * autoconf-hrtimer-rel.c: New file.
* 2007-03-18 Martin Hunt <hunt@redhat.com>hunt2007-03-194-6/+21
| | | | | * staprun.h (err): Define. * symbols.c (get_sections): More overflow checking.
* 2007-03-18 Martin Hunt <hunt@redhat.com>hunt2007-03-182-2/+10
| | | | | * symbols.c (get_sections): Filter out .gnu.linkonce.* sections except for .gnu.linkonce.this_module.
* 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
|