brintos

brintos / llvm-project-archived public Read only

0
0
Text · 10.3 KiB · a498188 Raw
212 lines · plain
1# REQUIRES: native && x86_64-linux2 3# Linux perf not supported by Windows Kernel's Linux syscall emulation layer4# https://github.com/microsoft/WSL/issues/45955# UNSUPPORTED: wsl16 7# FIXME: Investigate why broken with MSAN8# UNSUPPORTED: msan9 10# RUN: rm -rf %t && mkdir -p %t11# RUN: llvm-mc -triple=x86_64-unknown-linux -position-independent \12# RUN:     -filetype=obj -o %t/ELF_x86-64_perf.o %s13# RUN: env JITDUMPDIR="%t" llvm-jitlink -perf-support \14# RUN:     %t/ELF_x86-64_perf.o15# RUN: test -f %t/.debug/jit/llvm-IR-jit-*/jit-*.dump16 17# Test ELF perf support for code load records and unwind info18 19        .text20        .file   "example.c"21        .section        .text.source,"ax",@progbits22        .globl  source                          # -- Begin function source23        .p2align        4, 0x9024        .type   source,@function25source:                                 # @source26.Lfunc_begin0:27        .file   1 "/app" "example.c"28        .loc    1 1 0                           # example.c:1:029        .cfi_startproc30# %bb.0:31        .loc    1 2 5 prologue_end              # example.c:2:532        movl    $1, %eax33        retq34.Ltmp0:35.Lfunc_end0:36        .size   source, .Lfunc_end0-source37        .cfi_endproc38                                        # -- End function39        .section        .text.passthrough,"ax",@progbits40        .globl  passthrough                     # -- Begin function passthrough41        .p2align        4, 0x9042        .type   passthrough,@function43passthrough:                            # @passthrough44.Lfunc_begin1:45        .loc    1 5 0                           # example.c:5:046        .cfi_startproc47# %bb.0:48        .loc    1 6 5 prologue_end              # example.c:6:549        movl    $1, %eax50        retq51.Ltmp1:52.Lfunc_end1:53        .size   passthrough, .Lfunc_end1-passthrough54        .cfi_endproc55                                        # -- End function56        .section        .text.main,"ax",@progbits57        .globl  main                            # -- Begin function main58        .p2align        4, 0x9059        .type   main,@function60main:                                   # @main61.Lfunc_begin2:62        .loc    1 9 0                           # example.c:9:063        .cfi_startproc64# %bb.0:65        .loc    1 10 5 prologue_end             # example.c:10:566        xorl    %eax, %eax67        retq68.Ltmp2:69.Lfunc_end2:70        .size   main, .Lfunc_end2-main71        .cfi_endproc72                                        # -- End function73        .section        .debug_abbrev,"",@progbits74        .byte   1                               # Abbreviation Code75        .byte   17                              # DW_TAG_compile_unit76        .byte   1                               # DW_CHILDREN_yes77        .byte   37                              # DW_AT_producer78        .byte   14                              # DW_FORM_strp79        .byte   19                              # DW_AT_language80        .byte   5                               # DW_FORM_data281        .byte   3                               # DW_AT_name82        .byte   14                              # DW_FORM_strp83        .byte   16                              # DW_AT_stmt_list84        .byte   23                              # DW_FORM_sec_offset85        .byte   27                              # DW_AT_comp_dir86        .byte   14                              # DW_FORM_strp87        .byte   17                              # DW_AT_low_pc88        .byte   1                               # DW_FORM_addr89        .byte   85                              # DW_AT_ranges90        .byte   23                              # DW_FORM_sec_offset91        .byte   0                               # EOM(1)92        .byte   0                               # EOM(2)93        .byte   2                               # Abbreviation Code94        .byte   46                              # DW_TAG_subprogram95        .byte   0                               # DW_CHILDREN_no96        .byte   17                              # DW_AT_low_pc97        .byte   1                               # DW_FORM_addr98        .byte   18                              # DW_AT_high_pc99        .byte   6                               # DW_FORM_data4100        .byte   64                              # DW_AT_frame_base101        .byte   24                              # DW_FORM_exprloc102        .ascii  "\227B"                         # DW_AT_GNU_all_call_sites103        .byte   25                              # DW_FORM_flag_present104        .byte   3                               # DW_AT_name105        .byte   14                              # DW_FORM_strp106        .byte   58                              # DW_AT_decl_file107        .byte   11                              # DW_FORM_data1108        .byte   59                              # DW_AT_decl_line109        .byte   11                              # DW_FORM_data1110        .byte   73                              # DW_AT_type111        .byte   19                              # DW_FORM_ref4112        .byte   63                              # DW_AT_external113        .byte   25                              # DW_FORM_flag_present114        .byte   0                               # EOM(1)115        .byte   0                               # EOM(2)116        .byte   3                               # Abbreviation Code117        .byte   36                              # DW_TAG_base_type118        .byte   0                               # DW_CHILDREN_no119        .byte   3                               # DW_AT_name120        .byte   14                              # DW_FORM_strp121        .byte   62                              # DW_AT_encoding122        .byte   11                              # DW_FORM_data1123        .byte   11                              # DW_AT_byte_size124        .byte   11                              # DW_FORM_data1125        .byte   0                               # EOM(1)126        .byte   0                               # EOM(2)127        .byte   0                               # EOM(3)128        .section        .debug_info,"",@progbits129.Lcu_begin0:130        .long   .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit131.Ldebug_info_start0:132        .short  4                               # DWARF version number133        .long   .debug_abbrev                   # Offset Into Abbrev. Section134        .byte   8                               # Address Size (in bytes)135        .byte   1                               # Abbrev [1] 0xb:0x72 DW_TAG_compile_unit136        .long   .Linfo_string0                  # DW_AT_producer137        .short  12                              # DW_AT_language138        .long   .Linfo_string1                  # DW_AT_name139        .long   .Lline_table_start0             # DW_AT_stmt_list140        .long   .Linfo_string2                  # DW_AT_comp_dir141        .quad   0                               # DW_AT_low_pc142        .long   .Ldebug_ranges0                 # DW_AT_ranges143        .byte   2                               # Abbrev [2] 0x2a:0x19 DW_TAG_subprogram144        .quad   .Lfunc_begin0                   # DW_AT_low_pc145        .long   .Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc146        .byte   1                               # DW_AT_frame_base147        .byte   87148                                        # DW_AT_GNU_all_call_sites149        .long   .Linfo_string3                  # DW_AT_name150        .byte   1                               # DW_AT_decl_file151        .byte   1                               # DW_AT_decl_line152        .long   117                             # DW_AT_type153                                        # DW_AT_external154        .byte   2                               # Abbrev [2] 0x43:0x19 DW_TAG_subprogram155        .quad   .Lfunc_begin1                   # DW_AT_low_pc156        .long   .Lfunc_end1-.Lfunc_begin1       # DW_AT_high_pc157        .byte   1                               # DW_AT_frame_base158        .byte   87159                                        # DW_AT_GNU_all_call_sites160        .long   .Linfo_string5                  # DW_AT_name161        .byte   1                               # DW_AT_decl_file162        .byte   5                               # DW_AT_decl_line163        .long   117                             # DW_AT_type164                                        # DW_AT_external165        .byte   2                               # Abbrev [2] 0x5c:0x19 DW_TAG_subprogram166        .quad   .Lfunc_begin2                   # DW_AT_low_pc167        .long   .Lfunc_end2-.Lfunc_begin2       # DW_AT_high_pc168        .byte   1                               # DW_AT_frame_base169        .byte   87170                                        # DW_AT_GNU_all_call_sites171        .long   .Linfo_string6                  # DW_AT_name172        .byte   1                               # DW_AT_decl_file173        .byte   9                               # DW_AT_decl_line174        .long   117                             # DW_AT_type175                                        # DW_AT_external176        .byte   3                               # Abbrev [3] 0x75:0x7 DW_TAG_base_type177        .long   .Linfo_string4                  # DW_AT_name178        .byte   5                               # DW_AT_encoding179        .byte   4                               # DW_AT_byte_size180        .byte   0                               # End Of Children Mark181.Ldebug_info_end0:182        .section        .debug_ranges,"",@progbits183.Ldebug_ranges0:184        .quad   .Lfunc_begin0185        .quad   .Lfunc_end0186        .quad   .Lfunc_begin1187        .quad   .Lfunc_end1188        .quad   .Lfunc_begin2189        .quad   .Lfunc_end2190        .quad   0191        .quad   0192        .section        .debug_str,"MS",@progbits,1193.Linfo_string0:194        .asciz  "clang version 15.0.0 (https://github.com/llvm/llvm-project.git 4ba6a9c9f65bbc8bd06e3652cb20fd4dfc846137)" # string offset=0195.Linfo_string1:196        .asciz  "/app/example.c"                # string offset=105197.Linfo_string2:198        .asciz  "/app"                          # string offset=120199.Linfo_string3:200        .asciz  "source"                        # string offset=125201.Linfo_string4:202        .asciz  "int"                           # string offset=132203.Linfo_string5:204        .asciz  "passthrough"                   # string offset=136205.Linfo_string6:206        .asciz  "main"                          # string offset=148207        .ident  "clang version 15.0.0 (https://github.com/llvm/llvm-project.git 4ba6a9c9f65bbc8bd06e3652cb20fd4dfc846137)"208        .section        ".note.GNU-stack","",@progbits209        .addrsig210        .section        .debug_line,"",@progbits211.Lline_table_start0:212