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
54 lines
1.8 KiB
Plaintext
54 lines
1.8 KiB
Plaintext
# Meta test using merge-fdata binary
|
|
UNSUPPORTED: asan
|
|
# Instrumentation currently only works on X86
|
|
REQUIRES: x86_64-linux,bolt-runtime
|
|
|
|
# Instrumentation, should test:
|
|
# - Direct branches
|
|
# - Unmapped calls coming from uninstrumented code (libc)
|
|
# - Direct calls
|
|
RUN: llvm-bolt merge-fdata -o %t.inst --instrument \
|
|
RUN: --instrumentation-file=%t.fdata
|
|
|
|
# Execute with no input
|
|
RUN: %t.inst --version
|
|
RUN: mv %t.fdata %t.fdata1
|
|
|
|
# Check unmapped calls coverage - libc should be calling _start via
|
|
# uninstrumented code
|
|
RUN: cat %t.fdata1 | FileCheck %s --check-prefix=CHECK-FDATA
|
|
CHECK-FDATA: 0 [unknown] 0 1 _start 0 0 1
|
|
|
|
# Check that BOLT works with this profile
|
|
RUN: llvm-bolt merge-fdata -o %t.bolt --data %t.fdata1 \
|
|
RUN: --reorder-blocks=ext-tsp --reorder-functions=hfsort+ \
|
|
RUN: --split-functions 2>&1 \
|
|
RUN: | FileCheck %s --check-prefix=CHECK-BOLT1
|
|
CHECK-BOLT1-NOT: invalid (possibly stale) profile
|
|
|
|
# Execute again
|
|
RUN: %t.inst --help
|
|
RUN: mv %t.fdata %t.fdata2
|
|
|
|
# Check profile coverage
|
|
RUN: llvm-boltdiff merge-fdata merge-fdata \
|
|
RUN: --data %t.fdata1 --data2 %t.fdata2 --display-count=20 | \
|
|
RUN: FileCheck %s --check-prefix=CHECK-BOLTDIFF
|
|
CHECK-BOLTDIFF: Inputs share [[#]] functions
|
|
|
|
# Check that instrumented binary produces the same result
|
|
RUN: merge-fdata %t.fdata1 %t.fdata2 > %t.fdata.base
|
|
RUN: %t.inst %t.fdata1 %t.fdata2 > %t.fdata.inst
|
|
RUN: cmp %t.fdata.base %t.fdata.inst
|
|
|
|
# Optimize using merged fdata
|
|
RUN: llvm-bolt merge-fdata -o %t.opt --data %t.fdata.base \
|
|
RUN: --reorder-blocks=ext-tsp --reorder-functions=hfsort+ \
|
|
RUN: --split-functions 2>&1 \
|
|
RUN: | FileCheck %s --check-prefix=CHECK-BOLT2
|
|
CHECK-BOLT2-NOT: invalid (possibly stale) profile
|
|
|
|
# Check that optimized binary produces the same result
|
|
RUN: %t.opt %t.fdata1 %t.fdata2 > %t.fdata.opt
|
|
RUN: cmp %t.fdata.base %t.fdata.opt
|