1 #ifndef __JVMTI_AGENT_H__ 2 #define __JVMTI_AGENT_H__ 3 4 #include <sys/types.h> 5 #include <stdint.h> 6 #include <jvmti.h> 7 8 #define __unused __attribute__((unused)) 9 10 #if defined(__cplusplus) 11 extern "C" { 12 #endif 13 14 void *jvmti_open(void); 15 int jvmti_close(void *agent); 16 int jvmti_write_code(void *agent, char const *symbol_name, 17 uint64_t vma, void const *code, 18 const unsigned int code_size); 19 int jvmti_write_debug_info(void *agent, 20 uint64_t code, 21 const char *file, 22 jvmtiAddrLocationMap const *map, 23 jvmtiLineNumberEntry *tab, jint nr); 24 25 #if defined(__cplusplus) 26 } 27 28 #endif 29 #endif /* __JVMTI_H__ */ 30