[profile] Enable testing Continuous mode on Linux (#121238)

Based on #115987, with the introduction of `REQUIRES: continuous-mode`.
Also Linux assumes `runtime_reloc`.

FIXME: image-with-no-counters.c is still excluded.
This commit is contained in:
NAKAMURA Takumi 2024-12-29 12:02:13 +09:00 committed by GitHub
parent cb1ad985b5
commit de294c968b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 11 additions and 8 deletions

View File

@ -1,4 +1,4 @@
// REQUIRES: target={{.*(darwin|aix).*}}
// REQUIRES: continuous-mode
// RUN: %clang_profgen_cont -fcoverage-mapping -o %t.exe %s
// RUN: echo "garbage" > %t.profraw

View File

@ -1,4 +1,4 @@
// REQUIRES: target={{.*(darwin|aix).*}}
// REQUIRES: continuous-mode
// RUN: %clang_pgogen_cont -o %t.exe %s
// RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe %t.profraw

View File

@ -1,4 +1,4 @@
// REQUIRES: target={{.*(darwin|aix).*}}
// REQUIRES: continuous-mode
// RUN: %clang_profgen_cont -fcoverage-mapping -fcoverage-mcdc -O3 -o %t.exe %s
// RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe 3 3

View File

@ -1,4 +1,4 @@
// REQUIRES: target={{.*(darwin|aix).*}}
// REQUIRES: continuous-mode
// RUN: rm -f %t.profraw
// RUN: %clangxx_pgogen_cont -lpthread %s -o %t.exe -mllvm -disable-vp -fprofile-update=atomic

View File

@ -1,4 +1,4 @@
// REQUIRES: target={{.*(darwin|aix).*}}
// REQUIRES: continuous-mode
// Test the online merging mode (%m) along with continuous mode (%c).
//

View File

@ -1,4 +1,4 @@
// REQUIRES: target={{.*(darwin|aix).*}}
// REQUIRES: continuous-mode
// RUN: rm -rf %t.dir && mkdir -p %t.dir
// RUN: %clang_pgogen_cont -o %t.exe %s

View File

@ -1,4 +1,4 @@
// REQUIRES: target={{.*(darwin|aix).*}}
// REQUIRES: continuous-mode
// RUN: %clang_pgogen_cont -o %t.exe %s
// RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe %t.profraw %t.bad

View File

@ -31,7 +31,7 @@ if (
target_is_msvc = bool(re.match(r".*-windows-msvc$", config.target_triple))
# Whether continous profile collection (%c) requires runtime counter relocation on this platform
runtime_reloc = bool(config.host_os in ["AIX"])
runtime_reloc = bool(config.host_os in ["AIX", "Linux"])
if config.host_os in ["Linux"]:
extra_link_flags = ["-ldl"]
@ -210,3 +210,6 @@ if config.android:
if config.have_curl:
config.available_features.add("curl")
if config.host_os in ("AIX", "Darwin", "Linux"):
config.available_features.add("continuous-mode")