llvm-project/compiler-rt/lib/profile
Rong Xu 95ab7582f0 [profile] Fix value profile runtime merging issues
This patch fixes the following issues:
(1) The strong definition of the merge hook function was not working which
breaks the online value profile merging. This patch removes the weak
attribute of VPMergeHook and assigns the value dynamically.
(2) Truncate the proifle file so that we don't have garbage data at the end of
the file.
(3) Add new __llvm_profile_instrument_target_value() interface to do the value
profile update in batch. This is needed as the original incremental by 1
in __llvm_profile_instrument_target() is too slow for online merge.

Differential Revision: https://reviews.llvm.org/D44847

llvm-svn: 328987
2018-04-02 16:57:00 +00:00
..
CMakeLists.txt [profile] Port the runtime to Solaris (retry) 2017-12-14 19:01:04 +00:00
GCDAProfiling.c Hide some symbols to avoid a crash on shutdown when using code coverage 2018-01-03 11:21:30 +00:00
InstrProfData.inc [NFC] fix trivial typos in comments 2018-01-22 07:51:37 +00:00
InstrProfiling.c [profile] Port the runtime to Solaris (retry) 2017-12-14 19:01:04 +00:00
InstrProfiling.h [profile] Fix value profile runtime merging issues 2018-04-02 16:57:00 +00:00
InstrProfilingBuffer.c [PGO] Reduce IO in profile dumping with merging 2017-06-28 16:46:06 +00:00
InstrProfilingFile.c [profile] Fix value profile runtime merging issues 2018-04-02 16:57:00 +00:00
InstrProfilingInternal.h [profile] Port the runtime to Solaris (retry) 2017-12-14 19:01:04 +00:00
InstrProfilingMerge.c [profile] Fix value profile runtime merging issues 2018-04-02 16:57:00 +00:00
InstrProfilingMergeFile.c [profile] Fix value profile runtime merging issues 2018-04-02 16:57:00 +00:00
InstrProfilingNameVar.c [profile] Fix warning about C++ style comment in C file 2017-08-22 21:54:37 +00:00
InstrProfilingPlatformDarwin.c [profile] initialize static pool properly 2016-05-22 16:36:03 +00:00
InstrProfilingPlatformLinux.c [profile] Port the runtime to Solaris (retry) 2017-12-14 19:01:04 +00:00
InstrProfilingPlatformOther.c [profile] Port the runtime to Solaris (retry) 2017-12-14 19:01:04 +00:00
InstrProfilingPort.h [profile] Fix value profile runtime merging issues 2018-04-02 16:57:00 +00:00
InstrProfilingRuntime.cc [Profile] cleanup: do not reference name directly of vars shared between rt and llvm 2016-07-22 04:08:16 +00:00
InstrProfilingUtil.c Include process.h for getpid on Windows in instr profiling 2017-12-21 21:48:55 +00:00
InstrProfilingUtil.h [profile] Port the runtime to Solaris (retry) 2017-12-14 19:01:04 +00:00
InstrProfilingValue.c [profile] Fix value profile runtime merging issues 2018-04-02 16:57:00 +00:00
InstrProfilingWriter.c [profile] Port the runtime to Solaris (retry) 2017-12-14 19:01:04 +00:00
WindowsMMap.c [profile] Port the runtime to Solaris (retry) 2017-12-14 19:01:04 +00:00
WindowsMMap.h Fix most MSVC warnings in compiler-rt profiling library 2016-06-17 18:12:50 +00:00