]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/jvmti/jvmti_agent.h
perf jit: add source line info support
[karo-tx-linux.git] / tools / perf / jvmti / jvmti_agent.h
index 8251a1c5ee3fee7bc43d7b80c05e1e046b98248b..bedf5d0ba9ff928ec79f450a170328775a48d37d 100644 (file)
 extern "C" {
 #endif
 
+typedef struct {
+       unsigned long   pc;
+       int             line_number;
+       int             discrim; /* discriminator -- 0 for now */
+} jvmti_line_info_t;
+
 void *jvmti_open(void);
 int   jvmti_close(void *agent);
 int   jvmti_write_code(void *agent, char const *symbol_name,
                       uint64_t vma, void const *code,
                       const unsigned int code_size);
+
 int   jvmti_write_debug_info(void *agent,
                             uint64_t code,
                             const char *file,
-                            jvmtiAddrLocationMap const *map,
-                            jvmtiLineNumberEntry *tab, jint nr);
+                            jvmti_line_info_t *li,
+                            int nr_lines);
 
 #if defined(__cplusplus)
 }