| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* alloc.c (STP_ALLOC_FLAGS): Define.
Cleanup ifdefs.
* map.c: Use STP_ALLOC_FLAGS.
* stat.c: ditto.
|
|
|
|
|
|
| |
performance(unfinished).
visit members in scripts for better safety check
|
|
|
|
| |
replace all minus signs used in man page with \-
|
|
|
|
| |
pass integer values explicitly as 64-bit into _lket_trace() to avoid error when parse va-arg by _stp_printf
|
|
|
|
|
|
|
| |
* tapsets.cxx
(dwarf_var_expanding_copy_visitor::visit_target_symbol): Minor
improvement to error handling by throwing exceptions before
allocations are done.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* stap.1.in: On urging of Adam Jackson, add blurbs on array syntax
and default limits.
|
|
|
|
| |
bugfix of lket-b2a
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
bugfix of the obsolete buf_info and consumed_info.
|
|
|
|
| |
* Makefile.am (staprun_LDADD): Need PROCFLAGS here too.
|
| |
|
|
|
|
|
|
|
|
| |
* Makefile.am (staprun_CFLAGS): New. Use PROCFLAGS.
* configure.ac: Add PROCFLAGS. Processor-dependent
compilation flags.
* configure: Rebuilt.
* Makefile.in: Rebuilt.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* sym.h: Change int to int32_t.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* buildok/maxactive01.stp: Added test for "maxactive(N)"
return probe processing.
* parseko/maxactive01.stp: Ditto.
* parseko/maxactive02.stp: Ditto.
* parseko/maxactive03.stp: Ditto.
* parseko/maxactive04.stp: Ditto.
* semko/maxactive01.stp: Ditto.
* semko/maxactive02.stp: Ditto.
* semko/maxactive03.stp: Ditto.
* systemtap.base/maxactive.exp: Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tapsets.cxx (dwarf_query::dwarf_query): Looks for "maxactive"
return probe variant.
(dwarf_derived_probe::dwarf_derived_probe): Initializes
has_maxactive and maxactive_val member variables.
(dwarf_derived_probe::register_function_variants): Matches
"maxactive" return probe variant.
(dwarf_derived_probe_group::emit_module_decls): Emits code to use
maxactive data.
(dwarf_derived_probe_group::emit_module_init): Ditto.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
* cache.cxx (get_from_cache): To preserve semantics with
non-cached use, if the last pass is 3, display the cached C
source.
|
|
|
|
|
|
|
| |
* staptree.cxx (print_format::components_to_string): Quote ".
(c_unparser::visit_print_format): Don't use lex_cast_qstring
as it overdoes \ quoting. Resemble ::visit_literal_string
instead.
|
|
|
|
|
|
| |
* util.h (lex_cast_qstring): Move def'n here. Also quote \.
(stringify, lex_cast, lex_cast_hex): Move defn here.
* buildrun.cxx, elaborate.cxx, main.cxx, staptree.cxx: Adapt.
|
| |
|
| |
|
|
|
|
|
| |
* tapsets.cxx (profile_derived_probe_group::emit_module_decls):
Pass along incoming pt_regs to context of timer.profile handlers.
|
|
|
|
|
| |
make do_mmap2, copy_cow_page and signal.handle.return optional since they are obsolete
or failed to probe on 2.6.18.1/ppc64
|
| |
|
|
|
|
|
|
| |
* systemtap.maps/foreach_limit.exp: Added new test for foreach
"limit" keyword.
* systemtap.maps/foreach_limit.stp: Ditto.
|
|
|
|
|
| |
* translate.cxx (var::init): Check for errors when
allocating arrays of stats, as well as other arrays.
|
|
|
|
|
|
|
|
|
| |
* parseko/foreachstmt06.stp: Added new test for foreach "limit"
keyword.
* parseko/foreachstmt07.stp: Ditto.
* parseok/foreachstmt01.stp: Ditto.
* semko/foreachstmt01.stp: Ditto.
* semko/foreachstmt02.stp: Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added "limit EXP" support to foreach statements.
* translate.cxx (c_tmpcounter::visit_foreach_loop): Handles
"limit" member variable.
(c_unparser::visit_foreach_loop): Ditto.
* staptree.cxx (foreach_loop::print): Prints "limit EXP"
addition.
(traversing_visitor::visit_foreach_loop): Handles "limit" member
variable.
(deep_copy_visitor::visit_foreach_loop): Ditto.
* staptree.h (struct foreach_loop): Added "limit" member
variable.
* stap.1.in: Added documentation for the "limit EXP" addition to
foreach statement.
* parse.cxx (lexer::scan): Added "limit" keyword for foreach
statements.
(parser::parse_foreach_loop): Parses "limit" keyword for foreach
statements.
* elaborate.cxx (symresolution_info::visit_foreach_loop): Handles
"limit" member variable.
(typeresolution_info::visit_foreach_loop): Ditto.
|
| |
|
|
|
|
|
| |
* tapsets.cxx (emit_address): Emit calls to _stp_module_relocate
for $target-variable addresses in relocatable sections.
|
|
|
|
| |
"inspiration."
|
| |
|
|
|
|
|
|
|
| |
* systemtap.samples/tcptest.exp: Put TCP load gen into a
a seperate script.
* systemtap.samples/tcptest.tcl: new script for TCP load
gen.
|
|
|
|
| |
* symbols.c (_stp_do_module): Fix error message.
|
| |
|
|
|
|
|
| |
* io.c (_stp_vlog, _stp_dbug): Make first parameter const.
* runtime.h: Update prototype for _stp_dbug.
|
|
|
|
|
|
| |
* main.cxx (main): Added '-r' check. If the user changes the
kernel release to compile against, make sure pass 5 isn't
performed (since the resulting module won't be installable).
|
|
|
|
|
|
|
|
|
| |
* Makefile.am: Install tapset/README too.
* Makefile.in: Regenerated.
2006-11-02 Frank Ch. Eigler <fche@elastic.org>
* README: Add a blurb against running these scripts directly.
|
| |
|
|
|
|
|
|
|
| |
* tapsets.cxx (timer_derived_probe_group::emit_interval): New -
Fixes randomization for jiffies timers in ms mode.
(timer_derived_probe_group::emit_module_decls): Use emit_interval.
(timer_derived_probe_group::emit_module_init): Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* translate.cxx (delete_statement_operand_visitor::visit_symbol):
Added referent assert.
(delete_statement_operand_tmp_visitor::visit_arrayindex): Ditto.
(c_tmpcounter::visit_array_in): Ditto.
(c_unparser::visit_symbol): Ditto.
(c_unparser_assignment::visit_symbol): Ditto.
(c_unparser::load_map_indices): Ditto.
(c_tmpcounter::visit_arrayindex): Ditto.
(c_tmpcounter_assignment::visit_arrayindex): Ditto.
(c_tmpcounter::visit_functioncall): Ditto.
(c_unparser::visit_functioncall): Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Probe registration rework. Offline dwarf processing for better
cross-instrumentation.
* elaborate.h (derived_probe): Remove registration-related code
generation API. Add new function sole_location().
(derived_probe_group): Reworked this and associated classes.
* session.h (systemntap_session): Create individual per-category
derived_probe_groups.
* elaborate.cxx (derived_probe_group): Reworked.
(alias_derived_probe): Switch to new derived_probe API.
(semantic_pass_symbols): Ditto.
* translate.cxx (mapvar init): Check for array initialization error.
(emit_module_init): Handle such failures, at least in theory.
(emit_module_exit): Switch to new derived_probe_group API. Call
cpu_relax() during shutdown busywait.
(emit_common_header): Elide context variables for elided handler fns.
(c_unparser::emit_probe): Implement new, improved duplicate
elimination technique for probe handlers. Leave two older ones
behind as compile options for education.
* tapsets.cxx (*): Reworked all probe registration code, moving
it from derived_probes into derived_probe_groups. Shrunk output
code. Temporarily disabled probe timing and perfmon/mark probes.
(dwflpp): Use offline reporting, so that module matching and
relocation is performed at run time.
(dwarf_query): Remove flavour logic, now supplanted by other
duplicate elimination code.
(dwarf_derived_probe): Reworked construction, centralized
module/section/offset computations.
* tapsets.h (all_session_groups): New little helper.
* main.cxx (main): For pass-2 message, print number of embeds too.
* systemtap.spec.in: Add a "BuildRequires: dejagnu" for make check.
* configure.ac: Bump version to 0.5.11.
* configure: Regenerated.
|
|
|
|
| |
modify tapsets/LKET/register_events to change the event_desc strings
|
|
|
|
|
| |
* systemtap.base/timers.stp: Fudge the comparison a bit between
jiffies(1) and profile to allow for slop between start/end times.
|
|
|
|
|
|
|
| |
* systemtap.maps/pmap_agg_overflow.stp: Use
kernel.function("scheduler_tick") instead of timer.jiffies
so the test works on all kernels. The test needs a probe
that is invoked often on all cpus.
|
|
|
|
|
| |
* systemtap.maps/pmap_agg_overflow.stp: Use timer.jiffies
instead of timer.profile so the test works on xen kernels.
|