llvm-project/compiler-rt/test/profile/Posix
Gulfem Savrun Yeniceri 999886325e [profile] Create only prof header when no counters
When we use selective instrumentation and instrument a file
that is not in the selected files list provided via -fprofile-list,
we generate an empty raw profile. This leads to empty_raw_profile
error when we try to read that profile. This patch fixes the issue by
generating a raw profile that contains only a profile header when
there are no counters and profile data.

A small reproducer for the above issue:
echo "src:other.cc" > code.list
clang++ -O2 -fprofile-instr-generate -fcoverage-mapping
-fprofile-list=code.list code.cc -o code
./code
llvm-profdata show default.profraw

Differential Revision: https://reviews.llvm.org/D132094
2022-08-30 19:50:41 +00:00
..
Inputs
gcov-destructor.c Revert "XFAIL some PGO tests on AIX until the new linker becomes publicly available." 2022-08-08 14:04:29 +00:00
gcov-dlopen.c [gcov] Add __gcov_dump/__gcov_reset and delete __gcov_flush 2020-07-18 15:07:46 -07:00
gcov-execlp.c Revert "XFAIL some PGO tests on AIX until the new linker becomes publicly available." 2022-08-08 14:04:29 +00:00
gcov-fork.c Revert "XFAIL some PGO tests on AIX until the new linker becomes publicly available." 2022-08-08 14:04:29 +00:00
gcov-shared-flush.c [C11/C2x] Change the behavior of the implicit function declaration warning 2022-04-20 11:30:12 -04:00
instrprof-dlopen.test
instrprof-dynamic-one-shared.test
instrprof-dynamic-two-shared.test
instrprof-empty-profile.c [profile] Create only prof header when no counters 2022-08-30 19:50:41 +00:00
instrprof-gcov-parallel.test Revert "XFAIL some PGO tests on AIX until the new linker becomes publicly available." 2022-08-08 14:04:29 +00:00
instrprof-get-filename-merge-mode.c Revert "XFAIL some PGO tests on AIX until the new linker becomes publicly available." 2022-08-08 14:04:29 +00:00
instrprof-shared-empty-profile.test [profile] Create only prof header when no counters 2022-08-30 19:50:41 +00:00
instrprof-shared.test
instrprof-value-prof-shared.test
instrprof-visibility-kinds.inc
instrprof-visibility.cpp
lit.local.cfg.py [compiler-rt][profile][AIX] pass extra link opts for test 2022-01-27 15:25:19 -06:00