100 int nsk_jvmti_addBreakpointCapabilities();
101
102 jlocation nsk_jvmti_getLineLocation(jclass cls, jmethodID method, int line);
103 jlocation nsk_jvmti_setLineBreakpoint(jclass cls, jmethodID method, int line);
104 jlocation nsk_jvmti_clearLineBreakpoint(jclass cls, jmethodID method, int line);
105
106 - find classes and threads
107
108 jclass nsk_jvmti_classBySignature(const char signature[]);
109 jthread nsk_jvmti_threadByName(const char name[]);
110
111 - events management
112
113 int nsk_jvmti_isOptionalEvent(jvmtiEvent event);
114 int nsk_jvmti_enableEvents(jvmtiEventMode enable, int size,
115 jvmtiEvent list[], jthread thread);
116 void nsk_jvmti_showPossessedCapabilities(jvmtiEnv *jvmti);
117
118 ---------------------------------------------------------------------------------
119
120 Typical example of usage of NSK_JVMTI_VERIFY and NSK_CPP_STUB macroses
121 for invocation of JVMTI functions:
122
123 // jvmti->GetVersion(jvmti, &version)
124 if (!NSK_JVMTI_VERIFY(
125 NSK_CPP_STUB2(GetVersion, jvmti, &version) != NULL)) {
126 return JNI_ERR;
127 }
128
129 or with saving error code:
130
131 // err = jvmti->GetVersion(jvmti, &version)
132 if (!NSK_JVMTI_VERIFY(err =
133 NSK_CPP_STUB2(GetVersion, jvmti, &version))) {
134 return err;
135 }
136 functions: nsk_jvmti_*
137
138 ---------------------------------------------------------------------------------
139
140 JVMTITools.h
141
142 Provides set of functions which convert JVMTI binary data to
143 a null-terminated character string:
144
145
146 const char* TranslateEvent(jvmtiEvent event_type);
147 const char* TranslateState(jint flags);
148 const char* TranslateError(jvmtiError err);
149 const char* TranslatePhase(jvmtiPhase phase);
150 const char* TranslateRootKind(jvmtiHeapRootKind root);
151 const char* TranslateObjectRefKind(jvmtiObjectReferenceKind ref);
152
153 ---------------------------------------------------------------------------------
|
100 int nsk_jvmti_addBreakpointCapabilities();
101
102 jlocation nsk_jvmti_getLineLocation(jclass cls, jmethodID method, int line);
103 jlocation nsk_jvmti_setLineBreakpoint(jclass cls, jmethodID method, int line);
104 jlocation nsk_jvmti_clearLineBreakpoint(jclass cls, jmethodID method, int line);
105
106 - find classes and threads
107
108 jclass nsk_jvmti_classBySignature(const char signature[]);
109 jthread nsk_jvmti_threadByName(const char name[]);
110
111 - events management
112
113 int nsk_jvmti_isOptionalEvent(jvmtiEvent event);
114 int nsk_jvmti_enableEvents(jvmtiEventMode enable, int size,
115 jvmtiEvent list[], jthread thread);
116 void nsk_jvmti_showPossessedCapabilities(jvmtiEnv *jvmti);
117
118 ---------------------------------------------------------------------------------
119
120 Typical example of usage of the NSK_JVMTI_VERIFY macro
121 for invocation of JVMTI functions:
122
123 // jvmti->GetVersion(jvmti, &version)
124 if (!NSK_JVMTI_VERIFY(jvmti->GetVersion(&version) != NULL)) {
125 return JNI_ERR;
126 }
127
128 or with saving error code:
129
130 // err = jvmti->GetVersion(jvmti, &version)
131 if (!NSK_JVMTI_VERIFY(err = jvmti->GetVersion(&version))) {
132 return err;
133 }
134 functions: nsk_jvmti_*
135
136 ---------------------------------------------------------------------------------
137
138 JVMTITools.h
139
140 Provides set of functions which convert JVMTI binary data to
141 a null-terminated character string:
142
143
144 const char* TranslateEvent(jvmtiEvent event_type);
145 const char* TranslateState(jint flags);
146 const char* TranslateError(jvmtiError err);
147 const char* TranslatePhase(jvmtiPhase phase);
148 const char* TranslateRootKind(jvmtiHeapRootKind root);
149 const char* TranslateObjectRefKind(jvmtiObjectReferenceKind ref);
150
151 ---------------------------------------------------------------------------------
|