summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2006-12-08 Josh Stone <joshua.i.stone@intel.com>jistone2006-12-0912-62/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-07 Josh Stone <joshua.i.stone@intel.com>jistone2006-12-082-0/+12
| | | | | PR 3624. * stapprobes.5.in: Document the new begin/end syntax.
* 2006-12-07 Josh Stone <joshua.i.stone@intel.com>jistone2006-12-0813-30/+144
| | | | | | | | | | | | | | | | | | | | | | | PR 3624. * tapsets.cxx (struct be_derived_probe): Add a new priority parameter for begin/end probes, and a comparison function for sorting. (be_builder::build): Parse the priority & pass it to be_derived_probe. (be_derived_probe_group::emit_module_init, emit_module_exit): Sort the probe list by priority before emitting any code. (register_standard_tapsets): Add new begin/end variants. * parse.cxx (parser::parse_literal): Allow negative numeric literals, by checking for a '-' unary operator right before a number. testsuite/ * systemtap.base/be_order.exp, systemtap.base/be_order.stp, semok/beginend.stp: New tests for begin/end priorities. * lib/stap_run.exp: Anchor OUTPUT_CHECK_STRING to the end of output. * systemtap.base/maxactive.exp: Fix to compare output to the end. * systemtap.base/probefunc.exp: Ditto. * systemtap.samples/ioblocktest.exp: Ditto. * systemtap.samples/ioblocktest.stp: Ditto. * systemtap.samples/tcptest.exp: Ditto.
* 2006-12-06 Josh Stone <joshua.i.stone@intel.com>jistone2006-12-075-40/+92
| | | | | | | | | | | | | | | | | | | | | 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-05 Frank Ch. Eigler <fche@redhat.com>fche2006-12-062-3/+12
| | | | | | PR 3648 * main.cxx (main): Tweak error message for tapset script execution. Also catch those clever rogues who use stdin.
* 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
|
* * thanks to riel and viro, cleared up task_struct vs thread_info ↵fche2006-12-011-1/+1
| | | | misunderstanding
* 2006-11-30 Frank Ch. Eigler <fche@elastic.org>fche2006-11-302-3/+10
| | | | | * tapsets.cxx (common_probe_entryfn_prologue): Tweak insufficient stack detection logic.
* 2006-11-30 Martin Hunt <hunt@redhat.com>hunt2006-11-302-2/+7
| | | | | * systemtap.samples/pfaults.exp: Fix regular expression to handle buffering issues that broke on MP systems.
* 2006-11-30 David Smith <dsmith@redhat.com>dsmith2006-11-302-0/+15
| | | | | | * main.cxx (printscript): Prints global embedded code. Not printing the global embedded code was causing bad caching behavior.
* 2006-11-29 David Smith <dsmith@redhat.com>dsmith2006-11-292-28/+123
| | | | | | | | | | | | | * tapsets.cxx (struct dwarf_var_expanding_copy_visitor): Added 'add_block' member variable. Constructor sets it to NULL. (dwarf_var_expanding_copy_visitor::visit_target_symbol): Fixes the problem of accessing a cached target variable in a loop. Cached target variable is assigned to a temporary variable, which can be safely access multiple times. In addition, the cached value is deleted after being read. (dwarf_derived_probe::dwarf_derived_probe): Adds in the new block of code created in visit_target_symbol() to the beginning of the derived probe.
* scheduler.stp, vfs.stp: made idle_balance and buffer_migrate_page optinal.guanglei2006-11-293-3/+9
|
* bugfix for lket testcase.guanglei2006-11-293-7/+486
| | | | new testcase of whitelist for safe probes
* 2006-11-28 David Smith <dsmith@redhat.com>dsmith2006-11-283-0/+22
| | | | | | | * semko/thirtyfour.stp: Checks for writing to target variable in .return probe. * semok/twentyfour.stp: Tests read access to target variable in .return probe.
* 2006-11-28 David Smith <dsmith@redhat.com>dsmith2006-11-282-11/+23
| | | | | | | * tapsets.cxx (dwarf_var_expanding_copy_visitor::visit_target_symbol): Improved handling target variables in return probes by having a per-thread counter.
* 2006-11-26 Frank Ch. Eigler <fche@redhat.com>fche2006-11-266-6/+179
| | | | | | | | | | | | PRs 2685, 3596, toward 2725. * tapsets.cxx (common_probe_entryfn_prologue): Skip probe on insufficient stack. (build_blacklist): Add a slew of lock-related calls. (query_module): Check for debuginfo architecture match. * translate.cxx (translate_pass): Add default MINSTACKSPACE. * configure.ac: Link stap with -lebl too. * configure: Regenerated. * stap.1.in: Document MINSTACKSPACE parameter.
* * correct elfutils requirement messagefche2006-11-232-3/+3
|
* * remove refs to dprobes & elfutils man pagesfche2006-11-221-2/+0
|
* 2006-11-21 Frank Ch. Eigler <fche@elastic.org>fche2006-11-212-6/+25
| | | | * translate.cxx (emit_module_init): Adapt to 2.6.19 utsname().
* 2006-11-21 Frank Ch. Eigler <fche@elastic.org>fche2006-11-212-0/+31
| | | | | | PR 3556. * translate.cxx (emit_module_init): Emit code to check system_utsname against translate-time version/machine strings.
* skip warning message of skipped probes for lket testcaseguanglei2006-11-211-1/+1
|
* add LKET testcase into testsuite/systemtap.samples/guanglei2006-11-215-48/+96
| | | | | change the return codes of lket-b2a and add a new macro b2a_error() for error reporting
* 2006-11-20 David Smith <dsmith@redhat.com>dsmith2006-11-202-1/+125
| | | | | | | | * tapsets.cxx (dwarf_var_expanding_copy_visitor::visit_target_symbol): BZ 1382. Target variables can be accessed in return probes. A new function entry probe is generated that saves the target variables so that they can be accesssed in the return probe.
* 2006-11-20 Frank Ch. Eigler <fche@elastic.org>fche2006-11-202-1/+5
| | | | * context.stp (caller_addr): Declare return type.
* return value changes for lket-b2aguanglei2006-11-201-7/+17
|
* 2006-11-19 Frank Ch. Eigler <fche@elastic.org>fche2006-11-194-4/+35
| | | | | * main.cxx (main): Signal parse error if a tapset script is given as the user script.
* bugfix for #3526:guanglei2006-11-198-78/+84
| | | | | | | | | 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.
* 2006-11-17 Frank Ch. Eigler <fche@redhat.com>fche2006-11-176-7/+39
| | | | | | | | | | | | | * tapsets.cxx (d_v_e_c_v::visit_target_symbol): Restore lost exception-saving functionality that improves error messages for incorrect $target expressions. (translate_components): Systematize error messages somewhat. * translate.cxx (emit_function, emit_probe): Clarify "array locals" error message. 2006-11-17 Frank Ch. Eigler <fche@redhat.com> * semko/thirtysix.stp, transko/three.stp: New tests.
* add addevent.process.exit.entryguanglei2006-11-175-2/+38
|
* add a pass 4 check for LKET available trace hooksguanglei2006-11-162-0/+6
|
* *** 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.
* use c global variables instead of stap global variables to avoid better ↵guanglei2006-11-158-82/+118
| | | | | | performance(unfinished). visit members in scripts for better safety check
* bug 3507guanglei2006-11-134-34/+34
| | | | replace all minus signs used in man page with \-
* register_event.stp:guanglei2006-11-112-4/+10
| | | | pass integer values explicitly as 64-bit into _lket_trace() to avoid error when parse va-arg by _stp_printf
* 2006-11-10 David Smith <dsmith@redhat.com>dsmith2006-11-102-7/+14
| | | | | | | * tapsets.cxx (dwarf_var_expanding_copy_visitor::visit_target_symbol): Minor improvement to error handling by throwing exceptions before allocations are done.
* 2006-11-10 David Smith <dsmith@redhat.com>dsmith2006-11-104-54/+35
| | | | | | | | | | | * semko/maxactive03.stp: Stop on pass2 instead of on pass1. * lib/stap_run.exp: As a side-effect, stap_run() sets global 'probe_errors' and 'skipped_probes' to the number of probe errors and skipped probes seen while running the probe. * systemtap.base/maxactive.exp: Uses extended stap_run() to find number of skipped probes instead of using private stap_run() variant.
* 2006-11-10 Frank Ch. Eigler <fche@elastic.org>fche2006-11-102-9/+31
| | | | | * stap.1.in: On urging of Adam Jackson, add blurbs on array syntax and default limits.
* bugfix of NFS event register codes for LKETguanglei2006-11-103-13/+5
| | | | bugfix of lket-b2a
* tapset/LKET/iosyscall.stp:guanglei2006-11-104-832/+895
| | | | | | | | | add some trace aliases tapset/LKET/register_event.stp: register sys events in embedded c codes for stap to better optimize the generated codes Update LKET man page accordingly
* 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-093-4/+6
| | | | * Makefile.am (staprun_LDADD): Need PROCFLAGS here too.
* *** empty log message ***hunt2006-11-091-1/+1
|
* 2006-11-09 Martin Hunt <hunt@redhat.com>hunt2006-11-095-36/+68
| | | | | | | | * Makefile.am (staprun_CFLAGS): New. Use PROCFLAGS. * configure.ac: Add PROCFLAGS. Processor-dependent compilation flags. * configure: Rebuilt. * Makefile.in: Rebuilt.
* 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.