summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2005-09-03 Frank Ch. Eigler <fche@elastic.org>fche2005-09-0311-70/+85
| | | | | | | | | | 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.
* 2005-09-02 Frank Ch. Eigler <fche@redhat.com>fche2005-09-022-39/+60
| | | | | | | | * 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.
* fix indentation errors in outputfche2005-09-021-5/+2
|
* 2005-09-02 Martin Hunt <hunt@redhat.com>hunt2005-09-022-5/+6
| | | | * tapset/logging.stp: Make log() be same as print().
* 2005-09-02 Frank Ch. Eigler <fche@elastic.org>fche2005-09-022-41/+25
| | | | * tapsets.cxx: Temporarily rolled back graydon's changes.
* 2005-09-02 Frank Ch. Eigler <fche@elastic.org>fche2005-09-024-0/+4
| | | | * tapset/*.stp: Renamed several files to simplify names.
* 2005-09-01 Graydon Hoare <graydon@redhat.com>graydon2005-09-023-21/+62
| | | | | | | | | | 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.
* 2005-09-01 Martin Hunt <hunt@redhat.com>hunt2005-09-012-0/+10
| | | | * tapset/builtin_logging.stp: Add print.
* 2005-09-01 Martin Hunt <hunt@redhat.com>hunt2005-09-012-0/+107
| | | | | * tapset/context.stp: New file. First cut at some context info.
* 2005-09-01 Martin Hunt <hunt@redhat.com>hunt2005-09-012-6/+13
| | | | | | | | | * 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().
* 2005-09-01 Martin Hunt <hunt@redhat.com>hunt2005-09-012-32/+31
| | | | | * stack.c (_stp_stack_sprint): Add a verbose arg to pass along to underlying funcs.
* 2005-08-31 Graydon Hoare <graydon@redhat.com>graydon2005-09-014-6/+33
| | | | | | | | | 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.
* 2005-08-31 Graydon Hoare <graydon@redhat.com>graydon2005-09-012-5/+18
| | | | | * tapsets.cxx (dwflpp::iterate_over_srcfile_lines): Correct segv reported in PR 1270.
* filling potholefche2005-08-311-1/+1
|
* function presentfche2005-08-311-1/+1
|
* 2005-08-31 Frank Ch. Eigler <fche@redhat.com>fche2005-08-312-2/+16
| | | | | | * 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.
* 2005-08-31 Martin Hunt <hunt@redhat.com>hunt2005-08-312-1/+5
| | | | | * runtime.h (init_module): Include full prototype info in function cast to satisfy stap.
* 2005-08-31 Martin Hunt <hunt@redhat.com>hunt2005-08-315-23/+16
| | | | | | | | * 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().
* 2005-08-31 Martin Hunt <hunt@redhat.com>hunt2005-08-312-0/+7
| | | | | * list.c (_stp_copy_argv_from_user): ifdef this function NEED_STRING_VALS.
* 2005-08-31 Martin Hunt <hunt@redhat.com>hunt2005-08-312-5/+6
| | | | | * Makefile.template: Remove KTA, KALLSYMS_LOOKUP, and KALLSYMS_LOOKUP_NAME
* 2005-08-31 Martin Hunt <hunt@redhat.com>hunt2005-08-314-3/+17
| | | | | | * emul.h (_stp_kallsyms_lookup): Renamed from kallsyms_lookup. * runtime.h: Add prototype for exit(); * copy.c: New file. Just some empty functions.
* test $var dot parsing changesfche2005-08-311-0/+1
|
* .roland2005-08-311-3/+8
|
* 2005-08-30 Roland McGrath <roland@redhat.com>roland2005-08-312-2/+2
| | | | | * Makefile.am (install-data-local): Use mkdir -p, not -mkdir. * Makefile.in: Regenerated.
* .roland2005-08-311-0/+7
|
* 2005-08-30 Roland McGrath <roland@redhat.com>roland2005-08-311-26/+36
| | | | | | | * loc2c-runtime.h (fetch_register, store_register): Rewritten to pass REGS to dwarf_register_<N> as a macro argument. [__i386__, __x86_64__]: Update dwarf_register_* macros. [__i386__] (dwarf_register_4): Define special case for stack pointer.
* 2005-08-30 Graydon Hoare <graydon@redhat.com>graydon2005-08-318-15/+46
| | | | | | | | | | | | | | * tapsets.cxx (dwflpp::literal_stmt_for_local): Handle dwarf pointer-to-1-byte-means-char case (found in PR 1187) * parse.cxx (parse_symbol): Eliminate use of "." from target symbol parser, conflicting with string concatenation operator. * staptree.h (target_symbol::component_type) Eliminate comp_struct_pointer_member, since . and -> are considered the same now. * staptree.cxx (target_symbol::print): Likewise. * testsuite/buildok/seventeen.stp: Test solution on PR 1191. * testsuite/buildok/six.stp: Test working portion of PR 1155. * testsuite/semko/nineteen.stp: Unresolved portion of PR 1155.
* 2005-08-30 Frank Ch. Eigler <fche@elastic.org>fche2005-08-302-2/+35
| | | | | | PR systemtap/1268 * translator (varlock): Add deadlock detection code. (emit_common_header): Add a new MAXTRYLOCK configuration macro.
* 2005-08-29 Graydon Hoare <graydon@redhat.com>graydon2005-08-302-41/+83
| | | | | | | | | | | | | | | | | | | | | | PR translator/1265 * tapsets.cxx (func_info::decl_file) (func_info::decl_line) (inline_instance_info::decl_file) (inline_instance_info::decl_line): New fields. (dwflpp::function_srcfile): Remove. (dwflpp::function_file): Add. (dwflpp::function_line): Add. (dwarf_derived_probe::dwarf_derived_probe): Update. (query_statement): Pass func, file, line through. (query_inline_instance_info): Likewise. (query_func_info): Likewise. (query_srcfile_line): Query statement lines if statement_str exists, rather than *_info. (query_dwarf_inline_instance): Extract file and line. (query_dwarf_func): Likewise. (query_cu): Pass empty func, file, line, for address-based queries.
* 2005-08-29 Frank Ch. Eigler <fche@redhat.com>fche2005-08-302-0/+10
| | | | * runtest.sh: Tolerate relative $SRCDIR.
* 2005-08-29 Frank Ch. Eigler <fche@redhat.com>fche2005-08-3012-171/+590
| | | | | | | | | | | | | | * stapprobes.5.in, stapfuncs.5.in, stapex.5.in: New man pages. * stap.1.in: Moved some content out. * Makefile.am (man_MANS): Add new man pages. * configure.ac (AC_CONFIG_FILES): Add them. * systemtap.spec.in: Package them. * Makefile.in, configure: Regenerated. * buildrun.cxx (run_pass): Pass "-r" to stpd. * translate.cxx (emit_common_header): Wrap try/catch around variable decls, to improve exception particularity. (visit_literal_number): Emit as unsigned literal, which is actually a subtle correctness issue.
* 2005-08-29 Martin Hunt <hunt@redhat.com>hunt2005-08-304-33/+43
| | | | | | * list.c (_stp_copy_argv_from_user): Move to here. * copy.c (_stp_copy_argv_from_user): Delete. * runtime.h: Always include copy.h.
* 2005-08-29 Martin Hunt <hunt@redhat.com>hunt2005-08-292-17/+29
| | | | | * stpd.c main): Add enable_relayfs flag. Turn it off with "-r".
* nonefche2005-08-291-1/+1
|
* 2005-08-28 Frank Ch. Eigler <fche@redhat.com>fche2005-08-283-7/+25
| | | | | | | * translate.cxx (visit_target): Make target variable exceptions more informative. (literal_stmt_for_local): Improve bad-type exception message. * translate.cxx (emit_module_init): Include probe point in comments.
* .roland2005-08-271-0/+3
|
* 2005-08-27 Roland McGrath <roland@redhat.com>roland2005-08-271-1/+51
| | | | | * loc2c-test.c (print_type): New function. (print_vars): Use it.
* .roland2005-08-271-0/+5
|
* 2005-08-27 Roland McGrath <roland@redhat.com>roland2005-08-271-24/+95
| | | | | * loc2c-test.c (paddr, print_vars): New functions. (main): If given no variable name argument, print out variables.
* 2005-08-26 Graydon Hoare <graydon@redhat.com>graydon2005-08-262-53/+24
| | | | * translate.cxx: Revert tmp initialization changes.
* 2005-08-26 Graydon Hoare <graydon@redhat.com>graydon2005-08-263-28/+96
| | | | | | | | | | | * parse.cxx (scan): Preserve basic C-ish escapes. * translate.cxx (c_tmpcounter::declaring): New flag. (c_tmpcounter::declare_or_init): New helper method. (c_tmpcounter::visit_*): Use declare_or_init. (c_unparser::emit_function): Run a tmpcounter to initialize tmps. (c_unparser::emit_probe): Likewise. (c_unparser::c_strcpy): Use strlcpy. (c_unparser::c_strcat): Use strlcat.
* bumped versionfche2005-08-262-11/+11
|
* nonefche2005-08-261-1/+1
|
* (deref_string): terminateroland2005-08-251-0/+1
|
* .roland2005-08-251-0/+4
|
* 2005-08-25 Roland McGrath <roland@redhat.com>roland2005-08-251-2/+8
| | | | * loc2c-runtime.h (deref_string): Rewritten using deref.
* .roland2005-08-251-4/+5
|
* 2005-08-25 Roland McGrath <roland@redhat.com>roland2005-08-252-5/+7
| | | | | | * Makefile.am (EXTRA_DIST): List .h files explicitly. Automake really does not like wildcards. * Makefile.in: Regenerated.
* 2005-08-25 Frank Ch. Eigler <fche@redhat.com>fche2005-08-253-8/+7
| | | | | * Makefile.am (docs): Removed target. * Makefile.in: Regenerated.
* Regenerated.roland2005-08-252-2/+3
|