summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2005-07-29 Roland McGrath <roland@redhat.com>roland2005-07-291-30/+30
| | | | | | | * librelay.c (process_subbufs): Use unsigned for I. (sigproc): Add __attribute__((unused)) on parameter. (sigchld): Likewise. Avoid shadowing global variable name. (stp_main_loop): Add a cast.
* 2005-07-28 Frank Ch. Eigler <fche@elastic.org>fche2005-07-292-12/+18
| | | | * elaborate.cxx (find_var): Correct array dereferencing thinko.
* 2005-07-28 Graydon Hoare <graydon@redhat.com>graydon2005-07-2912-117/+1960
| | | | | | | | | | | | | | | | | | | | | | | * elaborate.cxx (derived_probe::derived_probe): Accept NULL probe. * staptree.cxx (provide, require): Move from here... * staptree.h: to here, and virtualize deep-copy methods. * translate.cxx (c_unparser::emit_common_header): Include loc2c-runtime.h * tapsets.cxx (dwflpp::iterate_over_modules): Use new, faster getmodules loop. (dwflpp::literal_stmt_for_local): New method, call loc2c. (var_expanding_copy_visitor): New struct which expands $-vars. (dwarf_derived_probe): Rebuild this->body using var expander. (query_function): Refactor logic a bit for speed. * loc2c.{c,h}: Copies (with minor changes) of Roland's work from elfutils CVS. * Makefile.am (AM_CFLAGS): Set to elfutils-style. (stap_SOURCES): Add loc2c.c. * Makefile.in: Regenerate. 2005-07-28 Graydon Hoare <graydon@redhat.com> * loc2c-runtime.h: New file from elfutils CVS.
* 2005-07-28 Frank Ch. Eigler <fche@redhat.com>fche2005-07-287-30/+221
| | | | | | | | | * stap.1: Beginnings of a man page. * Makefile.am: Install it. Comment out stpd LDADD goodies. * configure.ac: Futilely complain about non-stpd LIBS. * Makefile.in, configure.in: Regenerated. * main.cxx (usage): Remove ARGS from help text, as nothing is done with these yet.
* Add io.chunt2005-07-283-1/+81
|
* Add test issii.chunt2005-07-282-0/+51
|
* 2005-07-28 Frank Ch. Eigler <fche@redhat.com>fche2005-07-286-25/+65
| | | | | | | | | * translate.cxx: Add "pt_regs*" field to context. * tapsets.cxx (*): Correct kprobes API interface. * testsuite/buildok/three.stp: New test, copied from semok. * Makefile.am (install-data-local): Also install runtime/relayfs, so scripts can build against headers located thereunder. * Makefile.in: Regenerated.
* 2005-07-28 Frank Ch. Eigler <fche@redhat.com>fche2005-07-2824-430/+446
| | | | | | | | | | | | | | | | | | | translator/1120 * main.cxx (main): Preset -R and -I options from environment variables (if set). Pass guru mode flags to parser. * parse.cxx (privileged): New parser operation flag. Update callers. (parse_embeddedcode): Throw an error if !privileged. (parse_functiondecl): Change signature. Prevent duplicates. (parse_globals): Ditto. * parse.h: Corresponding changes. * tapset/*.stp: Beginnings of real tapset library, to replace previous builtins. * tapsets.cxx: Greatly reduce verbose mode output. * Makefile.am: Install & dist it. * runtest.sh: Refer to it. * Makefile.in, aclocal.m4: Regenerated. * testsuite/*/*.stp: Set guru mode via /bin/sh if needed. * testusite/*/*ko.stp: Homogenize shell scripts.
* 2005-07-28 Martin Hunt <hunt@redhat.com>hunt2005-07-283-2/+88
| | | | * stp_dump.c: New file.
* 2005-07-28 Martin Hunt <hunt@redhat.com>hunt2005-07-287-73/+58
| | | | | * bench/ALL: Chnage to probe sys_getuid() and sys_getgid() because those aren't used by stpd, unlike sys_read() and sys_write().
* 2005-07-28 Frank Ch. Eigler <fche@redhat.com>fche2005-07-287-29/+91
| | | | | | | | | | | | translator/1120 translator/1123 * elaborate.cxx (semantic_pass_symbols): Print a more helpful error message around exceptions. * elaborate.h (systemtap_session): Add guru_mode field. * main.cxx (main): Initialize it to false. Add version-sensitive script library searching. Add more failure messages. * tapsets.cxx (dwflpp_assert): Add a decorative text parameter. Update callers.
* 2005-07-28 Martin Hunt <hunt@redhat.com>hunt2005-07-283-2/+13
| | | | | * Makefile.am (install-data-local): Add runtime/transport. * Makefile.in: regenerated.
* 2005-07-26 Graydon Hoare <graydon@redhat.com>graydon2005-07-275-144/+27
| | | | | | * elaborate.cxx: Revert builtin-function code. * translate.cxx: Likewise. * tapsets.{h,cxx}: Likewise.
* 2005-07-26 Martin Hunt <hunt@redhat.com>hunt2005-07-272-1/+6
| | | | | * buildrun.cxx (compile_pass): Add -Wno-unused to CFLAGS because usually a module doesn't use every function in the runtime.
* 2005-07-26 Martin Hunt <hunt@redhat.com>hunt2005-07-274-7/+16
| | | | | | | * Makefile.am (stpd_LDFLAGS): Set rpath correclty because otherwise automake doesn't seem to get it right when binaries are in libexec subdirs. (AM_CPPFLAGS): revert. * systemtap.spec.in (LDFLAGS): Set libexecdir here instead.
* * same sort of thingfche2005-07-261-0/+10
|
* 2005-07-26 Frank Ch. Eigler <fche@redhat.com>fche2005-07-2622-134/+384
| | | | | | | | | | | | | | | | | | | | | Support %{ embedded-c %} * staptree.h (embeddedcode): New statement subtype. Stub support in visitors. * staptree.cxx: Ditto. * parse.cxx: Parse %{ / %}. Accept "_" as identifier leading char. (parse_probe): Simplify calling convention. * elaborate.h: Store embedded code. * elaborate.cxx: Pass it. * translate.cxx: Transcribe it. Return some dropped module init/exit code. * Makefile.am: Add buildok/buildko tests. * Makefile.in: Regenerated. * main.cxx: Return EXIT_SUCCESS/FAILURE even for weird rc. * testsuite/parseok/nine.stp: Test _identifiers. * testsuite/transko/*.stp: Tweak to force -p3 rather than -p2 errors. * testsuite/semok/transko.stp: ... and keep it that way in the future. * testsuite/parse*/*: Some new tests for %{ %}. * testsuite/build*/*: New tests for -p4.
* 2005-07-26 Martin Hunt <hunt@redhat.com>hunt2005-07-263-4/+5
| | | | * Makefile.am (AM_CPPFLAGS): Set PKGLIBDIR correctly.
* 2005-07-26 Martin Hunt <hunt@redhat.com>hunt2005-07-265-131/+345
| | | | | | | | * systemtap.spec.in: Stpd goes in libexec/systemtap. * Makefile.am (libexecdir): Set to libexecdir/systemtap. * aclocal.m4, Makefile.in: Regenerated
* Clean up spec file, fix build of bundled elfutils.roland2005-07-251-29/+57
|
* 2005-07-25 Roland McGrath <roland@redhat.com>roland2005-07-257-417/+178
| | | | | | | | | * configure.ac: Don't define PKGLIBDIR and PKGDATADIR here. * Makefile.am (AM_CPPFLAGS): New variable, use -D here instead. (dist-hook): Don't remove ChangeLog files. (install-data-local): Don't install docs, just runtime stuff. (rpm, clean-local): Use make variables instead of @substitution@s. * configure, config.in, aclocal.m4, Makefile.in: Regenerated
* 2005-07-22 Graydon Hoare <graydon@redhat.com>graydon2005-07-238-19/+438
| | | | | | | | | | | | | | | * translate.cxx (itervar): New class. (*::visit_foreach_loop): Implement. Various bug fixes. * staptree.cxx (deep_copy_visitor::*): Copy tok fields. * elaborate.cxx (lvalue_aware_traversing_visitor): (mutated_map_collector): (no_map_mutation_during_iteration_check): New classes. (semantic_pass_maps): New function to check map usage. (semantic_pass): Call it. * testsuite/transok/eight.stp: Test 'foreach' loop translation. * testsuite/semko/{thirteen,fourteen,fifteen}.stp: Test prohibited forms of foreach loops.
* Produce some statistics regarding the time (cpu cycles) in the interrupt handlercspiraki2005-07-221-7/+11
|
* New file.hunt2005-07-211-0/+103
|
* 2005-07-21 Martin Hunt <hunt@redhat.com>hunt2005-07-215-56/+95
| | | | | | | | | | | | * Makefile.am (EXTRA_DIST): Add systemtap.spec. (install-data-local): Install docs and probes. (docs): New target. (rpm): New target. * configure.ac: Set initial version to 0.1.1. (pkglibdir): Set to libexec. * Makefile.in: Regenerated.
* Set HAVE_DOT to NO.hunt2005-07-211-1/+1
|
* Allow clean compile on x86_64 and change output to include process namecspiraki2005-07-211-7/+12
|
* 2005-07-20 Graydon Hoare <graydon@redhat.com>graydon2005-07-208-507/+920
| | | | | | | | | * elaborate.{cxx,h} (find_array): Remove. (find_scalar): Rename to find_var, add array support. * staptree.{cxx,h} (vardecl::compatible_arity): New method. * translate.cxx: Refactor, add array read/write support. * testsuite/transok/three.stp: Uncomment array uses. * testsuite/transok/seven.stp: New test of array r/w.
* 2005-07-20 Frank Ch. Eigler <fche@redhat.com>fche2005-07-203-54/+169
| | | | | | | * tapsets.cxx (*::emit_[de]registrations): Add logic for probe lifecycle control (session_state). * translate.cxx (emit_common_header,emit_module_{init,exit}): Ditto. (visit_*): Use per-context errorcount.
* 2005-07-20 Martin Hunt <hunt@redhat.com>hunt2005-07-202-4/+7
| | | | | * io.c (_stp_vlog): Don't count transport failures for these messages.
* 2005-07-19 Martin Hunt <hunt@redhat.com>hunt2005-07-202-2/+10
| | | | | * print.c (_stp_print_flush): Check return value and increment transport failures.
* nonefche2005-07-192-2/+2
|
* 2005-07-19 Frank Ch. Eigler <fche@redhat.com>fche2005-07-193-4/+12
| | | | | * Makefile.am (dist-hook): Complete the resulting tarball. * Makefile.in: Regenerated.
* 2005-07-19 Frank Ch. Eigler <fche@redhat.com>fche2005-07-192-25/+12
| | | | | * translate.cxx (emit_module_init/exit, translate_pass): Conform to newer runtime startup/shutdown hooks.
* 2005-07-18 Martin Hunt <hunt@redhat.com>hunt2005-07-193-3/+47
| | | | | | | | | * transport.h (_stp_transport_write): Call _stp_relay_write(). * transport.c (_stp_cleanup_and_exit): Print transport failure count. (_stp_relay_write): Like relay_write() except returns -1 on error.
* 2005-07-18 Martin Hunt <hunt@redhat.com>hunt2005-07-192-2/+6
| | | | * stp_merge.c (main): Fix dropped count calculation.
* 2005-07-15 Frank Ch. Eigler <fche@redhat.com>fche2005-07-155-2/+20
| | | | | | * Makefile.am (install-data-local): Correct typo. * buildrun.cxx (compile_pass): Ditto. * main.cxx (main): Print errors if passes 4 or 5 fail.
* 2005-07-14 Frank Ch. Eigler <fche@redhat.com>fche2005-07-143-25/+87
| | | | | | | * buildrun.cxx (compile_pass, run_pass): Get closer to a working test_mode. * translate.cxx (emit_module_init, emit_common_header): Ditto. (translate_pass): Ditto.
* 2005-07-14 Frank Ch. Eigler <fche@redhat.com>fche2005-07-142-3/+7
| | | | * alloc.c (_stp_error): Rename, to avoid name collision with ../io.c.
* *** empty log message ***trz2005-07-142-0/+9
|
* fix unmatched mutex unlocktrz2005-07-141-0/+1
|
* add forgotten initializationtrz2005-07-141-0/+2
|
* nonefche2005-07-141-9/+99
|
* 2005-07-14 Frank Ch. Eigler <fche@redhat.com>fche2005-07-149-73/+86
| | | | | | | | | * Makefile.am (stpd): Install in $pkglibdir. (runtime): Copy to $pkgdatadir. * configure.ac: Pass along pkgdatadir and pkglibdir. * main.cxx: Default runtime_path from pkgdatadir. * buildrun.cxx (run_pass): Correct stpd directory. * Makefile.in, configure, config.in: Regenerated.
* 2005-07-14 Frank Ch. Eigler <fche@redhat.com>fche2005-07-142-1/+5
| | | | * builtin_functions.h (printk): Use explicit format string.
* 2005-07-14 Frank Ch. Eigler <fche@redhat.com>fche2005-07-143-3/+9
| | | | | * stpd.c (main): Pass !quiet mode to init_stp(). * librelay.c (init_relayfs): Be quiet if !print_totals.
* 2005-07-13 Martin Hunt <hunt@redhat.com>hunt2005-07-132-1/+3
| | | | * stpd.c (usage): Fix usage string.
* 2005-07-13 Martin Hunt <hunt@redhat.com>hunt2005-07-132-1/+5
| | | | * librelay.c (init_stp): Change last arg to NULL, not 0.
* 2005-07-12 Martin Hunt <hunt@redhat.com>hunt2005-07-135-81/+95
| | | | | | | | | | | | * bench/run_bench (do_time): Use ttest instead of "time". Fix processor computation. * bench/ttest.c: Like "time.c" except takes an argument to adjust loop size. Also computes system time + user time instead of real time. Added a warmup loop to get consistent results from cpus which adjust speed based on load. * bench/time.c: Replaced by ttest.c
* 2005-07-12 Graydon Hoare <graydon@redhat.com>graydon2005-07-138-21/+233
| | | | | | | | | | | | | | | | | * elaborate.cxx (semantic_pass_symbols): Only enter body if non-null. (semantic_pass_types): Likewise. (semantic_pass): Pass session to register_standard_tapsets. * translate.cxx (builtin_collector): New struct. (hookup_builtins): New function. (translate_pass): Only translate functions with bodies. (c_unparser::emit_common_header): Likewise, and call hookup_builtins. * tapsets.hh (builtin_function): New class. (register_standard_tapsets): Change parameter to session. * tapsets.cc (bultin_function::*): Implement class. (register_standard_tapsets): Register printk, log, warn. * testsuite/transok/six.stp: New test.