CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
52 lines
3.1 KiB
C
52 lines
3.1 KiB
C
// REQUIRES: linux || windows || darwin
|
|
// Default
|
|
// RUN: %clang -o %t.normal -fprofile-instr-generate -fcoverage-mapping %S/Inputs/instrprof-debug-info-correlate-main.cpp %S/Inputs/instrprof-debug-info-correlate-foo.cpp
|
|
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t.normal
|
|
// RUN: llvm-profdata merge -o %t.normal.profdata %t.profraw
|
|
// RUN: llvm-cov report --instr-profile=%t.normal.profdata %t.normal > %t.normal.report
|
|
// RUN: llvm-cov show --instr-profile=%t.normal.profdata %t.normal > %t.normal.show
|
|
|
|
// With -profile-correlate=binary flag
|
|
// RUN: %clang -o %t-1.exe -fprofile-instr-generate -fcoverage-mapping -mllvm -profile-correlate=binary %S/Inputs/instrprof-debug-info-correlate-main.cpp %S/Inputs/instrprof-debug-info-correlate-foo.cpp
|
|
// RUN: env LLVM_PROFILE_FILE=%t-1.profraw %run %t-1.exe
|
|
// RUN: llvm-profdata merge -o %t-1.profdata --binary-file=%t-1.exe %t-1.profraw
|
|
// RUN: llvm-cov report --instr-profile=%t-1.profdata %t-1.exe > %t-1.report
|
|
// RUN: llvm-cov show --instr-profile=%t-1.profdata %t-1.exe > %t-1.show
|
|
// RUN: llvm-profdata show --all-functions --counts %t.normal.profdata > %t.normal.profdata.show
|
|
// RUN: llvm-profdata show --all-functions --counts %t-1.profdata > %t-1.profdata.show
|
|
// RUN: diff %t.normal.profdata.show %t-1.profdata.show
|
|
// RUN: diff %t.normal.report %t-1.report
|
|
// RUN: diff %t.normal.show %t-1.show
|
|
|
|
// Strip above binary and run
|
|
// RUN: llvm-strip %t-1.exe -o %t-2.exe
|
|
// RUN: env LLVM_PROFILE_FILE=%t-2.profraw %run %t-2.exe
|
|
// RUN: llvm-profdata merge -o %t-2.profdata --binary-file=%t-1.exe %t-2.profraw
|
|
// RUN: llvm-cov report --instr-profile=%t-2.profdata %t-1.exe > %t-2.report
|
|
// RUN: llvm-cov show --instr-profile=%t-2.profdata %t-1.exe > %t-2.show
|
|
// RUN: llvm-profdata show --all-functions --counts %t-2.profdata > %t-2.profdata.show
|
|
// RUN: diff %t.normal.profdata.show %t-2.profdata.show
|
|
// RUN: diff %t.normal.report %t-2.report
|
|
// RUN: diff %t.normal.show %t-2.show
|
|
|
|
// Online merging.
|
|
// RUN: env LLVM_PROFILE_FILE=%t-3.profraw %run %t.normal
|
|
// RUN: env LLVM_PROFILE_FILE=%t-4.profraw %run %t.normal
|
|
// RUN: llvm-profdata merge -o %t.normal.merged.profdata %t-3.profraw %t-4.profraw
|
|
// RUN: llvm-cov report --instr-profile=%t.normal.merged.profdata %t.normal > %t.normal.merged.report
|
|
// RUN: llvm-cov show --instr-profile=%t.normal.merged.profdata %t.normal > %t.normal.merged.show
|
|
|
|
// RUN: rm -rf %t.profdir && mkdir %t.profdir
|
|
// RUN: env LLVM_PROFILE_FILE=%t.profdir/%m-4.profraw %run %t-2.exe
|
|
// RUN: env LLVM_PROFILE_FILE=%t.profdir/%m-4.profraw %run %t-2.exe
|
|
// RUN: llvm-profdata merge -o %t-4.profdata --binary-file=%t-1.exe %t.profdir
|
|
// RUN: llvm-cov report --instr-profile=%t-4.profdata %t-1.exe > %t-4.report
|
|
// RUN: llvm-cov show --instr-profile=%t-4.profdata %t-1.exe > %t-4.show
|
|
// RUN: llvm-profdata show --all-functions --counts %t.normal.merged.profdata > %t.normal.merged.profdata.show
|
|
// RUN: llvm-profdata show --all-functions --counts %t-4.profdata > %t-4.profdata.show
|
|
// RUN: diff %t.normal.merged.profdata.show %t-4.profdata.show
|
|
// RUN: diff %t.normal.merged.report %t-4.report
|
|
// RUN: diff %t.normal.merged.show %t-4.show
|
|
|
|
// TODO: After adding support for binary ID, test binaries with different binary IDs.
|