| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is provided under a dual BSD/GPLv2 license. When using or | 2 This file is provided under a dual BSD/GPLv2 license. When using or |
| 3 redistributing this file, you may do so under either license. | 3 redistributing this file, you may do so under either license. |
| 4 | 4 |
| 5 GPL LICENSE SUMMARY | 5 GPL LICENSE SUMMARY |
| 6 | 6 |
| 7 Copyright (c) 2005-2012 Intel Corporation. All rights reserved. | 7 Copyright (c) 2005-2012 Intel Corporation. All rights reserved. |
| 8 | 8 |
| 9 This program is free software; you can redistribute it and/or modify | 9 This program is free software; you can redistribute it and/or modify |
| 10 it under the terms of version 2 of the GNU General Public License as | 10 it under the terms of version 2 of the GNU General Public License as |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 /* method name (just the method, without the class) */ | 196 /* method name (just the method, without the class) */ |
| 197 char* method_name; | 197 char* method_name; |
| 198 } *piJIT_Method_NIDS, iJIT_Method_NIDS; | 198 } *piJIT_Method_NIDS, iJIT_Method_NIDS; |
| 199 | 199 |
| 200 /* structures for the events: | 200 /* structures for the events: |
| 201 * iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED | 201 * iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED |
| 202 */ | 202 */ |
| 203 | 203 |
| 204 typedef struct _LineNumberInfo | 204 typedef struct _LineNumberInfo |
| 205 { | 205 { |
| 206 /* x86 Offset from the begining of the method*/ | 206 /* x86 Offset from the beginning of the method*/ |
| 207 unsigned int Offset; | 207 unsigned int Offset; |
| 208 | 208 |
| 209 /* source line number from the begining of the source file */ | 209 /* source line number from the beginning of the source file */ |
| 210 unsigned int LineNumber; | 210 unsigned int LineNumber; |
| 211 | 211 |
| 212 } *pLineNumberInfo, LineNumberInfo; | 212 } *pLineNumberInfo, LineNumberInfo; |
| 213 | 213 |
| 214 typedef struct _iJIT_Method_Load | 214 typedef struct _iJIT_Method_Load |
| 215 { | 215 { |
| 216 /* unique method ID - can be any unique value, (except 0 - 999) */ | 216 /* unique method ID - can be any unique value, (except 0 - 999) */ |
| 217 unsigned int method_id; | 217 unsigned int method_id; |
| 218 | 218 |
| 219 /* method name (can be with or without the class and signature, in any case | 219 /* method name (can be with or without the class and signature, in any case |
| 220 * the class name will be added to it) | 220 * the class name will be added to it) |
| 221 */ | 221 */ |
| 222 char* method_name; | 222 char* method_name; |
| 223 | 223 |
| 224 /* virtual address of that method - This determines the method range for the | 224 /* virtual address of that method - This determines the method range for the |
| 225 * iJVM_EVENT_TYPE_ENTER/LEAVE_METHOD_ADDR events | 225 * iJVM_EVENT_TYPE_ENTER/LEAVE_METHOD_ADDR events |
| 226 */ | 226 */ |
| 227 void* method_load_address; | 227 void* method_load_address; |
| 228 | 228 |
| 229 /* Size in memory - Must be exact */ | 229 /* Size in memory - Must be exact */ |
| 230 unsigned int method_size; | 230 unsigned int method_size; |
| 231 | 231 |
| 232 /* Line Table size in number of entries - Zero if none */ | 232 /* Line Table size in number of entries - Zero if none */ |
| 233 unsigned int line_number_size; | 233 unsigned int line_number_size; |
| 234 | 234 |
| 235 /* Pointer to the begining of the line numbers info array */ | 235 /* Pointer to the beginning of the line numbers info array */ |
| 236 pLineNumberInfo line_number_table; | 236 pLineNumberInfo line_number_table; |
| 237 | 237 |
| 238 /* unique class ID */ | 238 /* unique class ID */ |
| 239 unsigned int class_id; | 239 unsigned int class_id; |
| 240 | 240 |
| 241 /* class file name */ | 241 /* class file name */ |
| 242 char* class_file_name; | 242 char* class_file_name; |
| 243 | 243 |
| 244 /* source file name */ | 244 /* source file name */ |
| 245 char* source_file_name; | 245 char* source_file_name; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 289 |
| 290 void JITAPI FinalizeProcess(void); | 290 void JITAPI FinalizeProcess(void); |
| 291 | 291 |
| 292 unsigned int JITAPI iJIT_GetNewMethodID(void); | 292 unsigned int JITAPI iJIT_GetNewMethodID(void); |
| 293 | 293 |
| 294 #ifdef __cplusplus | 294 #ifdef __cplusplus |
| 295 } | 295 } |
| 296 #endif | 296 #endif |
| 297 | 297 |
| 298 #endif /* __JITPROFILING_H__ */ | 298 #endif /* __JITPROFILING_H__ */ |
| OLD | NEW |