]> sourceware.org Git - systemtap.git/commit
PR21020: reorganize data passing abi for java method parameters
authorFrank Ch. Eigler <fche@redhat.com>
Fri, 6 Jan 2017 22:37:37 +0000 (17:37 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Fri, 6 Jan 2017 22:42:38 +0000 (17:42 -0500)
commitf8bc2a5eb3e91ce7d8d8af404b1f9890d6e2dac6
tree79ed07ca504825444e98043621ce9ba6b30aa27b
parent24dfd3809ff461e48085955f37d7f3363a971e54
PR21020: reorganize data passing abi for java method parameters

Under a new ABI, all java object types are supported for passing to
java-method probes, by converting them all within the JVM to strings.
The systemtap script side now gets $argX being all utf-char-pointers,
which are loaded into script-side string variables with synthetic
user_string_warn() function calls.

A backward compatibility ABI is preserved in the java helper class
as well as the translator, under --compatible=3.0.

The java testsuite is drastically simplified (and execution time
shortened) to one class.  These now test string and object passing
too, with it and stapbm extended to be able to locate the HelperSDT
jar / .so files within the systemtap installation $prefix.  This way,
the system /usr/lib/jvm/.... path does not need to be populated just
for stap tests to run.  (We should sometime extend the tests to cover
all the argument arities, but eyeballing looks OK for now.)
12 files changed:
NEWS
java/HelperSDT.c
java/org/systemtap/byteman/helper/HelperSDT.java
java/stapbm.in
man/stapprobes.3stap
tapset-method.cxx
testsuite/systemtap.apps/java.exp
testsuite/systemtap.apps/java_backtrace.stp [deleted file]
testsuite/systemtap.apps/multiparams.java
testsuite/systemtap.apps/multiparams.stp
testsuite/systemtap.apps/singleparam.java [deleted file]
testsuite/systemtap.apps/singleparam.stp [deleted file]
This page took 0.028502 seconds and 5 git commands to generate.