summaryrefslogtreecommitdiff
path: root/compiler-rt/test/profile/ContinuousSyncMode/multi-threaded.cpp
AgeCommit message (Collapse)Author
2025-03-15[profile] Use fprofile-continuous in compiler-rt tests (#126617)Wael Yehia
PR #124353 introduced the clang option `-fprofile-continuous` to enable continuous mode. Use this option in all compiler-rt tests, where applicable. Changes can be summarized as follows: 1) tests that use `-fprofile-instr-generate` (`%clang_profgen`), which is an option that takes profile file name, are changed like so: ``` -// RUN: %clang_profgen_cont <SOME-OPTIONS> -o %t.exe %s -// RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe +// RUN: %clang_profgen=%t.profraw -fprofile-continuous <SOME-OPTIONS> -o %t.exe %s +// RUN: %run %t.exe ``` 2) tests that use `-fprofile-generate` (`%clang_pgogen`), which is an option that takes a profile directory, are on case-by-case basis. Where the default name "default_%m.profraw" works, those tests were changed to use `%clang_pgogen=<dir>`, and the rest (`set-filename.c` and `get-filename.c`) continued to use the `LLVM_PROFILE_FILE` environment variable . 3) `set-file-object.c` uses different filename for different run of the same executable, so it continued to use the `LLVM_PROFILE_FILE` environment variable. 4) `pid-substitution.c` add a clang_profgen variation. --------- Co-authored-by: Wael Yehia <wyehia@ca.ibm.com>
2024-12-29[profile] Enable testing Continuous mode on Linux (#121238)NAKAMURA Takumi
Based on #115987, with the introduction of `REQUIRES: continuous-mode`. Also Linux assumes `runtime_reloc`. FIXME: image-with-no-counters.c is still excluded.
2024-11-19[test][PGO] Add a multi-threaded test for continuous PGO.Wael Yehia