summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix mode in procfs cmd file.hunt2007-06-182-2/+2
|
* 2007-06-18 Martin Hunt <hunt@redhat.com>hunt2007-06-182-1/+5
| | | | * control.c (_stp_register_ctl_channel): Fix mode of cmd file.
* 2007-06-15 Martin Hunt <hunt@redhat.com>hunt2007-06-154-8/+151
| | | | | | | From Quentin Barnes. * loc2c-runtime.h: Latest arm marcos. * stack-arm.c (__stp_stack_print): Add a cast. * regs.c (_stp_ret_addr): Define for arm.
* Fix minor issue with change for bz4075. The initial fix caused a lot ofananth2007-06-111-1/+1
| | | | | | test failures on powerpc. Thanks to Srinivasa for tracking the problem down.
* 2007-06-07 Martin Hunt <hunt@redhat.com>hunt2007-06-072-2/+14
| | | | | * relay_old.c (open_relayfs_files): Add support for output file names (-o) with bulk (relayfs) mode.
* 2007-06-07 Martin Hunt <hunt@redhat.com>hunt2007-06-073-2/+24
| | | | | | PR 4075 fix from Ananth Mavinakayanahalli * string.h (_stp_get_user): Define. * string.c (_stp_text_str): Use _stp_get_user().
* 2007-06-04 Martin Hunt <hunt@redhat.com>hunt2007-06-042-11/+23
| | | | | | | * mainloop.c (cleanup_and_exit): Disable signals while exiting. (fatal_handler): Use return values from write() to avoid warnings.
* 2007-05-30 Martin Hunt <hunt@redhat.com>hunt2007-05-309-109/+541
| | | | | | | | | | | | Patch from Quentin Barnes. * arith.c: Add arm support for 64-bit division. * copy.c: Enable arm support. * loc2c-runtime.h: Ditto. * regs.[ch]: Ditto. * stack.c: Include stack-arm.c. * stack-arm.c: New file. * time.c (_stp_gettimeofday_ns): hack for arm. See PR 4569.
* 2007-05-29 Frank Ch. Eigler <fche@elastic.org>fche2007-05-292-2/+9
| | | | | | PR 4458 * print_new.c (_stp_print_flush): Use interrupt-disabling spinlock variants.
* 2007-05-29 Frank Ch. Eigler <fche@redhat.com>fche2007-05-294-11/+74
| | | | | | | | PR 2224 * map.h (NEED_MAP_LOCKS): New config macro, defaults to 0. (MAP_GET_CPU, MAP_PUT_CPU): Wrappers, default to ~no-op. * map.c (_stp_pmap_clear,agg): Use them. * pmap-gen.c (_stp_pmap_new,set,add,get_cpu,get,del): Ditto.
* 2007-05-24 Martin Hunt <hunt@redhat.com>hunt2007-05-242-1/+5
| | | | * mainloop.c (cleanup_and_exit): Fix typo.
* 2007-05-22 Martin Hunt <hunt@redhat.com>hunt2007-05-222-1/+3
| | | | * mainloop.c (init_staprun): Change dbug() call.
* 2007-05-22 Martin Hunt <hunt@redhat.com>hunt2007-05-222-13/+35
| | | | | * relay.c: Fix ppoll() call and some race conditions involving signals.
* * control.c: Explicit type cast for picky compilers.wcohen2007-05-162-1/+5
|
* 2007-05-15 Martin Hunt <hunt@redhat.com>hunt2007-05-1610-22/+28
| | | | | * vsprintf.c: Add comment about %p. * regs.c, stack*.c, sym.c: Fix %p calls.
* *** empty log message ***hunt2007-05-161-1/+1
|
* 2007-05-15 Martin Hunt <hunt@redhat.com>hunt2007-05-162-7/+16
| | | | | | * control.c: Change default buffer number and size. (_stp_ctl_write): Add debug statements. Check size of message to avoid overwriting buffer.
* 2007-05-10 Martin Hunt <hunt@redhat.com>hunt2007-05-102-1/+6
| | | | | * relay.c (reader_thread): Set timeout for streaming to 200ms.
* 2007-05-09 Martin Hunt <hunt@redhat.com>hunt2007-05-092-1/+6
| | | | | * relay.c (reader_thread): For bulk mode, set timeout to NULL so ppoll never times out.
* 2007-05-08 Martin Hunt <hunt@redhat.com>hunt2007-05-082-1/+27
| | | | | * relay.c (ppoll): Add a compatibility function for glibc < 2.4.
* 2007-05-08 Martin Hunt <hunt@redhat.com>hunt2007-05-087-82/+154
| | | | | | | | | | | | | | | | | | Signal handler cleanup. * mainloop.c (fatal_handler): New. Cleanly handle unexpected fatal signals. (setup_main_signals): New. Set signals once mainloop is entered. (setup_signals): New. Block certain signals during initialization. Set handler for fatal signals. * relay.c (reader_thread): Use ppoll(). Terminate on SIGUSR2 after reading any remaining data. (close_relayfs): Remove sleep hack. Send SIGUSR2 to all threads. Runtime debug messages. * staprun.h: Change dbug() to accept a debuglevel and enable it. * *.c: Modify dbug() calls.
* 2007-05-07 Martin Hunt <hunt@redhat.com>hunt2007-05-074-5/+22
| | | | | | Patch from David Smith * mainloop.c (stp_main_loop): Properly handle write() return value. Fixes build problem with some compilers.
* 2007-04-27 Martin Hunt <hunt@redhat.com>hunt2007-04-272-2/+10
| | | | * runtime.h: Improve check for debugfs in kernel.
* 2007-04-27 Martin Hunt <hunt@redhat.com>hunt2007-04-272-1/+1
| | | | * utt.h (struct utt_trace): Remove sequence.
* 2007-04-27 Martin Hunt <hunt@redhat.com>hunt2007-04-272-8/+11
| | | | | | | * utt.c (utt_trace_cleanup): Remove free of utt->sequence. (utt_dropped_open): PR 4415. Use STAPCONF_INODE_PRIVATE to detect correct inode struct. (utt_trace_setup): Do not allocate utt->sequence.
* 2007-04-27 Frank Ch. Eigler <fche@elastic.org>fche2007-04-272-0/+10
| | | | | | | | | | | PR 4432. * buildrun.cxx (compile_pass): Tweak autoconf CFLAGS handling to avoid macro recursion but still get the needed -I directives. Add the inode-private autoconf test. 2007-04-27 Frank Ch. Eigler <fche@elastic.org> * autoconf-inode-private.c: New file from hunt.
* 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.