31 lines · plain
1RUN: llvm-profgen --perfscript=%p/Inputs/pie-lbr-perf.script \2RUN: --data-access-perftrace=%p/Inputs/pie-dap-perf.txt \3RUN: --binary=%p/Inputs/dap-pie.bin --format=text --pid=1725662 \4RUN: -ignore-stack-samples -use-dwarf-correlation -o %t.afdo5 6RUN: llvm-profdata show --sample --function=_Z9loop_funciii %t.afdo 2>&1 | FileCheck %s --dump-input=always7 8RUN: not llvm-profgen --perfscript=%p/Inputs/pie-lbr-perf.script \9RUN: --data-access-perftrace=%p/Inputs/pie-dap-perf.txt \10RUN: --binary=%p/Inputs/dap-pie.bin --format=text --pid=1725662 \11RUN: -ignore-stack-samples -use-dwarf-correlation=false -o - 2>&1 | FileCheck %s --dump-input=always --check-prefix=PSEUDOERR12 13RUN: not llvm-profgen --perfscript=%p/Inputs/css-pgo-perf.script \14RUN: --data-access-perftrace=%p/Inputs/pie-dap-perf.txt \15RUN: --binary=%p/Inputs/dap-pie.bin --format=text --pid=21450 \16RUN: -ignore-stack-samples=false -use-dwarf-correlation=true -o - 2>&1 | FileCheck %s --dump-input=always --check-prefix=PSEUDOERR17 18CHECK: Function: _Z9loop_funciii: 746, 14, 5 sampled lines19CHECK-NEXT: Samples collected in the function's body {20CHECK-NEXT: 0: 1421CHECK-NEXT: 1: 18, calls: _Z10createTypei:1822CHECK-NEXT: 3: 11, calls: _ZN12_GLOBAL__N_18Derived24funcEii:8 _ZN8Derived14funcEii:323CHECK-NEXT: 3: vtables: _ZTV8Derived1:16 _ZTVN12_GLOBAL__N_18Derived2E:47 24CHECK-NEXT: 5.1: 11, calls: _ZN12_GLOBAL__N_18Derived2D0Ev:8 _ZN8Derived1D0Ev:325CHECK-NEXT: 5.1: vtables: _ZTV8Derived1:3 _ZTVN12_GLOBAL__N_18Derived2E:9 26CHECK-NEXT: 7: 1327CHECK-NEXT: }28CHECK-NEXT: No inlined callsites in this function29 30PSEUDOERR: Symbolizing vtables from data access profiles is not yet supported for context-sensitive perf traces or when pseudo-probe based mapping is enabled.31