]> sourceware.org Git - systemtap.git/log
systemtap.git
18 years ago2006-01-25 Martin Hunt <hunt@redhat.com>
hunt [Wed, 25 Jan 2006 09:17:05 +0000 (09:17 +0000)]
2006-01-25  Martin Hunt  <hunt@redhat.com>

* alloc.c (_stp_alloc_percpu): New function.
(_stp_free_percpu): New function.

18 years ago2006-01-25 Martin Hunt <hunt@redhat.com>
hunt [Wed, 25 Jan 2006 09:15:15 +0000 (09:15 +0000)]
2006-01-25  Martin Hunt  <hunt@redhat.com>

* stat.c (_stp_stat_init): Use _stp_alloc_percpu().
(_stp_stat_del): New function.

* alloc.c (_stp_alloc_percpu): New function.
(_stp_free_percpu): New function.

18 years agoTook sys_execve off the blacklist for return probes, now that RHEL4 U3
kenistoj [Tue, 24 Jan 2006 20:47:50 +0000 (20:47 +0000)]
Took sys_execve off the blacklist for return probes, now that RHEL4 U3
includes the fix for PR #1345.

18 years ago2006-01-24 Frank Ch. Eigler <fche@elastic.org>
fche [Tue, 24 Jan 2006 17:58:02 +0000 (17:58 +0000)]
2006-01-24  Frank Ch. Eigler  <fche@elastic.org>

PR 2060 etc.
* tapsets.cxx (visit_target_symbol): Tolerate failed resolution by
letting target_symbol instance pass through to optimizer and
type checker.
* elaborate.cxx (semantic_pass_optimize): New family of functions and
associated visitor classes.
(visit_for_loop): Tolerate absent init/incr clauses.
(semantic_pass): Invoke unless unoptimized (-u) option given.
* main.cxx, session.h: Add support for flag.
* staptree.cxx (visit_for_loop): Tolerate absent init/incr clauses.
(traversing_visitor::visit_arrayindex): Visit the index expressions.
(functioncall_traversing_visitor): New class.
(varuse_tracking_visitor): New class.
* staptree.h: Corresponding changes.
* parse.cxx (parse_for_loop): Represent absent init/incr expressions
with null statement pointer instead of optimized-out dummy numbers.
* stap.1.in: Document optimization.
* testsuite/{semko,transko}/*.stp: Added "-u" or other code to many
tests to check bad code without optimizer elision.
* testsuite/semok/optimize.stp: New test.

* elaborate.cxx (unresolved, invalid, mismatch): Standardize error
message wording.
* stapfuncs.5.in: Tweak print/printf docs.
* tapset/logging.stp: Remove redundant "print" auxiliary function,
since it's a translator built-in.
* testsuite/transok/five.stp: Extend test.
* translate.cxx (emit_symbol_data): Put symbol table into a separate
temporary header file, to make "-p3" output easier on the eyes.
* buildrun.cxx (compile_pass): Eliminate test-mode support throughout.
* main.cxx, session.h, translate.cxx: Ditto.
* main.cxx (main): For last-pass=2 runs, print post-optimization ASTs.

18 years ago2006-01-19 Martin Hunt <hunt@redhat.com>
hunt [Thu, 19 Jan 2006 19:26:32 +0000 (19:26 +0000)]
2006-01-19  Martin Hunt  <hunt@redhat.com>

* pmap-gen.c (_stp_pmap_get): Fix bug where old data
from agg map could be returned after element was deleted.

18 years ago2006-01-18 Josh Stone <joshua.i.stone@intel.com>
jistone [Wed, 18 Jan 2006 23:17:46 +0000 (23:17 +0000)]
2006-01-18  Josh Stone  <joshua.i.stone@intel.com>

* tapsets.cxx (profile_derived_probe::emit_probe_entries): Setup
c->regs properly in light of the emit_probe_prologue change.

18 years ago2006-01-18 Josh Stone <joshua.i.stone@intel.com>
jistone [Wed, 18 Jan 2006 21:00:05 +0000 (21:00 +0000)]
2006-01-18  Josh Stone  <joshua.i.stone@intel.com>

* translate.cxx (c_unparser::visit_foreach_loop): improved the error
message when _stp_pmap_agg fails.

18 years ago* simplified build instructions
fche [Wed, 18 Jan 2006 16:24:58 +0000 (16:24 +0000)]
* simplified build instructions

18 years ago2006-01-18 Frank Ch. Eigler <fche@elastic.org>
fche [Wed, 18 Jan 2006 05:12:49 +0000 (05:12 +0000)]
2006-01-18  Frank Ch. Eigler  <fche@elastic.org>

* translate.cxx (c_unparser_assignment::visit_arrayindex):
Eliminate dummy assignments for "<<<" code.

18 years ago2006-01-17 Josh Stone <joshua.i.stone@intel.com>
jistone [Wed, 18 Jan 2006 03:33:14 +0000 (03:33 +0000)]
2006-01-17  Josh Stone  <joshua.i.stone@intel.com>

PR 2156
* testsuite/buildok/pmap_foreach.stp: Add test with sorting

18 years ago2006-01-17 Josh Stone <joshua.i.stone@intel.com>
jistone [Wed, 18 Jan 2006 02:06:19 +0000 (02:06 +0000)]
2006-01-17  Josh Stone  <joshua.i.stone@intel.com>

PR 2156
* translate.cxx (c_unparser::visit_foreach_loop): Check the return
value of _stp_pmap_agg() for NULL.

18 years ago2006-01-17 Frank Ch. Eigler <fche@elastic.org>
fche [Tue, 17 Jan 2006 23:53:25 +0000 (23:53 +0000)]
2006-01-17  Frank Ch. Eigler  <fche@elastic.org>

* systemtap.spec.in: Remove explicit kernel-devel dependency,
since some old kernel rpm builds don't virtual-provide it for
e.g. smp, hugemem.

18 years ago2006-01-17 Frank Ch. Eigler <fche@elastic.org>
fche [Tue, 17 Jan 2006 23:34:09 +0000 (23:34 +0000)]
2006-01-17  Frank Ch. Eigler  <fche@elastic.org>

PR 2142
* translate.cxx (EXTRACTORS_PERMISSIVE): New experimental policy
parameter.
(c_unparser::visit_arrayindex, visit_print_format, visit_stat_op):
Tolerate absent index (= NULL runtime return) in pmap.
(*): Make semantic_error messages consistently lower case.
* testsuite/buildok/iterate_histogram_buckets.stp: Note some missing
functionality.

18 years ago2006-01-17 Josh Stone <joshua.i.stone@intel.com>
jistone [Tue, 17 Jan 2006 19:51:23 +0000 (19:51 +0000)]
2006-01-17  Josh Stone  <joshua.i.stone@intel.com>

* stap.1.in: Document the 'delete' operator.

18 years ago. release-0.5.3
roland [Tue, 17 Jan 2006 07:48:43 +0000 (07:48 +0000)]
.

18 years ago2006-01-16 Roland McGrath <roland@redhat.com>
roland [Tue, 17 Jan 2006 07:48:37 +0000 (07:48 +0000)]
2006-01-16  Roland McGrath  <roland@redhat.com>

* systemtap.spec.in (elfutils_version): Require 0.119 now.
* configure.ac, systemtap.spec.in: Version 0.5.3.
* configure: Regenerated.

18 years ago2006-01-16 Josh Stone <joshua.i.stone@intel.com>
jistone [Mon, 16 Jan 2006 23:40:50 +0000 (23:40 +0000)]
2006-01-16  Josh Stone  <joshua.i.stone@intel.com>

PR 2140
* translate.cxx (mapvar::del): Add ability to delete an indexed stat
from (p)maps.
(delete_statement_operand_visitor::visit_symbol): Add ability to
delete entire pmaps and scalars.
(delete_statement_operand_tmp_visitor): Add a special tmpvar visitor
to parallel delete_statement_operand_visitor.
(c_tmpcounter::visit_delete_statement): Invoke the new visitor.
* testsuite/buildok/delete.stp: Also test scalar deletes.
* vim/syntax/stap.vim: Recognize 'delete' operator.

2006-01-16  Josh Stone  <joshua.i.stone@intel.com>

* stat.c (_stp_stat_clear): add a function that just
clears a Stat, so we can use delete in the translator.

18 years ago2006-01-16 Martin Hunt <hunt@redhat.com>
hunt [Mon, 16 Jan 2006 08:33:35 +0000 (08:33 +0000)]
2006-01-16  Martin Hunt  <hunt@redhat.com>

* map.c (_stp_pmap_agg): Return NULL when aggregation
fails.

18 years ago2006-01-15 Frank Ch. Eigler <fche@elastic.org>
fche [Sun, 15 Jan 2006 17:26:18 +0000 (17:26 +0000)]
2006-01-15  Frank Ch. Eigler  <fche@elastic.org>

PR 2148
* translate.cxx (MAXERRORS): Actually the max should be 0, so first
error aborts session.

* Revert last stp_exit change.

18 years ago2006-01-13 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 13 Jan 2006 22:36:42 +0000 (22:36 +0000)]
2006-01-13  Frank Ch. Eigler  <fche@elastic.org>

* main.cxx (main): Suppress "Try again with -v" message if already
verbose.

18 years ago2006-01-13 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 13 Jan 2006 22:31:30 +0000 (22:31 +0000)]
2006-01-13  Frank Ch. Eigler  <fche@elastic.org>

* translate.cxx (c_unparser:getmap): Correct exception throwing typo.

18 years ago2006-01-12 Josh Stone <joshua.i.stone@intel.com>
jistone [Fri, 13 Jan 2006 03:55:16 +0000 (03:55 +0000)]
2006-01-12  Josh Stone  <joshua.i.stone@intel.com>

PR 2056
* translate.cxx (c_unparser::aggregation_locks): Keeps track of
foreach's locks on pmaps to avoid extra aggregation.
(c_unparser::visit_foreach_loop): Set aggregation_locks appropriately.
(c_unparser::load_aggregate, mapvar::call_prefix, mapvar::get):
Use a new parameter to indicate that we should read from the
already-aggregated map rather than the full pmap..
(c_unparser::visit_arrayindex c_unparser::visit_print_format,
c_unparser::visit_stat_op): Use aggregation_locks to avoid taking a
lock and aggregating the pmap.
(c_unparser::emit_map_type_instantiations): To read from a pmap's
aggregated map, we need to include map-gen.c for the _stp_map_*
functions.
(c_unparser::obtained_locks, varlock::varlock, varlock::~varlock):
Add simple static checking to detect incompatible nested locks during
translation, and flag it as an error.

18 years ago2006-01-11 Josh Stone <joshua.i.stone@intel.com>
jistone [Wed, 11 Jan 2006 19:21:27 +0000 (19:21 +0000)]
2006-01-11  Josh Stone  <joshua.i.stone@intel.com>

PR 2140
* testsuite/buildok/delete.stp: Test correct compilation of the
'delete' operator for all "legal" variations.

18 years ago2006-01-11 Frank Ch. Eigler <fche@elastic.org>
fche [Wed, 11 Jan 2006 19:07:54 +0000 (19:07 +0000)]
2006-01-11  Frank Ch. Eigler  <fche@elastic.org>

* translate.cxx (MAXERRORS): Oops, set back to intended default of 1.

18 years ago2006-01-10 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 10 Jan 2006 22:32:15 +0000 (22:32 +0000)]
2006-01-10  Frank Ch. Eigler  <fche@redhat.com>

PR 1972.
* tapsets.cxx (var_expanding_copy_visitor::visit_target_symbol):
Produce error message for $var access within .return probes.
* testsuite/semko/thirtyfour.stp: New test.

18 years ago2006-01-10 Martin Hunt <hunt@redhat.com>
hunt [Tue, 10 Jan 2006 21:18:02 +0000 (21:18 +0000)]
2006-01-10  Martin Hunt  <hunt@redhat.com>

* logging.stp: Don't set STAP_SESSION_STOPPING.
That it done in _stp_exit().

18 years ago2006-01-10 Martin Hunt <hunt@redhat.com>
hunt [Tue, 10 Jan 2006 21:14:50 +0000 (21:14 +0000)]
2006-01-10  Martin Hunt  <hunt@redhat.com>

* io.c (_stp_exit): set STAP_SESSION_STOPPING.

18 years ago2006-01-10 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 10 Jan 2006 18:52:33 +0000 (18:52 +0000)]
2006-01-10  Frank Ch. Eigler  <fche@redhat.com>

PR 2060.
* buildrun.cxx (compile_pass): Add "V=1" to kbuild if verbose.
* translate.cxx (translator_output): For output-file constructor,
set an explicit output buffer.
(emit_module_init, emit_module_exit): Reorganize output, to spit
each individual probe registration/deregistration blurb into a
separate function.
* translate.h: Corresponding changes; set default buffer size to 8K.
* translate.cxx, tapsets.cxx: Replace "endl" by buffer-friendly "\n"
throughout code generation routines.

18 years ago2006-01-09 Frank Ch. Eigler <fche@redhat.com>
fche [Mon, 9 Jan 2006 18:14:58 +0000 (18:14 +0000)]
2006-01-09  Frank Ch. Eigler  <fche@redhat.com>

* HACKING: Extend guidelines for tapset testing.

18 years agoBetter support for code coverage with gcov and lcov.
wcohen [Fri, 6 Jan 2006 23:08:30 +0000 (23:08 +0000)]
Better support for code coverage with gcov and lcov.

18 years ago2006-01-05 Josh Stone <joshua.i.stone@intel.com>
jistone [Thu, 5 Jan 2006 21:59:21 +0000 (21:59 +0000)]
2006-01-05  Josh Stone  <joshua.i.stone@intel.com>

PR 2056
* translate.cxx (var::~var, var::hist, var::buckets): make these
methods virtual, so we can use polymorphism.
(mapvar::hist, mapvar::buckets):  Override the corresponding var
methods to handle pmaps correctly.
(c_unparser::visit_arrayindex, c_unparser::visit_print_format): Make
use of the new polymorphic behavior of var & mapvar when dealing with
histogram data.
* testsuite/buildok/pmap_foreach.stp: Add tests to check histogram
accesses with for/foreach.

18 years ago2006-01-04 Frank Ch. Eigler <fche@elastic.org>
fche [Wed, 4 Jan 2006 20:19:01 +0000 (20:19 +0000)]
2006-01-04  Frank Ch. Eigler  <fche@elastic.org>

PR 2057.
* translate.cxx (c_unparser_assignment::visit_arrayindex): Don't take
write lock around pmap accumulation.

18 years agoImprove test coverage.
wcohen [Wed, 4 Jan 2006 17:00:37 +0000 (17:00 +0000)]
Improve test coverage.

18 years ago2006-01-03 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 3 Jan 2006 23:15:26 +0000 (23:15 +0000)]
2006-01-03  Frank Ch. Eigler  <fche@redhat.com>

* tapsets.cxx (emit_deregistration): Fix bad thinko on loop nesting.

18 years ago2006-01-03 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 3 Jan 2006 22:33:53 +0000 (22:33 +0000)]
2006-01-03  Frank Ch. Eigler  <fche@redhat.com>

PR 1144, 1379
* tapsets.cxx (emit_probe_prologue, _epilogue): New routines.
Call from existing derived_probe spots.  Implement soft errors in
epilogue code.  Implement reentrancy detection in prologue code.
(dwarf_derived_probe::emit_deregistration): Add kprobes layer
"nmissed" to skipped_count.
* translate.cxx (varlock): Use nsleep(TRYLOCKDELAY) in lock
contention loop.
(emit_module_exit): Report number of soft errors and skipped probes.
(emit_function, _probe): Add __restrict__ marker to context pointer.
(translate_pass): Define new MAXTRYLOCK, TRYLOCKDELAY, MAXERRORS,
MAXSKIPPED parameters.
* tapset/logging.stp (error): Don't stp_error, just set context state.
* stap.1.in, stapfuncs.5.in: Document soft errors.
* elaborate.h: Corresponding changes.

2006-01-03  Frank Ch. Eigler  <fche@redhat.com>

* io.c (_stp_softerror): New function.

2006-01-03  Frank Ch. Eigler  <fche@redhat.com>

* systemtap.base/timers.exp: Extend the test run duration.
Accept skipped probe warnings at shutdown.

18 years ago* formatting/typo fixes
fche [Tue, 3 Jan 2006 16:17:43 +0000 (16:17 +0000)]
* formatting/typo fixes

18 years ago2005-12-23 Kevin Stafford <krstaffo@us.ibm.com>
kevinrs [Fri, 23 Dec 2005 21:09:32 +0000 (21:09 +0000)]
2005-12-23  Kevin Stafford <krstaffo@us.ibm.com>
SCRIPTS:
   run.sh - This is the driver for automated testing.
            To run: ./run.sh stpdirectory c_binaries_directory
            Result: log/timestamp.log discerpancy report

   ctostp.sh - This script generates corresponding stp probe script
               files for every C file found in the input directory.
               To Run: ctostp.sh input output where input is the
               directory containing the C files to convert. Output
               is the directory to store the corresponding stp
               files.

   build.sh - This script expedites the process of compiling all
              of the c files. When the "compile" flag is given
              it creates a directory called bin, which stores the
              compiled C programs. ./build.sh clean removes the
              binaries, and ./build.sh run attempts to execute all
              of the programs in cfiles/bin.

18 years ago2005-12-23 Kevin Stafford <krstaffo@us.ibm.com>
kevinrs [Fri, 23 Dec 2005 20:38:22 +0000 (20:38 +0000)]
2005-12-23  Kevin Stafford  <krstaffo@us.ibm.com>
        * tapset/2.6.9-20.ELsmp/syscalls.stp: added kernel
          version tapset
        * tapset/2.6.9-20.ELsmp/i686/syscalls.stp: added kernel
          version arch specific tapset
        * tapset/doc/dicrepancies.txt: log of kernel version
          discrepancies.

18 years ago2005-12-23 Kevin Stafford <krstaffo@us.ibm.com>
kevinrs [Fri, 23 Dec 2005 20:37:59 +0000 (20:37 +0000)]
2005-12-23  Kevin Stafford  <krstaffo@us.ibm.com>
* tapset/2.6.9-20.ELsmp/syscalls.stp: added kernel
  version tapset
        * tapset/2.6.9-20.ELsmp/i686/syscalls.stp: added kernel
          version arch specific tapset
* tapset/doc/dicrepancies.txt: log of kernel version
  discrepancies.

18 years ago.
roland [Thu, 22 Dec 2005 23:05:26 +0000 (23:05 +0000)]
.

18 years ago2005-12-22 Roland McGrath <roland@redhat.com>
roland [Thu, 22 Dec 2005 23:05:20 +0000 (23:05 +0000)]
2005-12-22  Roland McGrath  <roland@redhat.com>

* configure.ac: Pass LDFLAGS to elfutils configure to force DT_RUNPATH.
* configure: Regeneraed.

18 years agoadd PR note to ChangeLog
jistone [Wed, 21 Dec 2005 22:22:44 +0000 (22:22 +0000)]
add PR note to ChangeLog

18 years ago2005-12-21 Josh Stone <joshua.i.stone@intel.com>
jistone [Wed, 21 Dec 2005 22:20:53 +0000 (22:20 +0000)]
2005-12-21  Josh Stone  <joshua.i.stone@intel.com>

        * translate.cxx (itervar::next): emit different code for pmaps

18 years ago2005-12-21 Frank Ch. Eigler <fche@elastic.org>
fche [Wed, 21 Dec 2005 20:53:13 +0000 (20:53 +0000)]
2005-12-21  Frank Ch. Eigler  <fche@elastic.org>

* loc2c.h: Add __attribute__ defeating code for g++ 3.3 compatibility.

18 years ago2005-12-20 Josh Stone <joshua.i.stone@intel.com>
jistone [Wed, 21 Dec 2005 00:44:16 +0000 (00:44 +0000)]
2005-12-20  Josh Stone  <joshua.i.stone@intel.com>

* vim/filetype.vim: defines *.stp files as SystemTap scripts
* vim/ftplugin/stap.vim: sets the comment styles
* vim/indent/stap.vim: enables simple auto-indenting
* vim/syntax/stap.vim: defines syntax highlighting

18 years ago. release-0.5.2
roland [Tue, 20 Dec 2005 01:07:44 +0000 (01:07 +0000)]
.

18 years ago2005-12-19 Roland McGrath <roland@redhat.com>
roland [Tue, 20 Dec 2005 01:07:43 +0000 (01:07 +0000)]
2005-12-19  Roland McGrath  <roland@redhat.com>

* configure.ac, systemtap.spec.in: Version 0.5.2.
* configure: Regenerated.

18 years ago.
roland [Sun, 18 Dec 2005 05:37:14 +0000 (05:37 +0000)]
.

18 years ago2005-12-13 Roland McGrath <roland@redhat.com>
roland [Sun, 18 Dec 2005 05:37:01 +0000 (05:37 +0000)]
2005-12-13  Roland McGrath  <roland@redhat.com>

* staptree.h: #include <cassert> here.

18 years agoAnil S Keshavamurthy - Blacklist'ing notifier_call_chain() function, as this
askeshav [Fri, 16 Dec 2005 00:27:52 +0000 (00:27 +0000)]
Anil S Keshavamurthy - Blacklist'ing notifier_call_chain() function, as this
function is on kprobes critical path, having probes on this will damage the
system.

18 years agoAdded cpuid().
hien [Thu, 15 Dec 2005 21:22:05 +0000 (21:22 +0000)]
Added cpuid().

18 years ago*** empty log message ***
hunt [Thu, 15 Dec 2005 05:47:48 +0000 (05:47 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
hunt [Thu, 15 Dec 2005 05:46:07 +0000 (05:46 +0000)]
*** empty log message ***

18 years ago2005-12-14 Kevin Stafford <krstaffo@us.ibm.com>
kevinrs [Thu, 15 Dec 2005 00:34:35 +0000 (00:34 +0000)]
2005-12-14  Kevin Stafford  <krstaffo@us.ibm.com>
        * 2.6.14/syscalls.stp: added 2.6.14 syscalls to tapset
        * 2.6.14/i686/syscalls.stp: added i386 arch specific syscalls
          to tapset for kernel 2.6.14
        * 2.6.9-24.ELsmp/syscalls.stp: added 2.6.9-24.ELsmp syscalls
          to tapset
        * 2.6.9-24.ELsmp/x86_64/syscalls.stp: added x86_64 arch specific
          syscalls to tapset for kernel 2.6.9-24.ELsmp
        * system_calls.stp: removed generic system_calls.stp tapset.

18 years ago2005-12-14 Kevin Stafford <krstaffo@us.ibm.com>
kevinrs [Thu, 15 Dec 2005 00:30:27 +0000 (00:30 +0000)]
2005-12-14  Kevin Stafford  <krstaffo@us.ibm.com>
        * 2.6.14/syscalls.stp: added 2.6.14 syscalls to
          tapset
        * 2.6.14/i686/syscalls.stp: added i386 arch specific syscalls
          to tapset for kernel 2.6.14
        * 2.6.9-24.ELsmp/syscalls.stp: added 2.6.9-24.ELsmp/ syscalls
          to tapset
* system_calls.stp: removed generic system_calls.stp tapset.

18 years ago2005-12-12 Kevin Stafford <krstaffo@us.ibm.com>
kevinrs [Thu, 15 Dec 2005 00:25:41 +0000 (00:25 +0000)]
2005-12-12  Kevin Stafford  <krstaffo@us.ibm.com>
* syscalls.stp: added x86_64 arch specific syscalls to
  tapset for kernel 2.6.9-24.ELsmp

18 years agoNew testcase
hunt [Wed, 14 Dec 2005 21:47:36 +0000 (21:47 +0000)]
New testcase

18 years ago2005-12-14 Martin Hunt <hunt@redhat.com>
hunt [Wed, 14 Dec 2005 21:10:14 +0000 (21:10 +0000)]
2005-12-14  Martin Hunt  <hunt@redhat.com>

* tapset/system_calls.stp (epoll.ctl): Temporarily remove
references to $op and $event because gcc 4.0.2 can't
find them.
(epoll.wait): Ditto for $maxevents.

18 years ago2005-12-14 Martin Hunt <hunt@redhat.com>
hunt [Wed, 14 Dec 2005 21:06:57 +0000 (21:06 +0000)]
2005-12-14  Martin Hunt  <hunt@redhat.com>

* pmap-gen.c (_stp_pmap_new_*): Initialize lock.
(_stp_pmap_set_*): Lock map while in use.
(_stp_pmap_add_*): Lock map while in use.
(_stp_pmap_get_cpu): Ditto.
(_stp_pmap_get): Lock each per-cpu map.

* map-gen.c: Define and use NULLRET for a NULL return value.
* map.c (_stp_pmap_clear): New function.
(_stp_pmap_agg): Lock each per-cpu map as
it gets aggregated.

18 years ago2005-12-14 Martin Hunt <hunt@redhat.com>
hunt [Wed, 14 Dec 2005 20:59:42 +0000 (20:59 +0000)]
2005-12-14  Martin Hunt  <hunt@redhat.com>

* emul.h: Add fake spinlock funcs.

18 years ago2005-12-13 Martin Hunt <hunt@redhat.com>
hunt [Tue, 13 Dec 2005 21:47:52 +0000 (21:47 +0000)]
2005-12-13  Martin Hunt  <hunt@redhat.com>

* map.c (_stp_map_sortn): Set a limit of 30 for n.  Automatically
call _stp_map_sort() if more is requested.

18 years ago2005-12-13 Frank Ch. Eigler <fche@redhat.com>
fche [Tue, 13 Dec 2005 19:28:03 +0000 (19:28 +0000)]
2005-12-13  Frank Ch. Eigler  <fche@redhat.com>

* tapsets.cxx (var_expanding_copy_visitor::visit_target):
Transcribe token pointer to synthesized functiondecl.

18 years ago* reformatted
fche [Tue, 13 Dec 2005 16:02:30 +0000 (16:02 +0000)]
* reformatted

18 years ago2005-12-12 Josh Stone <joshua.i.stone@intel.com>
jistone [Mon, 12 Dec 2005 23:42:21 +0000 (23:42 +0000)]
2005-12-12  Josh Stone  <joshua.i.stone@intel.com>

    * tapsets.cxx (profile_derived_probe::*,profile_builder::build): Do kernel
    version checks at translation time, using the same internal mechanisms as
    the preprocessor - a la %( kernel_v < "2.6.10" %? ... %: ... %)

18 years ago2005-12-12 Josh Stone <joshua.i.stone@intel.com>
jistone [Mon, 12 Dec 2005 22:19:12 +0000 (22:19 +0000)]
2005-12-12  Josh Stone  <joshua.i.stone@intel.com>

        * tapset/context.stp (execname,pid,tid,ppid,pexecname,gid,egid,uid,euid):
        Removed in_interrupt checks and other pointer checks.  We now operate on
        the assumption that "current" and its related data are always valid.

18 years ago2005-12-12 Kevin Stafford <krstaffo@us.ibm.com>
kevinrs [Mon, 12 Dec 2005 21:53:32 +0000 (21:53 +0000)]
2005-12-12  Kevin Stafford  <krstaffo@us.ibm.com>
* main.cxx (main): Added arch directory to the existing
kernel-version-sensitive search path.

18 years ago2005-12-12 Kevin Stafford <krstaffo@us.ibm.com>
kevinrs [Mon, 12 Dec 2005 21:50:47 +0000 (21:50 +0000)]
2005-12-12  Kevin Stafford  <krstaffo@us.ibm.com>
* main.cxx (main): Added arch directory to the existing
  kernel-version-sensitive search path.

18 years ago2005-12-12 Frank Ch. Eigler <fche@redhat.com>
fche [Mon, 12 Dec 2005 21:28:45 +0000 (21:28 +0000)]
2005-12-12  Frank Ch. Eigler  <fche@redhat.com>

* translate.cxx (translate_pass): Emit #include <linux/profile.h>.

18 years agoStop additional systemtap probes from collecting data when exit()
wcohen [Mon, 12 Dec 2005 20:27:00 +0000 (20:27 +0000)]
Stop additional systemtap probes from collecting data when exit()
occurs.

18 years agoA long overdue update of cscope.files. This was generated with the
jistone [Mon, 12 Dec 2005 19:18:04 +0000 (19:18 +0000)]
A long overdue update of cscope.files.  This was generated with the
following command:

  echo -q >cscope.files && find -name '*.[ch]' -o -name '*.cxx' |sort >>cscope.files

The sorting is to make sure that future updates show a more consistant
diff between versions in CVS.

(note: it may be worthwhile to add a 'cscope' target to the Makefile, and
 stop storing a static cscope.files list in CVS...)

18 years ago2005-12-12 Frank Ch. Eigler <fche@redhat.com>
fche [Mon, 12 Dec 2005 17:39:53 +0000 (17:39 +0000)]
2005-12-12  Frank Ch. Eigler  <fche@redhat.com>

Fix parse tree pretty-printer.
* staptree.h (print_format): Add raw_components field.
* parse.cxx (parse_symbol): Set it.
* staptree.cxx (lex_cast_qstring): Copy it here too.
(binary_expression::print): Add a space around operator, due to
lexical ambiguity (expr % paren-expr) vs %( preprocessor op.
(array_in:: foreach_loop:: arrayindex::print): Print base as indexable.
(print_format::string_to_components): Use parse_error, not semantic.
(print_format::print): Properly quote formatting string.  Print
histogram argument.
* translate.cxx (visit_print_format): Properly quote formatting string.
(varlock): Reword lock timeout error message.
* testsuite/buildok/printf.stp: Add some quoting troublemakers.
* testsuite/parseok/unparser.stp: New file.

18 years agoFix typo in last change.
roland [Mon, 12 Dec 2005 06:03:28 +0000 (06:03 +0000)]
Fix typo in last change.

18 years ago.
roland [Mon, 12 Dec 2005 05:52:33 +0000 (05:52 +0000)]
.

18 years ago2005-12-11 Roland McGrath <roland@redhat.com>
roland [Mon, 12 Dec 2005 05:52:08 +0000 (05:52 +0000)]
2005-12-11  Roland McGrath  <roland@redhat.com>

PR 1916
* configure.ac: Grok --with-elfutils.
* Makefile.am [BUILD_ELFUTILS] (install-elfutils, stamp-elfutils):
New targets.
[BUILD_ELFUTILS] (stap_LDFLAGS, stap_LDFLAGS): Add flags
to point at local elfutils build.
[BUILD_ELFUTILS] (BUILT_SOURCES): Add stamp-elfutils.
[BUILD_ELFUTILS] (stap_DEPENDENCIES): New variable.
[BUILD_ELFUTILS] (lib-elfutils/libdw.so): New target.
[BUILD_ELFUTILS] (install-exec-local): Depend on install-elfutils.
(loc2c_test_LDADD): Set this to $(stap_LDADD).
(loc2c_test_CPPFLAGS, loc2c_test_LDFLAGS): New variables.
* Makefile.in: Regenerated.
* compile: New file from automakeland.
* systemtap.spec.in (elfutils_version): Require 0.118 or later.
[bundled_elfutils]: Remove old hacks for building elfutils, and rely
on configure --with-elfutils instead.

18 years ago2005-12-11 Roland McGrath <roland@redhat.com>
roland [Mon, 12 Dec 2005 05:52:00 +0000 (05:52 +0000)]
2005-12-11  Roland McGrath  <roland@redhat.com>

PR 1916
* configure.ac: Grok --with-elfutils.
* Makefile.am [BUILD_ELFUTILS] (install-elfutils, stamp-elfutils):
New targets.
[BUILD_ELFUTILS] (stap_LDFLAGS, stap_LDFLAGS): Add flags
to point at local elfutils build.
[BUILD_ELFUTILS] (BUILT_SOURCES): Add stamp-elfutils.
[BUILD_ELFUTILS] (stap_DEPENDENCIES): New variable.
[BUILD_ELFUTILS] (lib-elfutils/libdw.so): New target.
[BUILD_ELFUTILS] (install-exec-local): Depend on install-elfutils.
(loc2c_test_LDADD): Set this to $(stap_LDADD).
(loc2c_test_CPPFLAGS, loc2c_test_LDFLAGS): New variables.
* Makefile.in: Regenerated.
* compile: New file from automakeland.
* systemtap.spec.in (elfutils_version): Require 0.118 or later.
[bundled_elfutils]: Remove old hacks for building elfutils, and rely
on configure --with-elfutils instead.
* Makefile.am (pkglibexecdir): New variable.
(AM_CPPFLAGS): Use it.
(pkglibexec_PROGRAMS): Set this instead of noinst_PROGRAMS with stpd.
(pkglibexec_SCRIPTS, CLEANFILES): New variables.
(install-exec-local): Target removed.
* runtest.sh: Set LD_LIBRARY_PATH when lib-elfutils is in use.

18 years ago2005-12-11 Roland McGrath <roland@redhat.com> release-0.5.1
roland [Mon, 12 Dec 2005 05:51:54 +0000 (05:51 +0000)]
2005-12-11  Roland McGrath  <roland@redhat.com>

* configure.ac: Bump version to 0.5.1 for test builds.
* systemtap.spec.in: Remove ExclusiveArch.
* configure: Regenerated.
PR 1916
* configure.ac: Grok --with-elfutils.
* Makefile.am [BUILD_ELFUTILS] (install-elfutils, stamp-elfutils):
New targets.
[BUILD_ELFUTILS] (stap_LDFLAGS, stap_LDFLAGS): Add flags
to point at local elfutils build.
[BUILD_ELFUTILS] (BUILT_SOURCES): Add stamp-elfutils.
[BUILD_ELFUTILS] (stap_DEPENDENCIES): New variable.
[BUILD_ELFUTILS] (lib-elfutils/libdw.so): New target.
[BUILD_ELFUTILS] (install-exec-local): Depend on install-elfutils.
(loc2c_test_LDADD): Set this to $(stap_LDADD).
(loc2c_test_CPPFLAGS, loc2c_test_LDFLAGS): New variables.
* Makefile.in: Regenerated.
* compile: New file from automakeland.
* systemtap.spec.in (elfutils_version): Require 0.118 or later.
[bundled_elfutils]: Remove old hacks for building elfutils, and rely
on configure --with-elfutils instead.

18 years ago2005-12-11 Roland McGrath <roland@redhat.com>
roland [Mon, 12 Dec 2005 05:51:46 +0000 (05:51 +0000)]
2005-12-11  Roland McGrath  <roland@redhat.com>

* Makefile.am (pkglibexecdir): New variable.
(AM_CPPFLAGS): Use it.
(pkglibexec_PROGRAMS): Set this instead of noinst_PROGRAMS with stpd.
(pkglibexec_SCRIPTS, CLEANFILES): New variables.
(install-exec-local): Target removed.
* runtest.sh: Set LD_LIBRARY_PATH when lib-elfutils is in use.

18 years ago.
roland [Mon, 12 Dec 2005 05:35:05 +0000 (05:35 +0000)]
.

18 years ago2005-12-11 Roland McGrath <roland@redhat.com>
roland [Mon, 12 Dec 2005 05:34:57 +0000 (05:34 +0000)]
2005-12-11  Roland McGrath  <roland@redhat.com>

* loc2c-test.c (get_location): Fix function name in error message.

18 years ago2005-12-09 Graydon Hoare <graydon@redhat.com>
graydon [Sat, 10 Dec 2005 05:50:18 +0000 (05:50 +0000)]
2005-12-09  Graydon Hoare  <graydon@redhat.com>

* elaborate.cxx (alias_expansion_builder::build): Fix comment typo.
* tapsets.cxx (symbol_cache): New class.
(dwflpp::cache): Add cache.
(dwflpp::pattern_limited_cus): New member.
(dwflpp::pattern_limited_funcs): New member.
(dwflpp::limit_search_to_function_pattern): New method.
(dwflpp::iterate_over_cus): Modify to use cached, limited sets.
(dwflpp::iterate_over_functions): Likewise.
(dwarf_builder::user_dw): New member.
(dwarf_builder::kern_dw): New member.
(dwarf_builder::~dwarf_builder): Add dtor.
(query_module): Call dwflpp::limit_search_to_function_pattern.
(dwarf_builder::build): Initialize persistent dwflpp members on demand.

18 years ago2005-12-08 Graydon Hoare <graydon@redhat.com>
graydon [Fri, 9 Dec 2005 02:20:41 +0000 (02:20 +0000)]
2005-12-08  Graydon Hoare  <graydon@redhat.com>

* translate.cxx (delete_statement_operand_visitor::visit_arrayindex):
Prohibit deleting histogram buckets.
(c_tmpcounter::visit_array_in): Direct to visit_arrayindex.
(c_unparser::visit_array_in): Likewise.

* testsuite/buildok/histogram_operator_in.stp: New test.

18 years ago2005-12-08 Frank Ch. Eigler <fche@elastic.org>
fche [Thu, 8 Dec 2005 23:49:23 +0000 (23:49 +0000)]
2005-12-08  Frank Ch. Eigler  <fche@elastic.org>

PR 1937
* buildrun.cxx (run_pass): Pass new "-d PID" option to stpd.
Set SIGHUP to SIG_IGN too.

2005-12-08  Frank Ch. Eigler  <fche@elastic.org>

PR 1937
* stpd.c (main): Support new "-d" option.
(usage): Document it.
* librelay.c (driver_poll): New function to react to death of
driver process.
(stp_main_loop): Call it if "-d PID" given.  Treat SIGHUP like others.

18 years ago2005-12-08 Martin Hunt <hunt@redhat.com>
hunt [Thu, 8 Dec 2005 18:57:45 +0000 (18:57 +0000)]
2005-12-08  Martin Hunt  <hunt@redhat.com>

* map.c (_new_map_create): Only increment map size if a node
was moved off the free list.
(_stp_map_size): New function.
(_stp_pmap_size): New function.

18 years ago2005-12-08 Martin Hunt <hunt@redhat.com>
hunt [Thu, 8 Dec 2005 18:55:45 +0000 (18:55 +0000)]
2005-12-08  Martin Hunt  <hunt@redhat.com>

* maps/map.test: Add size test.
* pmaps/pmap.test: Add size test.

18 years ago2005-12-07 Graydon Hoare <graydon@redhat.com>
graydon [Thu, 8 Dec 2005 02:33:55 +0000 (02:33 +0000)]
2005-12-07  Graydon Hoare  <graydon@redhat.com>

* staptree.cxx (traversing_visitor::visit_foreach_loop): Visit
the base indexable of the foreach loop.

* translate.cxx (c_tmpcounter::visit_foreach_loop): Implement
histogram bucket iteration arm.
(c_unparser::visit_foreach_loop): Likewise.
(c_tmpcounter::visit_arrayindex): Fix typo.

* testsuite/buildok/iterate_histogram_buckets.stp: New test.

18 years ago* system_calls.stp
kevinrs [Wed, 7 Dec 2005 22:35:10 +0000 (22:35 +0000)]
* system_calls.stp
* trivial mispelling corrected

18 years ago2005-12-07 Martin Hunt <hunt@redhat.com>
hunt [Wed, 7 Dec 2005 20:14:56 +0000 (20:14 +0000)]
2005-12-07  Martin Hunt  <hunt@redhat.com>

* translate.cxx (mapvar::fini): Use _stp_pmap_del() on pmaps.
(emit_global): For pmaps, use "PMAP" instead of "MAP".

18 years ago2005-12-07 Martin Hunt <hunt@redhat.com>
hunt [Wed, 7 Dec 2005 20:08:19 +0000 (20:08 +0000)]
2005-12-07  Martin Hunt  <hunt@redhat.com>

* agg/agg.test: Adjust results to match
the more compact histogram format.

18 years ago2005-12-07 Martin Hunt <hunt@redhat.com>
hunt [Wed, 7 Dec 2005 20:05:59 +0000 (20:05 +0000)]
2005-12-07  Martin Hunt  <hunt@redhat.com>

* alloc.c: Remove all unused functions.
* io.c: Add vprintf() prototype.

18 years ago2005-12-07 Martin Hunt <hunt@redhat.com>
hunt [Wed, 7 Dec 2005 20:02:04 +0000 (20:02 +0000)]
2005-12-07  Martin Hunt  <hunt@redhat.com>
 PR1923
* map.h (struct map_root): Remove membuf.
(struct pmap): Define.
(PMAP): Declare.

* map.c (_stp_map_init): Use kmalloc() to allocate individual
nodes instead of using vmalloc() to allocate one big chunk.
(_stp_map_new): Use kmalloc.
(_stp_pmap_new): Use kmalloc. Return a PMAP.
(__stp_map_del): New function. Free all the nodes in a map.
(_stp_map_del): Call __stp_map_del() then free map struct.
(_stp_pmap_del): Takes a PMAP. Calls __stp_map_del() for
each cpu.
(_stp_pmap_printn_cpu): Change arg to PMAP.
(_stp_pmap_agg): Change arg to PMAP.
(_stp_pmap_get_agg): Change arg to PMAP.

* map-stat.c (_stp_pmap_new_hstat_linear): Use PMAP
instead of MAP. Fix allocations.
(_stp_pmap_new_hstat_log): Ditto.

* pmap-gen.c Fix all functions to take or return PMAPS
instead of MAPS.

* alloc.c: Remove everything except kmalloc_node().
All runtime code now uses kmalloc() directly.

18 years ago2005-12-07 Martin Hunt <hunt@redhat.com>
hunt [Wed, 7 Dec 2005 19:42:44 +0000 (19:42 +0000)]
2005-12-07  Martin Hunt  <hunt@redhat.com>
* pmaps/*.c: Change pmap type from MAP to PMAP.

* pmaps/pmap.test: Adjust results to match
the more compact histogram format.

* maps/map.test: Adjust results to match
the more compact histogram format.

18 years ago* system_calls.stp:
kevinrs [Wed, 7 Dec 2005 18:15:49 +0000 (18:15 +0000)]
* system_calls.stp:
* alphabatized for easier navigation
* removed comments from reference to void pointer args
* removed reference to some unsafe copy_from_user funcs
* added final aliases for i386

* aux_syscalls.stp
* commented out embedded C functions that made use of
  copy_from_user(), a function that might sleep and that
  was causing Oops on my machine when sleep was called
  from invalid context.

18 years ago2005-12-06 Frank Ch. Eigler <fche@elastic.org>
fche [Wed, 7 Dec 2005 03:25:08 +0000 (03:25 +0000)]
2005-12-06  Frank Ch. Eigler  <fche@elastic.org>

PR 1934.
* tapsets.cxx (resolve_prologue_endings2): Add new heuristic for
tail-call optimized functions.
(query_func_info): Make somewhat less verbose.

18 years ago2005-12-06 Graydon Hoare <graydon@redhat.com>
graydon [Wed, 7 Dec 2005 01:47:31 +0000 (01:47 +0000)]
2005-12-06  Graydon Hoare  <graydon@redhat.com>

* translate.cxx (visit_print_format): Explicitly Cast int64_t
(pe_long) args to (long long) in generated code, for portability.

18 years ago2005-12-05 Frank Ch. Eigler <fche@elastic.org>
fche [Mon, 5 Dec 2005 20:04:36 +0000 (20:04 +0000)]
2005-12-05  Frank Ch. Eigler  <fche@elastic.org>

* *.cxx: Add <cassert> #include as needed.

18 years ago2005-12-02 Graydon Hoare <graydon@redhat.com>
graydon [Fri, 2 Dec 2005 23:28:03 +0000 (23:28 +0000)]
2005-12-02  Graydon Hoare  <graydon@redhat.com>

* elaborate.cxx (mutated_var_collector): Forward
traversal portion of calls to base class.
(mutated_var_collector::visit_arrayindex): Resolve
arrayindex-into-histogram expression as pe_long.
(typeresolution_info::visit_print_format): Traverse
into histogram if present.

* parse.cxx (parse_symbol): Handle parse ambiguity surrounding
print(@hist_op(...)[...]).

* staptree.cxx (traversing_visitor::visit_arrayindex): Visit
base member of arrayindex.

* translate.cxx (c_unparser::histogram_index_check): New method.
(var::hist): Fix bug.
(var::buckets): New method.
(stmt_expr::stmt_expr): Print with newline.
(c_unparser::load_map_indices): Handle indexing-histogram case.
(c_tmpcounter::visit_arrayindex): Likewise.
(c_unparser::visit_arrayindex): Likewise.
(c_tmpcounter_assignment::visit_arrayindex): Throw error when
user attempts to write to histogram bucket.
(c_unparser_assignment::visit_arrayindex): Likewise.

* testsuite/buildok/print_histogram_entry.stp: New test.

18 years agotypo release-0.5
fche [Fri, 2 Dec 2005 19:44:52 +0000 (19:44 +0000)]
typo

18 years agotypo
fche [Fri, 2 Dec 2005 19:43:03 +0000 (19:43 +0000)]
typo

18 years ago* add %changelog clause
fche [Fri, 2 Dec 2005 19:41:59 +0000 (19:41 +0000)]
* add %changelog clause

18 years ago2005-12-02 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 2 Dec 2005 19:34:36 +0000 (19:34 +0000)]
2005-12-02  Frank Ch. Eigler  <fche@elastic.org>

* configure.ac: Bump version number.
* stap.1.in: Document some of the new print/stats stuff.
* configure: Regenerated.
* systemtap.spec.in: Enable ia64 and ppc builds.

This page took 0.070843 seconds and 5 git commands to generate.