Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add tracing of native methods #115

Closed
eGit opened this issue Mar 10, 2015 · 6 comments
Closed

Feature Request: Add tracing of native methods #115

eGit opened this issue Mar 10, 2015 · 6 comments

Comments

@eGit
Copy link

eGit commented Mar 10, 2015

Add tracing of native methods to BTrace.

@jbachorik
Copy link
Collaborator

eGit, this feature seems to be breaking class retransformation when trying to trace non-static native methods. Do you think it would be interesting to be able to trace at least static native methods?

Otherwise I will have to remove this feature.

@jbachorik
Copy link
Collaborator

Reopening because of #140

@jbachorik jbachorik reopened this Jul 10, 2015
@jbachorik jbachorik removed this from the 1.3.1 milestone Jul 11, 2015
@eGit
Copy link
Author

eGit commented Aug 26, 2015

I just wanted to test the native method tracing for the first time but now it is gone again?

@jbachorik
Copy link
Collaborator

It is not possible to achieve this functionality with the current
limitations of the JVM class retransformation. One may need to introduce
new public non-native methods as wrappers for the original public native
methods and this is simply not possible. So I had to take it out again.
Maybe once, when JVM gets an improved class retransformation engine.

On Wed, Aug 26, 2015 at 3:32 PM, eGit notifications@github.com wrote:

I just wanted to test the native method tracing for the first time but now
it is gone again?


Reply to this email directly or view it on GitHub
#115 (comment).

@jbachorik
Copy link
Collaborator

With the current state of JVM retransform classes support it is not possible to implement this consistently - for the javaagent mode it will mostly work and for dynamic attach it will mostly not work. But it is not possible to provide any guarantees about which classes will be intercepted - it depends on whether they have already been loaded at the time BTrace is starting or not.

@github-actions
Copy link

Stale issue message

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants