28 lines · plain
1RUN: llvm-profgen --perfscript=%p/Inputs/lbr-perf-for-dap.script --data-access-perftrace=%p/Inputs/dap-perf-trace.txt \2RUN: --binary=%p/Inputs/dap.bin --format=text --pid=3446532 \3RUN: -ignore-stack-samples -use-dwarf-correlation -o %t.afdo4 5RUN: llvm-profdata show --sample --function=_Z9loop_funciii %t.afdo 2>&1 | FileCheck %s6 7RUN: not llvm-profgen --perfscript=%p/Inputs/lbr-perf-for-dap.script --data-access-perftrace=%p/Inputs/dap-perf-trace.txt \8RUN: --binary=%p/Inputs/dap.bin --format=text --pid=3446532 \9RUN: -ignore-stack-samples -use-dwarf-correlation=false -o - 2>&1 | FileCheck %s --check-prefix=PSEUDOERR10 11RUN: not llvm-profgen --perfscript=%p/Inputs/css-pgo-perf.script --data-access-perftrace=%p/Inputs/dap-perf-trace.txt \12RUN: --binary=%p/Inputs/dap.bin --format=text --pid=21450 \13RUN: -ignore-stack-samples=false -use-dwarf-correlation=true -o - 2>&1 | FileCheck %s --check-prefix=PSEUDOERR14 15CHECK: Function: _Z9loop_funciii: 958, 15, 5 sampled lines16CHECK-NEXT: Samples collected in the function's body {17CHECK-NEXT: 0: 1518CHECK-NEXT: 1: 19, calls: _Z10createTypei:1519CHECK-NEXT: 3: 19, calls: _ZN12_GLOBAL__N_18Derived24funcEii:16 _ZN8Derived14funcEii:320CHECK-NEXT: 3: vtables: _ZTV8Derived1:16 _ZTVN12_GLOBAL__N_18Derived2E:5 21CHECK-NEXT: 5.1: 19, calls: _ZN12_GLOBAL__N_18Derived2D0Ev:16 _ZN8Derived1D0Ev:322CHECK-NEXT: 5.1: vtables: _ZTV8Derived1:9 _ZTVN12_GLOBAL__N_18Derived2E:3 23CHECK-NEXT: 7: 1224CHECK-NEXT: }25CHECK-NEXT: No inlined callsites in this function26 27PSEUDOERR: Symbolizing vtables from data access profiles is not yet supported for context-sensitive perf traces or when pseudo-probe based mapping is enabled.28