llvm-project/compiler-rt/test/profile
Leonard Chan c579c658cd [compiler-rt][profile] Make corrupted-profile.c more robust
This test specifically checks that profiles are not mergeable if there's a
change in the CounterPtr in the profile header. The test manually changes
CounterPtr by explicitly calling memset on some offset into the profile file.
This test would fail if binary IDs were emitted because the offset calculation
does not take into account the binary ID sizes.

This patch updates the test to use types provided in profile/InstrProfData.inc
to make it more resistant to profile layout changes.

Differential Revision: https://reviews.llvm.org/D110277
2021-09-23 17:16:47 -07:00
..
ContinuousSyncMode Revert "[compiler-rt][Profile] Disable test on Arm/AArch64 Linux" 2021-09-06 08:45:06 +00:00
Darwin [InstrProfiling] Use llvm.compiler.used if applicable for Mach-O 2021-09-01 14:46:51 -07:00
Inputs Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
Linux [compiler-rt][profile] Make corrupted-profile.c more robust 2021-09-23 17:16:47 -07:00
Posix [gcov] Add spanning tree optimization 2020-09-13 00:07:31 -07:00
Windows [InstrProfiling] Delete linkage/visibility toggling for Windows 2021-06-02 16:49:54 -07:00
CMakeLists.txt [CMake][profile] Don't use `TARGET lld` to avoid ordering issues 2021-02-22 23:33:21 -08:00
coverage-inline.cpp
coverage_comments.cpp [test] Fix compiler-rt/test/profile/coverage_emptylines.cpp if the build directory is under /tmp 2020-12-10 16:57:10 -08:00
coverage_emptylines.cpp [test] Fix compiler-rt/test/profile/coverage_emptylines.cpp if the build directory is under /tmp 2020-12-10 16:57:10 -08:00
gcc-flag-compatibility.test
gcov-__gcov_flush-terminate.c [gcov] Add __gcov_dump/__gcov_reset and delete __gcov_flush 2020-07-18 15:07:46 -07:00
gcov-basic.c [llvm-cov gcov] Improve accuracy when some edges are not measured 2020-09-12 22:33:41 -07:00
gcov-complex-line.c [llvm-cov][gcov] Optimize the cycle counting algorithm by skipping zero count cycles 2020-12-10 15:22:29 -08:00
gcov-dump-and-remove.c [gcov] Add spanning tree optimization 2020-09-13 00:07:31 -07:00
infinite_loop.c
instrprof-basic.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
instrprof-bufferio.c
instrprof-darwin-dead-strip.c [profile] Specify "-V" to otool to get expected test output 2021-08-31 10:49:51 -07:00
instrprof-darwin-exports.c [profile] Add explanatory comments to instrprof-darwin-exports.c, NFC 2019-12-10 09:45:04 -08:00
instrprof-dump.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
instrprof-error.c
instrprof-gc-sections.c [profile][test] Delete profraw directory so that tests are immune to format version upgrade 2021-06-18 16:44:03 -07:00
instrprof-gcov-exceptions.test [gcov][test] Delete UNSUPPORTED: host-byteorder-big-endian from test/profile tests 2020-06-07 08:42:57 -07:00
instrprof-gcov-multiple-bbs-single-line.test [gcov][test] Delete UNSUPPORTED: host-byteorder-big-endian from test/profile tests 2020-06-07 08:42:57 -07:00
instrprof-gcov-multithread_fork.test [profile] Don't crash when forking in several threads 2020-05-07 14:13:11 +02:00
instrprof-gcov-one-line-function.test [gcov][test] Delete UNSUPPORTED: host-byteorder-big-endian from test/profile tests 2020-06-07 08:42:57 -07:00
instrprof-gcov-switch.test [gcov][test] Delete UNSUPPORTED: host-byteorder-big-endian from test/profile tests 2020-06-07 08:42:57 -07:00
instrprof-gcov-two-objects.test [gcov][test] Delete UNSUPPORTED: host-byteorder-big-endian from test/profile tests 2020-06-07 08:42:57 -07:00
instrprof-get-filename.c
instrprof-hostname.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
instrprof-icall-promo.test
instrprof-lto-pgogen.c [profile][test] Delete profraw directory so that tests are immune to format version upgrade 2021-06-18 16:44:03 -07:00
instrprof-merge-match.test
instrprof-merge.c [Profile] Handle invalid profile data 2021-06-10 16:10:13 -07:00
instrprof-merging.cpp [Coverage] Collect all function records in an object (D69471 followup) 2020-03-02 12:01:09 -08:00
instrprof-order-file.test
instrprof-override-filename-then-reset-default.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
instrprof-override-filename-with-env.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
instrprof-override-filename.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
instrprof-path.c
instrprof-reset-counters.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
instrprof-set-dir-mode.c
instrprof-set-file-object-merging.c [Coverage] Add empty line regions to SkippedRegions 2020-09-21 12:42:53 -07:00
instrprof-set-file-object.c [Coverage] Add empty line regions to SkippedRegions 2020-09-21 12:42:53 -07:00
instrprof-set-filename-then-reset-default.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
instrprof-set-filename.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
instrprof-tmpdir.c [profile] Add %t LLVM_PROFILE_FILE option to substitute $TMPDIR 2020-09-25 09:39:40 -07:00
instrprof-value-prof-2.c [PGO] Don't reference functions unless value profiling is enabled 2021-05-20 11:09:24 -07:00
instrprof-value-prof-evict.test
instrprof-value-prof-reset.c
instrprof-value-prof.c [PGO] Don't reference functions unless value profiling is enabled 2021-05-20 11:09:24 -07:00
instrprof-value-prof.test [profile] Delete stale profiles in test/profile/instrprof-value-prof.test, NFC 2019-12-11 10:03:59 -08:00
instrprof-version-mismatch.c [profile] Enabled test on windows 2020-07-17 00:05:46 -07:00
instrprof-without-libc.c [Profile] Handle invalid profile data 2021-06-10 16:10:13 -07:00
instrprof-write-buffer-internal.c [llvm-profdata] Make diagnostics consistent with the (no capitalization, no period) style 2021-06-19 14:54:25 -07:00
instrprof-write-file-atexit-explicitly.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
instrprof-write-file-only.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
instrprof-write-file.c Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
lit.cfg.py
lit.site.cfg.py.in
profile_test.h [builtins][test] Delete unneeded file headers 2020-06-16 17:46:22 -07:00
runtime_infinite.c