llvm-project/compiler-rt/lib/profile
Max Moroz 52fa90a348 This change adds an API to allow setting the flag to indicate that the profile data has been dumped to the file.
Summary:
The main use is for users to disable dumping profile data to the file
for certain processes in case the processes don't have permission to
write to the disks, and trying to do so would result in side effects
such as crashes.

Patch by Yuke Liao (@liaoyuke).

Additional context (Chromium use case):
- https://bugs.chromium.org/p/chromium/issues/detail?id=842424
- https://bugs.chromium.org/p/chromium/issues/detail?id=957655
- https://chromium-review.googlesource.com/c/chromium/src/+/1610093

Reviewers: Dor1s, vsk, davidxl

Reviewed By: Dor1s, davidxl

Subscribers: delcypher, davidxl, sajjadm, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

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

llvm-svn: 361194
2019-05-20 20:02:20 +00:00
..
CMakeLists.txt [InstrProf] Implement static profdata registration 2019-02-08 19:03:50 +00:00
GCDAProfiling.c Silence -Wformat warnings about GetLastError returning ULONG 2019-02-07 23:58:48 +00:00
InstrProfData.inc Fix some gcc warnings in compiler-rt 2019-05-10 14:15:13 +00:00
InstrProfiling.c This change adds an API to allow setting the flag to indicate that the profile data has been dumped to the file. 2019-05-20 20:02:20 +00:00
InstrProfiling.h This change adds an API to allow setting the flag to indicate that the profile data has been dumped to the file. 2019-05-20 20:02:20 +00:00
InstrProfilingBuffer.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
InstrProfilingFile.c Reland compiler-rt support for order file instrumentation. 2019-03-08 15:30:56 +00:00
InstrProfilingInternal.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
InstrProfilingMerge.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
InstrProfilingMergeFile.c Set hidden attribute on lprofMergeValueProfData 2019-02-14 21:38:40 +00:00
InstrProfilingNameVar.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
InstrProfilingPlatformDarwin.c Reland compiler-rt support for order file instrumentation. 2019-03-08 15:30:56 +00:00
InstrProfilingPlatformFuchsia.c [compiler-rt] Set the ZX_VMO_RESIZABLE option for zx_vmo_create 2019-05-02 17:24:53 +00:00
InstrProfilingPlatformLinux.c Reland compiler-rt support for order file instrumentation. 2019-03-08 15:30:56 +00:00
InstrProfilingPlatformOther.c Reland compiler-rt support for order file instrumentation. 2019-03-08 15:30:56 +00:00
InstrProfilingPlatformWindows.c Reland compiler-rt support for order file instrumentation. 2019-03-08 15:30:56 +00:00
InstrProfilingPort.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
InstrProfilingRuntime.cc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
InstrProfilingUtil.c [profile] Provide lprofGetHostName for all windows environments 2019-02-13 07:27:05 +00:00
InstrProfilingUtil.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
InstrProfilingValue.c [InstrProf] Implement static profdata registration 2019-02-08 19:03:50 +00:00
InstrProfilingWriter.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
WindowsMMap.c [GCOV] Close file mapping handle on Windows, so flushed gcda files can be removed while the process is in execution 2018-11-07 09:38:26 +00:00
WindowsMMap.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00