1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
/* automatically generated by rust-bindgen 0.59.2 */

#[doc = "<\\brief Send this to shutdown the agent."]
#[doc = " Use NULL for event data."]
pub const iJIT_jvm_event_iJVM_EVENT_TYPE_SHUTDOWN: iJIT_jvm_event = 2;
#[doc = "<\\brief Send when dynamic code is"]
#[doc = " JIT compiled and loaded into"]
#[doc = " memory by the JIT engine, but"]
#[doc = " before the code is executed."]
#[doc = " Use iJIT_Method_Load as event"]
#[doc = " data."]
pub const iJIT_jvm_event_iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED: iJIT_jvm_event = 13;
#[doc = "<\\brief Send when compiled dynamic"]
#[doc = " code is being unloaded from memory."]
#[doc = " Use iJIT_Method_Load as event data."]
pub const iJIT_jvm_event_iJVM_EVENT_TYPE_METHOD_UNLOAD_START: iJIT_jvm_event = 14;
#[doc = "<\\brief Send to provide new content for"]
#[doc = " a previously reported dynamic code."]
#[doc = " The previous content will be invalidated"]
#[doc = " starting from the time of the notification."]
#[doc = " Use iJIT_Method_Load as event data but"]
#[doc = " required fields are following:"]
#[doc = " - method_id    identify the code to update."]
#[doc = " - method_load_address    specify start address"]
#[doc = "                          within identified code range"]
#[doc = "                          where update should be started."]
#[doc = " - method_size            specify length of updated code"]
#[doc = "                          range."]
pub const iJIT_jvm_event_iJVM_EVENT_TYPE_METHOD_UPDATE: iJIT_jvm_event = 15;
#[doc = "<\\brief Send when an inline dynamic"]
#[doc = " code is JIT compiled and loaded"]
#[doc = " into memory by the JIT engine,"]
#[doc = " but before the parent code region"]
#[doc = " starts executing."]
#[doc = " Use iJIT_Method_Inline_Load as event data."]
pub const iJIT_jvm_event_iJVM_EVENT_TYPE_METHOD_INLINE_LOAD_FINISHED: iJIT_jvm_event = 16;
#[doc = " @cond exclude_from_documentation"]
pub const iJIT_jvm_event_iJVM_EVENT_TYPE_METHOD_UPDATE_V2: iJIT_jvm_event = 17;
#[doc = "<\\brief Send when a dynamic code is"]
#[doc = " JIT compiled and loaded into"]
#[doc = " memory by the JIT engine, but"]
#[doc = " before the code is executed."]
#[doc = " Use iJIT_Method_Load_V2 as event data."]
pub const iJIT_jvm_event_iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED_V2: iJIT_jvm_event = 21;
#[doc = "<\\brief Send when a dynamic code is"]
#[doc = " JIT compiled and loaded into"]
#[doc = " memory by the JIT engine, but"]
#[doc = " before the code is executed."]
#[doc = " Use iJIT_Method_Load_V3 as event data."]
pub const iJIT_jvm_event_iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED_V3: iJIT_jvm_event = 22;
#[doc = " @brief Enumerator for the types of notifications"]
pub type iJIT_jvm_event = ::std::os::raw::c_uint;
#[doc = " @brief Enumerator for the types of notifications"]
pub use self::iJIT_jvm_event as iJIT_JVM_EVENT;
#[doc = "<\\brief The agent is not running;"]
#[doc = " iJIT_NotifyEvent calls will"]
#[doc = " not be processed."]
pub const _iJIT_IsProfilingActiveFlags_iJIT_NOTHING_RUNNING: _iJIT_IsProfilingActiveFlags = 0;
#[doc = "<\\brief The agent is running and"]
#[doc = " ready to process notifications."]
pub const _iJIT_IsProfilingActiveFlags_iJIT_SAMPLING_ON: _iJIT_IsProfilingActiveFlags = 1;
#[doc = " @brief Enumerator for the agent's mode"]
pub type _iJIT_IsProfilingActiveFlags = ::std::os::raw::c_uint;
#[doc = " @brief Enumerator for the agent's mode"]
pub use self::_iJIT_IsProfilingActiveFlags as iJIT_IsProfilingActiveFlags;
#[doc = " @brief Description of a single entry in the line number information of a code region."]
#[doc = " @details A table of line number entries gives information about how the reported code region"]
#[doc = " is mapped to source file."]
#[doc = " Intel(R) VTune(TM) Amplifier uses line number information to attribute"]
#[doc = " the samples (virtual address) to a line number. \\n"]
#[doc = " It is acceptable to report different code addresses for the same source line:"]
#[doc = " @code"]
#[doc = "   Offset LineNumber"]
#[doc = "      1       2"]
#[doc = "      12      4"]
#[doc = "      15      2"]
#[doc = "      18      1"]
#[doc = "      21      30"]
#[doc = ""]
#[doc = "  VTune Amplifier constructs the following table using the client data"]
#[doc = ""]
#[doc = "   Code subrange  Line number"]
#[doc = "      0-1             2"]
#[doc = "      1-12            4"]
#[doc = "      12-15           2"]
#[doc = "      15-18           1"]
#[doc = "      18-21           30"]
#[doc = " @endcode"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _LineNumberInfo {
    #[doc = "<\\brief Offset from the begining of the code region."]
    pub Offset: ::std::os::raw::c_uint,
    #[doc = "<\\brief Matching source line number offset (from beginning of source file)."]
    pub LineNumber: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout__LineNumberInfo() {
    assert_eq!(
        ::std::mem::size_of::<_LineNumberInfo>(),
        8usize,
        concat!("Size of: ", stringify!(_LineNumberInfo))
    );
    assert_eq!(
        ::std::mem::align_of::<_LineNumberInfo>(),
        4usize,
        concat!("Alignment of ", stringify!(_LineNumberInfo))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_LineNumberInfo>())).Offset as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_LineNumberInfo),
            "::",
            stringify!(Offset)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_LineNumberInfo>())).LineNumber as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(_LineNumberInfo),
            "::",
            stringify!(LineNumber)
        )
    );
}
#[doc = " @brief Description of a single entry in the line number information of a code region."]
#[doc = " @details A table of line number entries gives information about how the reported code region"]
#[doc = " is mapped to source file."]
#[doc = " Intel(R) VTune(TM) Amplifier uses line number information to attribute"]
#[doc = " the samples (virtual address) to a line number. \\n"]
#[doc = " It is acceptable to report different code addresses for the same source line:"]
#[doc = " @code"]
#[doc = "   Offset LineNumber"]
#[doc = "      1       2"]
#[doc = "      12      4"]
#[doc = "      15      2"]
#[doc = "      18      1"]
#[doc = "      21      30"]
#[doc = ""]
#[doc = "  VTune Amplifier constructs the following table using the client data"]
#[doc = ""]
#[doc = "   Code subrange  Line number"]
#[doc = "      0-1             2"]
#[doc = "      1-12            4"]
#[doc = "      12-15           2"]
#[doc = "      15-18           1"]
#[doc = "      18-21           30"]
#[doc = " @endcode"]
pub type pLineNumberInfo = *mut _LineNumberInfo;
#[doc = " @brief Description of a single entry in the line number information of a code region."]
#[doc = " @details A table of line number entries gives information about how the reported code region"]
#[doc = " is mapped to source file."]
#[doc = " Intel(R) VTune(TM) Amplifier uses line number information to attribute"]
#[doc = " the samples (virtual address) to a line number. \\n"]
#[doc = " It is acceptable to report different code addresses for the same source line:"]
#[doc = " @code"]
#[doc = "   Offset LineNumber"]
#[doc = "      1       2"]
#[doc = "      12      4"]
#[doc = "      15      2"]
#[doc = "      18      1"]
#[doc = "      21      30"]
#[doc = ""]
#[doc = "  VTune Amplifier constructs the following table using the client data"]
#[doc = ""]
#[doc = "   Code subrange  Line number"]
#[doc = "      0-1             2"]
#[doc = "      1-12            4"]
#[doc = "      12-15           2"]
#[doc = "      15-18           1"]
#[doc = "      18-21           30"]
#[doc = " @endcode"]
pub type LineNumberInfo = _LineNumberInfo;
#[doc = "<\\brief Native to the process architecture that is calling it."]
pub const _iJIT_CodeArchitecture_iJIT_CA_NATIVE: _iJIT_CodeArchitecture = 0;
#[doc = "<\\brief 32-bit machine code."]
pub const _iJIT_CodeArchitecture_iJIT_CA_32: _iJIT_CodeArchitecture = 1;
#[doc = "<\\brief 64-bit machine code."]
pub const _iJIT_CodeArchitecture_iJIT_CA_64: _iJIT_CodeArchitecture = 2;
#[doc = " @brief Enumerator for the code architecture."]
pub type _iJIT_CodeArchitecture = ::std::os::raw::c_uint;
#[doc = " @brief Enumerator for the code architecture."]
pub use self::_iJIT_CodeArchitecture as iJIT_CodeArchitecture;
#[doc = " @brief Description of a JIT-compiled method"]
#[doc = " @details When you use the iJIT_Method_Load structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED"]
#[doc = "  as an event type to report it."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _iJIT_Method_Load {
    #[doc = "<\\brief Unique method ID. Cannot be 0."]
    #[doc = "  You must either use the API function"]
    #[doc = "  iJIT_GetNewMethodID to get a valid and unique"]
    #[doc = "  method ID, or else manage ID uniqueness"]
    #[doc = "  and correct range by yourself.\\n"]
    #[doc = "  You must use the same method ID for all code"]
    #[doc = "  regions of the same method, otherwise different"]
    #[doc = "  method IDs specify different methods."]
    pub method_id: ::std::os::raw::c_uint,
    #[doc = "<\\brief The name of the method. It can be optionally"]
    #[doc = "  prefixed with its class name and appended with"]
    #[doc = "  its complete signature. Can't be NULL."]
    pub method_name: *mut ::std::os::raw::c_char,
    #[doc = "<\\brief The start virtual address of the method code"]
    #[doc = "  region. If NULL, data provided with"]
    #[doc = "  event are not accepted."]
    pub method_load_address: *mut ::std::os::raw::c_void,
    #[doc = "<\\brief The code size of the method in memory."]
    #[doc = "  If 0, then data provided with the event are not"]
    #[doc = "  accepted."]
    pub method_size: ::std::os::raw::c_uint,
    #[doc = "<\\brief The number of entries in the line number"]
    #[doc = "  table.0 if none."]
    pub line_number_size: ::std::os::raw::c_uint,
    #[doc = "<\\brief Pointer to the line numbers info"]
    #[doc = "  array. Can be NULL if"]
    #[doc = "  line_number_size is 0. See"]
    #[doc = "  LineNumberInfo Structure for a"]
    #[doc = "  description of a single entry in"]
    #[doc = "  the line number info array"]
    pub line_number_table: pLineNumberInfo,
    #[doc = "<\\brief This field is obsolete."]
    pub class_id: ::std::os::raw::c_uint,
    #[doc = "<\\brief Class name. Can be NULL."]
    pub class_file_name: *mut ::std::os::raw::c_char,
    #[doc = "<\\brief Source file name. Can be NULL."]
    pub source_file_name: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__iJIT_Method_Load() {
    assert_eq!(
        ::std::mem::size_of::<_iJIT_Method_Load>(),
        64usize,
        concat!("Size of: ", stringify!(_iJIT_Method_Load))
    );
    assert_eq!(
        ::std::mem::align_of::<_iJIT_Method_Load>(),
        8usize,
        concat!("Alignment of ", stringify!(_iJIT_Method_Load))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_iJIT_Method_Load>())).method_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load),
            "::",
            stringify!(method_id)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_iJIT_Method_Load>())).method_name as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load),
            "::",
            stringify!(method_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load>())).method_load_address as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load),
            "::",
            stringify!(method_load_address)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_iJIT_Method_Load>())).method_size as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load),
            "::",
            stringify!(method_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load>())).line_number_size as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load),
            "::",
            stringify!(line_number_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load>())).line_number_table as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load),
            "::",
            stringify!(line_number_table)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_iJIT_Method_Load>())).class_id as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load),
            "::",
            stringify!(class_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load>())).class_file_name as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load),
            "::",
            stringify!(class_file_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load>())).source_file_name as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load),
            "::",
            stringify!(source_file_name)
        )
    );
}
#[doc = " @brief Description of a JIT-compiled method"]
#[doc = " @details When you use the iJIT_Method_Load structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED"]
#[doc = "  as an event type to report it."]
pub type piJIT_Method_Load = *mut _iJIT_Method_Load;
#[doc = " @brief Description of a JIT-compiled method"]
#[doc = " @details When you use the iJIT_Method_Load structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED"]
#[doc = "  as an event type to report it."]
pub type iJIT_Method_Load = _iJIT_Method_Load;
#[doc = " @brief Description of a JIT-compiled method"]
#[doc = " @details When you use the iJIT_Method_Load_V2 structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED_V2"]
#[doc = "  as an event type to report it."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _iJIT_Method_Load_V2 {
    #[doc = "<\\brief Unique method ID. Cannot be 0."]
    #[doc = "  You must either use the API function"]
    #[doc = "  iJIT_GetNewMethodID to get a valid and unique"]
    #[doc = "  method ID, or else manage ID uniqueness"]
    #[doc = "  and correct range by yourself.\\n"]
    #[doc = "  You must use the same method ID for all code"]
    #[doc = "  regions of the same method, otherwise different"]
    #[doc = "  method IDs specify different methods."]
    pub method_id: ::std::os::raw::c_uint,
    #[doc = "<\\brief The name of the method. It can be optionally"]
    #[doc = "  prefixed with its class name and appended with"]
    #[doc = "  its complete signature. Can't be  NULL."]
    pub method_name: *mut ::std::os::raw::c_char,
    #[doc = "<\\brief The start virtual address of the method code"]
    #[doc = "  region. If NULL, then data provided with the"]
    #[doc = "  event are not accepted."]
    pub method_load_address: *mut ::std::os::raw::c_void,
    #[doc = "<\\brief The code size of the method in memory."]
    #[doc = "  If 0, then data provided with the event are not"]
    #[doc = "  accepted."]
    pub method_size: ::std::os::raw::c_uint,
    #[doc = "<\\brief The number of entries in the line number"]
    #[doc = "  table. 0 if none."]
    pub line_number_size: ::std::os::raw::c_uint,
    #[doc = "<\\brief Pointer to the line numbers info"]
    #[doc = "  array. Can be NULL if"]
    #[doc = "  line_number_size is 0. See"]
    #[doc = "  LineNumberInfo Structure for a"]
    #[doc = "  description of a single entry in"]
    #[doc = "  the line number info array."]
    pub line_number_table: pLineNumberInfo,
    #[doc = "<\\brief Class name. Can be NULL."]
    pub class_file_name: *mut ::std::os::raw::c_char,
    #[doc = "<\\brief Source file name. Can be NULL."]
    pub source_file_name: *mut ::std::os::raw::c_char,
    #[doc = "<\\brief Module name. Can be NULL."]
    #[doc = "The module name can be useful for distinguishing among"]
    #[doc = "different JIT engines. VTune Amplifier will display"]
    #[doc = "reported methods grouped by specific module."]
    pub module_name: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__iJIT_Method_Load_V2() {
    assert_eq!(
        ::std::mem::size_of::<_iJIT_Method_Load_V2>(),
        64usize,
        concat!("Size of: ", stringify!(_iJIT_Method_Load_V2))
    );
    assert_eq!(
        ::std::mem::align_of::<_iJIT_Method_Load_V2>(),
        8usize,
        concat!("Alignment of ", stringify!(_iJIT_Method_Load_V2))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_iJIT_Method_Load_V2>())).method_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V2),
            "::",
            stringify!(method_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V2>())).method_name as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V2),
            "::",
            stringify!(method_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V2>())).method_load_address as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V2),
            "::",
            stringify!(method_load_address)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V2>())).method_size as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V2),
            "::",
            stringify!(method_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V2>())).line_number_size as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V2),
            "::",
            stringify!(line_number_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V2>())).line_number_table as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V2),
            "::",
            stringify!(line_number_table)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V2>())).class_file_name as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V2),
            "::",
            stringify!(class_file_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V2>())).source_file_name as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V2),
            "::",
            stringify!(source_file_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V2>())).module_name as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V2),
            "::",
            stringify!(module_name)
        )
    );
}
#[doc = " @brief Description of a JIT-compiled method"]
#[doc = " @details When you use the iJIT_Method_Load_V2 structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED_V2"]
#[doc = "  as an event type to report it."]
pub type piJIT_Method_Load_V2 = *mut _iJIT_Method_Load_V2;
#[doc = " @brief Description of a JIT-compiled method"]
#[doc = " @details When you use the iJIT_Method_Load_V2 structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED_V2"]
#[doc = "  as an event type to report it."]
pub type iJIT_Method_Load_V2 = _iJIT_Method_Load_V2;
#[doc = " @brief Description of a JIT-compiled method"]
#[doc = " @details The iJIT_Method_Load_V3 structure is the same as iJIT_Method_Load_V2"]
#[doc = "  with a newly introduced 'arch' field that specifies architecture of the code region."]
#[doc = "  When you use the iJIT_Method_Load_V3 structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED_V3"]
#[doc = "  as an event type to report it."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _iJIT_Method_Load_V3 {
    #[doc = "<\\brief Unique method ID. Cannot be 0."]
    #[doc = "  You must either use the API function"]
    #[doc = "  iJIT_GetNewMethodID to get a valid and unique"]
    #[doc = "  method ID, or manage ID uniqueness"]
    #[doc = "  and correct range by yourself.\\n"]
    #[doc = "  You must use the same method ID for all code"]
    #[doc = "  regions of the same method, otherwise they are"]
    #[doc = "  treated as regions of different methods."]
    pub method_id: ::std::os::raw::c_uint,
    #[doc = "<\\brief The name of the method. It can be optionally"]
    #[doc = "  prefixed with its class name and appended with"]
    #[doc = "  its complete signature. Cannot be  NULL."]
    pub method_name: *mut ::std::os::raw::c_char,
    #[doc = "<\\brief The start virtual address of the method code"]
    #[doc = "  region. If NULL, then data provided with the"]
    #[doc = "  event are not accepted."]
    pub method_load_address: *mut ::std::os::raw::c_void,
    #[doc = "<\\brief The code size of the method in memory."]
    #[doc = "  If 0, then data provided with the event are not"]
    #[doc = "  accepted."]
    pub method_size: ::std::os::raw::c_uint,
    #[doc = "<\\brief The number of entries in the line number"]
    #[doc = "  table. 0 if none."]
    pub line_number_size: ::std::os::raw::c_uint,
    #[doc = "<\\brief Pointer to the line numbers info"]
    #[doc = "  array. Can be NULL if"]
    #[doc = "  line_number_size is 0. See"]
    #[doc = "  LineNumberInfo Structure for a"]
    #[doc = "  description of a single entry in"]
    #[doc = "  the line number info array."]
    pub line_number_table: pLineNumberInfo,
    #[doc = "<\\brief Class name. Can be NULL."]
    pub class_file_name: *mut ::std::os::raw::c_char,
    #[doc = "<\\brief Source file name. Can be NULL."]
    pub source_file_name: *mut ::std::os::raw::c_char,
    #[doc = "<\\brief Module name. Can be NULL."]
    #[doc = "  The module name can be useful for distinguishing among"]
    #[doc = "  different JIT engines. VTune Amplifier will display"]
    #[doc = "  reported methods grouped by specific module."]
    pub module_name: *mut ::std::os::raw::c_char,
    #[doc = "<\\brief Architecture of the method's code region."]
    #[doc = "  By default, it is the same as the process"]
    #[doc = "  architecture that is calling it."]
    #[doc = "  For example, you can use it if your 32-bit JIT"]
    #[doc = "  engine generates 64-bit code."]
    #[doc = ""]
    #[doc = "  If JIT engine reports both 32-bit and 64-bit types"]
    #[doc = "  of methods then VTune Amplifier splits the methods"]
    #[doc = "  with the same module name but with different"]
    #[doc = "  architectures in two different modules. VTune Amplifier"]
    #[doc = "  modifies the original name provided with a 64-bit method"]
    #[doc = "  version by ending it with '(64)'"]
    pub module_arch: iJIT_CodeArchitecture,
}
#[test]
fn bindgen_test_layout__iJIT_Method_Load_V3() {
    assert_eq!(
        ::std::mem::size_of::<_iJIT_Method_Load_V3>(),
        72usize,
        concat!("Size of: ", stringify!(_iJIT_Method_Load_V3))
    );
    assert_eq!(
        ::std::mem::align_of::<_iJIT_Method_Load_V3>(),
        8usize,
        concat!("Alignment of ", stringify!(_iJIT_Method_Load_V3))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_iJIT_Method_Load_V3>())).method_id as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V3),
            "::",
            stringify!(method_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V3>())).method_name as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V3),
            "::",
            stringify!(method_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V3>())).method_load_address as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V3),
            "::",
            stringify!(method_load_address)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V3>())).method_size as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V3),
            "::",
            stringify!(method_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V3>())).line_number_size as *const _ as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V3),
            "::",
            stringify!(line_number_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V3>())).line_number_table as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V3),
            "::",
            stringify!(line_number_table)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V3>())).class_file_name as *const _ as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V3),
            "::",
            stringify!(class_file_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V3>())).source_file_name as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V3),
            "::",
            stringify!(source_file_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V3>())).module_name as *const _ as usize
        },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V3),
            "::",
            stringify!(module_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Load_V3>())).module_arch as *const _ as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Load_V3),
            "::",
            stringify!(module_arch)
        )
    );
}
#[doc = " @brief Description of a JIT-compiled method"]
#[doc = " @details The iJIT_Method_Load_V3 structure is the same as iJIT_Method_Load_V2"]
#[doc = "  with a newly introduced 'arch' field that specifies architecture of the code region."]
#[doc = "  When you use the iJIT_Method_Load_V3 structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED_V3"]
#[doc = "  as an event type to report it."]
pub type piJIT_Method_Load_V3 = *mut _iJIT_Method_Load_V3;
#[doc = " @brief Description of a JIT-compiled method"]
#[doc = " @details The iJIT_Method_Load_V3 structure is the same as iJIT_Method_Load_V2"]
#[doc = "  with a newly introduced 'arch' field that specifies architecture of the code region."]
#[doc = "  When you use the iJIT_Method_Load_V3 structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED_V3"]
#[doc = "  as an event type to report it."]
pub type iJIT_Method_Load_V3 = _iJIT_Method_Load_V3;
#[doc = " @brief Description of an inline JIT-compiled method"]
#[doc = " @details When you use the_iJIT_Method_Inline_Load structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_INLINE_LOAD_FINISHED"]
#[doc = "  as an event type to report it."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _iJIT_Method_Inline_Load {
    #[doc = "<\\brief Unique method ID. Cannot be 0."]
    #[doc = "  You must either use the API function"]
    #[doc = "  iJIT_GetNewMethodID to get a valid and unique"]
    #[doc = "  method ID, or else manage ID uniqueness"]
    #[doc = "  and correct range by yourself."]
    pub method_id: ::std::os::raw::c_uint,
    #[doc = "<\\brief Unique immediate parent's method ID."]
    #[doc = "  Cannot be 0."]
    #[doc = "  You must either use the API function"]
    #[doc = "  iJIT_GetNewMethodID to get a valid and unique"]
    #[doc = "  method ID, or else manage ID uniqueness"]
    #[doc = "  and correct range by yourself."]
    pub parent_method_id: ::std::os::raw::c_uint,
    #[doc = "<\\brief The name of the method. It can be optionally"]
    #[doc = "  prefixed with its class name and appended with"]
    #[doc = "  its complete signature. Can't be NULL."]
    pub method_name: *mut ::std::os::raw::c_char,
    pub method_load_address: *mut ::std::os::raw::c_void,
    #[doc = "<\\brief The code size of the method in memory."]
    #[doc = "  If 0, then data provided with the event are not"]
    #[doc = "  accepted."]
    pub method_size: ::std::os::raw::c_uint,
    #[doc = "<\\brief The number of entries in the line number"]
    #[doc = "  table. 0 if none."]
    pub line_number_size: ::std::os::raw::c_uint,
    #[doc = "<\\brief Pointer to the line numbers info"]
    #[doc = "  array. Can be NULL if"]
    #[doc = "  line_number_size is 0. See"]
    #[doc = "  LineNumberInfo Structure for a"]
    #[doc = "  description of a single entry in"]
    #[doc = "  the line number info array"]
    pub line_number_table: pLineNumberInfo,
    #[doc = "<\\brief Class name. Can be NULL."]
    pub class_file_name: *mut ::std::os::raw::c_char,
    #[doc = "<\\brief Source file name. Can be NULL."]
    pub source_file_name: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__iJIT_Method_Inline_Load() {
    assert_eq!(
        ::std::mem::size_of::<_iJIT_Method_Inline_Load>(),
        56usize,
        concat!("Size of: ", stringify!(_iJIT_Method_Inline_Load))
    );
    assert_eq!(
        ::std::mem::align_of::<_iJIT_Method_Inline_Load>(),
        8usize,
        concat!("Alignment of ", stringify!(_iJIT_Method_Inline_Load))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Inline_Load>())).method_id as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Inline_Load),
            "::",
            stringify!(method_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Inline_Load>())).parent_method_id as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Inline_Load),
            "::",
            stringify!(parent_method_id)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Inline_Load>())).method_name as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Inline_Load),
            "::",
            stringify!(method_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Inline_Load>())).method_load_address as *const _
                as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Inline_Load),
            "::",
            stringify!(method_load_address)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Inline_Load>())).method_size as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Inline_Load),
            "::",
            stringify!(method_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Inline_Load>())).line_number_size as *const _
                as usize
        },
        28usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Inline_Load),
            "::",
            stringify!(line_number_size)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Inline_Load>())).line_number_table as *const _
                as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Inline_Load),
            "::",
            stringify!(line_number_table)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Inline_Load>())).class_file_name as *const _
                as usize
        },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Inline_Load),
            "::",
            stringify!(class_file_name)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Inline_Load>())).source_file_name as *const _
                as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Inline_Load),
            "::",
            stringify!(source_file_name)
        )
    );
}
#[doc = " @brief Description of an inline JIT-compiled method"]
#[doc = " @details When you use the_iJIT_Method_Inline_Load structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_INLINE_LOAD_FINISHED"]
#[doc = "  as an event type to report it."]
pub type piJIT_Method_Inline_Load = *mut _iJIT_Method_Inline_Load;
#[doc = " @brief Description of an inline JIT-compiled method"]
#[doc = " @details When you use the_iJIT_Method_Inline_Load structure to describe"]
#[doc = "  the JIT compiled method, use iJVM_EVENT_TYPE_METHOD_INLINE_LOAD_FINISHED"]
#[doc = "  as an event type to report it."]
pub type iJIT_Method_Inline_Load = _iJIT_Method_Inline_Load;
pub const _iJIT_SegmentType_iJIT_CT_UNKNOWN: _iJIT_SegmentType = 0;
#[doc = "<\\brief Executable code."]
pub const _iJIT_SegmentType_iJIT_CT_CODE: _iJIT_SegmentType = 1;
#[doc = "<\\brief Data (not executable code)."]
#[doc = " VTune Amplifier uses the format string"]
#[doc = " (see iJIT_Method_Update) to represent"]
#[doc = " this data in the VTune Amplifier GUI"]
pub const _iJIT_SegmentType_iJIT_CT_DATA: _iJIT_SegmentType = 2;
#[doc = "<\\brief Use the previous markup for the trace."]
#[doc = " Can be used for the following"]
#[doc = " iJVM_EVENT_TYPE_METHOD_UPDATE_V2 events,"]
#[doc = " if the type of the previously reported segment"]
#[doc = " type is the same."]
pub const _iJIT_SegmentType_iJIT_CT_KEEP: _iJIT_SegmentType = 3;
pub const _iJIT_SegmentType_iJIT_CT_EOF: _iJIT_SegmentType = 4;
#[doc = " @cond exclude_from_documentation */"]
#[doc = " @brief Description of a segment type"]
#[doc = " @details Use the segment type to specify a type of data supplied"]
#[doc = " with the iJVM_EVENT_TYPE_METHOD_UPDATE_V2 event to be applied to"]
#[doc = " a certain code trace."]
pub type _iJIT_SegmentType = ::std::os::raw::c_uint;
#[doc = " @cond exclude_from_documentation */"]
#[doc = " @brief Description of a segment type"]
#[doc = " @details Use the segment type to specify a type of data supplied"]
#[doc = " with the iJVM_EVENT_TYPE_METHOD_UPDATE_V2 event to be applied to"]
#[doc = " a certain code trace."]
pub use self::_iJIT_SegmentType as iJIT_SegmentType;
#[doc = " @brief Description of a dynamic update of the content within JIT-compiled method"]
#[doc = " @details The JIT engine may generate the methods that are updated at runtime"]
#[doc = " partially by mixed (data + executable code) content. When you use the iJIT_Method_Update"]
#[doc = " structure to describe the update of the content within a JIT-compiled method,"]
#[doc = " use iJVM_EVENT_TYPE_METHOD_UPDATE_V2 as an event type to report it."]
#[doc = ""]
#[doc = " On the first Update event, VTune Amplifier copies the original code range reported by"]
#[doc = " the iJVM_EVENT_TYPE_METHOD_LOAD event, then modifies it with the supplied bytes and"]
#[doc = " adds the modified range to the original method. For next update events, VTune Amplifier"]
#[doc = " does the same but it uses the latest modified version of a code region for update."]
#[doc = " Eventually, VTune Amplifier GUI displays multiple code ranges for the method reported by"]
#[doc = " the iJVM_EVENT_TYPE_METHOD_LOAD event."]
#[doc = " Notes:"]
#[doc = " - Multiple update events with different types for the same trace are allowed"]
#[doc = "   but they must be reported for the same code ranges."]
#[doc = "   Example,"]
#[doc = " @code"]
#[doc = "                      [-- data---]        Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "        [code]                            Ignored"]
#[doc = "                      [-- data---]        Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "      [------------ trace ---------]"]
#[doc = " @endcode"]
#[doc = " - The types of previously reported events can be changed but they must be reported"]
#[doc = "   for the same code ranges."]
#[doc = "   Example,"]
#[doc = " @code"]
#[doc = "          [-- data---]                    Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "          [-- data---]                    Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "      [------------ trace ---------]"]
#[doc = " @endcode"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _iJIT_Method_Update {
    #[doc = "<\\brief Start address of the update within a method"]
    pub load_address: *mut ::std::os::raw::c_void,
    #[doc = "<\\brief The update size"]
    pub size: ::std::os::raw::c_uint,
    #[doc = "<\\brief Type of the update"]
    pub type_: iJIT_SegmentType,
    #[doc = "<\\brief C string that contains a format string"]
    #[doc = " that follows the same specifications as format in printf."]
    #[doc = " The format string is used for iJIT_CT_CODE only"]
    #[doc = " and cannot be NULL."]
    #[doc = " Format can be changed on the fly."]
    pub data_format: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__iJIT_Method_Update() {
    assert_eq!(
        ::std::mem::size_of::<_iJIT_Method_Update>(),
        24usize,
        concat!("Size of: ", stringify!(_iJIT_Method_Update))
    );
    assert_eq!(
        ::std::mem::align_of::<_iJIT_Method_Update>(),
        8usize,
        concat!("Alignment of ", stringify!(_iJIT_Method_Update))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<_iJIT_Method_Update>())).load_address as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Update),
            "::",
            stringify!(load_address)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_iJIT_Method_Update>())).size as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Update),
            "::",
            stringify!(size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_iJIT_Method_Update>())).type_ as *const _ as usize },
        12usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Update),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<_iJIT_Method_Update>())).data_format as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(_iJIT_Method_Update),
            "::",
            stringify!(data_format)
        )
    );
}
#[doc = " @brief Description of a dynamic update of the content within JIT-compiled method"]
#[doc = " @details The JIT engine may generate the methods that are updated at runtime"]
#[doc = " partially by mixed (data + executable code) content. When you use the iJIT_Method_Update"]
#[doc = " structure to describe the update of the content within a JIT-compiled method,"]
#[doc = " use iJVM_EVENT_TYPE_METHOD_UPDATE_V2 as an event type to report it."]
#[doc = ""]
#[doc = " On the first Update event, VTune Amplifier copies the original code range reported by"]
#[doc = " the iJVM_EVENT_TYPE_METHOD_LOAD event, then modifies it with the supplied bytes and"]
#[doc = " adds the modified range to the original method. For next update events, VTune Amplifier"]
#[doc = " does the same but it uses the latest modified version of a code region for update."]
#[doc = " Eventually, VTune Amplifier GUI displays multiple code ranges for the method reported by"]
#[doc = " the iJVM_EVENT_TYPE_METHOD_LOAD event."]
#[doc = " Notes:"]
#[doc = " - Multiple update events with different types for the same trace are allowed"]
#[doc = "   but they must be reported for the same code ranges."]
#[doc = "   Example,"]
#[doc = " @code"]
#[doc = "                      [-- data---]        Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "        [code]                            Ignored"]
#[doc = "                      [-- data---]        Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "      [------------ trace ---------]"]
#[doc = " @endcode"]
#[doc = " - The types of previously reported events can be changed but they must be reported"]
#[doc = "   for the same code ranges."]
#[doc = "   Example,"]
#[doc = " @code"]
#[doc = "          [-- data---]                    Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "          [-- data---]                    Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "      [------------ trace ---------]"]
#[doc = " @endcode"]
pub type piJIT_Method_Update = *mut _iJIT_Method_Update;
#[doc = " @brief Description of a dynamic update of the content within JIT-compiled method"]
#[doc = " @details The JIT engine may generate the methods that are updated at runtime"]
#[doc = " partially by mixed (data + executable code) content. When you use the iJIT_Method_Update"]
#[doc = " structure to describe the update of the content within a JIT-compiled method,"]
#[doc = " use iJVM_EVENT_TYPE_METHOD_UPDATE_V2 as an event type to report it."]
#[doc = ""]
#[doc = " On the first Update event, VTune Amplifier copies the original code range reported by"]
#[doc = " the iJVM_EVENT_TYPE_METHOD_LOAD event, then modifies it with the supplied bytes and"]
#[doc = " adds the modified range to the original method. For next update events, VTune Amplifier"]
#[doc = " does the same but it uses the latest modified version of a code region for update."]
#[doc = " Eventually, VTune Amplifier GUI displays multiple code ranges for the method reported by"]
#[doc = " the iJVM_EVENT_TYPE_METHOD_LOAD event."]
#[doc = " Notes:"]
#[doc = " - Multiple update events with different types for the same trace are allowed"]
#[doc = "   but they must be reported for the same code ranges."]
#[doc = "   Example,"]
#[doc = " @code"]
#[doc = "                      [-- data---]        Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "        [code]                            Ignored"]
#[doc = "                      [-- data---]        Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "      [------------ trace ---------]"]
#[doc = " @endcode"]
#[doc = " - The types of previously reported events can be changed but they must be reported"]
#[doc = "   for the same code ranges."]
#[doc = "   Example,"]
#[doc = " @code"]
#[doc = "          [-- data---]                    Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "          [-- data---]                    Allowed"]
#[doc = "          [-- code --]                    Allowed"]
#[doc = "      [------------ trace ---------]"]
#[doc = " @endcode"]
pub type iJIT_Method_Update = _iJIT_Method_Update;
extern "C" {
    #[doc = " @brief Generates a new unique method ID."]
    #[doc = ""]
    #[doc = " You must use this API to obtain unique and valid method IDs for methods or"]
    #[doc = " traces reported to the agent if you don't have your own mechanism to generate"]
    #[doc = " unique method IDs."]
    #[doc = ""]
    #[doc = " @return a new unique method ID. When out of unique method IDs, this API"]
    #[doc = " returns 0, which is not an accepted value."]
    pub fn iJIT_GetNewMethodID() -> ::std::os::raw::c_uint;
}
extern "C" {
    #[doc = " @brief Returns the current mode of the agent."]
    #[doc = ""]
    #[doc = " @return iJIT_SAMPLING_ON, indicating that agent is running, or"]
    #[doc = " iJIT_NOTHING_RUNNING if no agent is running."]
    pub fn iJIT_IsProfilingActive() -> iJIT_IsProfilingActiveFlags;
}
extern "C" {
    #[doc = " @brief Reports infomation about JIT-compiled code to the agent."]
    #[doc = ""]
    #[doc = " The reported information is used to attribute samples obtained from any"]
    #[doc = " Intel(R) VTune(TM) Amplifier collector. This API needs to be called"]
    #[doc = " after JIT compilation and before the first entry into the JIT-compiled"]
    #[doc = " code."]
    #[doc = ""]
    #[doc = " @param[in] event_type - type of the data sent to the agent"]
    #[doc = " @param[in] EventSpecificData - pointer to event-specific data"]
    #[doc = ""]
    #[doc = " @returns 1 on success, otherwise 0."]
    pub fn iJIT_NotifyEvent(
        event_type: iJIT_JVM_EVENT,
        EventSpecificData: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}