[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:
parent
cb1ad985b5
commit
de294c968b
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// REQUIRES: target={{.*(darwin|aix).*}}
|
||||
// REQUIRES: continuous-mode
|
||||
|
||||
// Test the online merging mode (%m) along with continuous mode (%c).
|
||||
//
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user