failing java instrumentation poc minimally based on research from https://github.com/saqib-ahmed/javab-agent
bfu ffffd9633c | ||
---|---|---|
scripts | ||
src | ||
.gitignore | ||
Makefile | ||
README.md | ||
checkstyle.xml | ||
pom.xml |
libminstr
m(ock)-instrumentation
Concept for creating a Java agent without attaching as an agent, or specifying in the manifest.
Originally (this is seen in the commit history), this was attempted
to be linked with libinstrument
. However, that was dumb, and
worked on only one machine. Turns out, we can create instrumentation
without that library, and quite easily, using JNI.
Caveats
I wrote this code and I think I gave it too much privileges, primarily for the hell of it.
Building
$ mvn clean install
Requirements
- maven
- make
- clang++