| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
* arith.c (_stp_div64): For 64-bit cpus, just use native
division. Otherwise call _div64().
(_stp_mod64): Call _mod64() isf necessary.
(_div64): 64-bit division for 32-bit cpus.
(_mod64): 64-bit modulo for 32-bit cpus.
|
|
|
|
|
|
| |
* procfs.c (_stp_register_procfs): Change ifdefs to eliminate
unused variable warnings.
(_stp_unregister_procfs): Ditto.
|
|
|
|
| |
* map-values.c (_stp_map_entry_exists): Remove unused var.
|
|
|
|
|
| |
* scf/scf.c (inst_smp_call_function): Add new verbose arg
to _stp_stack_sprint() call.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
* stap.1.in: Document current "-c" and "-x" options.
|
|
|
|
| |
* systemtap.spec.in: Remove kernel-debuginfo dependency.
|
|
|
|
|
| |
* main.cxx (main): Choose getpid()-based module names.
* tapsets.cxx: Make timer.jiffies' use of task_pt_regs __i386__-only.
|
|
|
|
| |
* stap.1.in: Oops, && and || do short-circuit.
|
|
|
|
|
|
|
|
| |
* stap.1.in: Clarify absence of short-circuiting in && and ||.
* translate.cxx (emit_function): Improve "array locals" message.
* tapset/timestamp.stp: Add gettimeofday_us function. Correct
arithmetic typing in other functions.
* stapfuncs.5.in: Document new function.
|
|
|
|
| |
* systemtap.spec.in: Bump elfutils_version to .115.
|
| |
|
|
|
|
| |
* loc2c.h: Comment fix.
|
|
|
|
|
|
|
| |
* configure.ac: Require elfutils 0.115+.
* tapsets.cxx: Restore graydon's PR 1244 code.
* testsuite/buildok/eighteen.stp: Correct typing.
* configure: Regenerated.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tapset/context.stp: Add function target().
* stapfuncs.5.in (target): Document it.
* elaborate.h (struct systemtap_session): Add cmd and target_pid to
the struct.
* main.cxx (usage): Add secriptions of "-c" and "-x" options.
(main): Set s.cmd and s.target_pid.
* buildrun.cxx (stringify): Copy this utility func here too.
(run_pass): Add new options to set cmd and pid to the stpd
command line.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* librelay.c: Remove all USE_PROCFS ifdefs.
(sig_usr): Signal handler for SIGUSR1.
(start_cmd): New function to handle "-c" option, forks()
off a new process then waits for SIGUSR1 to exec it.
(init_stp): Call start_cmd().
(stp_main_loop): Set a signal handler for SIGCHLD.
* stpd.c (main): Add "-t" and "-c" options.
(usage): Update with new options.
|
|
|
|
|
| |
* transport.c (_stp_handle_start): Always reply to
a start message with STP_START.
|
|
|
|
| |
* tapsets.cxx (emit_probe_entries): Disable fault_handler for now.
|
|
|
|
|
|
|
|
|
| |
PR 1289
* translate.cxx (lex_cast_qstring): Correct "cast" of object
to string containing more than one word.
* tapset.cxx (lex_cast_qstring): Ditto.
(dwarf_derived_module::emit_probe_entries): Emit and use
a generic fault_handler.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1172.
* staptree.h, staptree.cxx: Make all ::print*(), operator<<
functions take const staptree objects.
(literal_string::print): \-prefix double-quotes.
* translate.cxx (emit_common_header): Add context probe_point field.
Switch to atomic_t busy flags.
(emit_module_exit): Use atomic operations for busy flag.
(visit_*): Use lex_cast_qstring for last_stmt strings.
* tapsets.cxx (lex_cast_quoted): \-prefix double-quotes too.
(*::emit_probe_entries): Populate probe_point. Use atomic operations
for busy flag.
* tapset/context.stp (pp): New function.
* stapfuncs.5.in: Document it.
* testsuite/buildok/context_test.stp: Test it.
|
|
|
|
| |
* translate.cxx (visit_literal_string): \-prefix double-quotes.
|
|
|
|
|
|
|
| |
* testsuite/buildok/context_test.stp: New test.
* tapset/logging.stp (log): Call _stp_printf().
* stapfuncs.5.in: Add contextinfo funcs.
* tapset/context.stp: Minor cleanup.
|
| |
|
|
|
|
|
|
|
|
| |
PR 1187 prime
* tapset.cxx (literal_stmt_for_local): Don't automgaically copy
target char*'s to systemtap strings.
* tapset/conversions.stp (user_string, kernel_string): New functions.
* stapfuncs.5.in: Document new functions.
|
|
|
|
|
|
|
|
|
|
| |
PR 1292, by popular request.
* parse.cxx (parse_functiondecl): Allow optional value/param type
declarations.
* stap.1.in: Document this.
* tapset/*.stp: Convert most functions accordingly.
* testsuite/parseok/twelve.stp, semok/seven.stp,
semko/twenty.stp: Test this.
|
|
|
|
|
|
|
|
| |
* translate.cxx (varlock): Use trylock only for write locks.
(translate_pass): Remove read_trylock macro hack.
(visit_foreach_loop): Remove protective read lock, until PR 1275.
(visit_*): Added many more "last_stmt"-setting expressions in the
output, to improve last_error message locality.
|
| |
|
|
|
|
| |
* tapset/logging.stp: Make log() be same as print().
|
|
|
|
| |
* tapsets.cxx: Temporarily rolled back graydon's changes.
|
|
|
|
| |
* tapset/*.stp: Renamed several files to simplify names.
|
|
|
|
|
|
|
|
|
|
| |
PR systemtap/1244
* testsuite/buildok/eighteen.stp: New test.
* tapsets.cxx (dwflpp::literal_stmt_for_local)
(query_statement, query_inline_instance_info)
(query_func_info, query_srcfile_line, query_cu)
(var_expanding_copy_visitor, visit_target_symbol)
(dwarf_derived_probe): Fix 1244.
|
|
|
|
| |
* tapset/builtin_logging.stp: Add print.
|
|
|
|
|
| |
* tapset/context.stp: New file. First cut at some
context info.
|
|
|
|
|
|
|
|
|
| |
* translate.cxx (emit_probe): Add a call to _stp_print_flush
at the end of each probe.
(translate_pass): Define STP_NUM_STRINGS to be 1 for
a scratch string. Include current.c and stack.c. Don't
define KALLSYMS_LOOKUP_NAME or KALLSYMS_LOOKUP. Remove
references to next_fmt() and stp_dbug().
|
|
|
|
|
| |
* stack.c (_stp_stack_sprint): Add a verbose arg
to pass along to underlying funcs.
|
|
|
|
|
|
|
|
|
| |
PR systemtap/1258
* tapsets.cxx (dwflpp::literal_stmt_for_local):
Support DW_TAG_enumeration_type tag as synonymous with
DW_TAG_base_type.
* loc2c.c (base_byte_size): Likewise.
* testsuite/buildok/seven.stp: Adjust to work on UP kernels.
|
|
|
|
|
| |
* tapsets.cxx (dwflpp::iterate_over_srcfile_lines): Correct segv
reported in PR 1270.
|
| |
|
| |
|
|
|
|
|
|
| |
* translate.cxx (visit_array_in, visit_arrayindex): Use write locks
even for array reads, until PR 1275.
(translate_pass): Add read_trylock -> write_trylock escalation.
|
|
|
|
|
| |
* runtime.h (init_module): Include full prototype
info in function cast to satisfy stap.
|
|
|
|
|
|
|
|
| |
* sym.c (_stp_kallsyms_lookup): Moved to runtime.h.
* stack.c (_stp_kta): Moved to runtime.h.
* runtime.h (init_module): Initialize _stp_kallsyms_lookup
and _stp_kta.
* probes.c (_stp_lookup_name): Replaced by kallsyms_lookup_name().
|
|
|
|
|
| |
* list.c (_stp_copy_argv_from_user): ifdef this function
NEED_STRING_VALS.
|
|
|
|
|
| |
* Makefile.template: Remove KTA, KALLSYMS_LOOKUP,
and KALLSYMS_LOOKUP_NAME
|
|
|
|
|
|
| |
* emul.h (_stp_kallsyms_lookup): Renamed from kallsyms_lookup.
* runtime.h: Add prototype for exit();
* copy.c: New file. Just some empty functions.
|
| |
|