]> sourceware.org Git - systemtap.git/commit
systemtap java support reorganization release-2.2
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 13 May 2013 21:16:42 +0000 (17:16 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 14 May 2013 15:52:33 +0000 (11:52 -0400)
commitd885563b32b309faff59eac221023e1eada50b31
tree7969b209d4869bfe730544ac2b82d5f5b28d8232
parent7f04d24970600272eae1d8880289c87f8bca6718
systemtap java support reorganization

* systemtap.spec: require byteman > 2.0 for java support
* configure.ac: Make java/stapbm a AC_CONFIG_FILE.

* java/HelperSDT.c: Reorganize sys/sdt.h ABI usage: make the rule-name
  magic string the last argument, don't pass class/method strings.
  Stop mis-using "provider" name.
* java/HelperSDT.h: Regenerated.
* java/Makefile.am: Spell out more dependencies.
* java/stapbm: Thoroughly reorganized to use rulename as run-time unique-id,
  byteman port-number selection to enable concurrency, fewer lockfiles.
* tapset-method.cxx: Use consistent exceptions for error handling.  Switch
  to rulename-based identification.  Rework synthetic probe generation.
  Register java.* probes only if HAVE_JAVA.
* session.cxx, session.h, man/stap.1: Drop -J / -j options.
* testsuite/systemtap.apps/java*: Rely on pn() for class/method names.

Another related hunk extends the derivation chain to plain struct
probe, to avoid having to (mis)use alias-type derived probes.  The
script-location (function tapset::pn) calculation is made based on
a textual analysis of the derivation_pp_chain.

* staptree.h (struct probe): Add a base* field for use by synthetically
  created probes.  Update copy-ish constructor to use this form.  Update
  most callers (former users of probe::create_alias) in tapsets.cxx and
  tapset-method.cxx.  Make collect_derivation_*_chain const functions.
* staptree.cxx (probe::basest, almost_basest, ...): Create/update
  accordingly.
* elaborate.cxx (script_location): Rework a as more faithful heuristic.
  It should make it possible to get rid of the *basest* type calls soon.
26 files changed:
NEWS
configure
configure.ac
elaborate.cxx
elaborate.h
java/HelperSDT.c
java/HelperSDT.h
java/HelperSDT.java
java/Makefile.am
java/Makefile.in
java/TODO
java/stapbm [deleted file]
java/stapbm.in [new file with mode: 0755]
man/stap.1
man/stapprobes.3stap
session.cxx
session.h
staptree.cxx
staptree.h
systemtap.spec
tapset-method.cxx
tapsets.cxx
testsuite/systemtap.apps/java.exp
testsuite/systemtap.apps/java.stp
testsuite/systemtap.apps/multiparams.stp
testsuite/systemtap.apps/returnstatement.stp
This page took 0.032675 seconds and 5 git commands to generate.