hanchenye-llvm-project/compiler-rt/lib/profile
Matt Davis 89e8af6d96 [compiler-rt] Add a routine to specify the mode used when creating profile dirs.
Summary:
This patch introduces `llvm_profile_set_dir_mode` and `llvm_profile_get_dir_mode` to
the compiler-rt profile API. 

Originally, profile data was placed into a directory that was created with a hard-coded
mode value of 0755 (for non-win32 builds).  In certain cases, it can be helpful to create
directories with a different mode other than 0755.  This patch introduces set/get
routines to allow users to specify a desired mode.  The default remains at 0755.

Reviewers: void, probinson

Reviewed By: probinson

Subscribers: probinson, dberris, cfe-commits

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

llvm-svn: 338456
2018-07-31 23:37:24 +00:00
..
CMakeLists.txt [profile] Support profiling runtime on Fuchsia 2018-07-25 03:01:35 +00:00
GCDAProfiling.c [profile] Support profiling runtime on Fuchsia 2018-07-25 03:01:35 +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] Add interface to get profile filename 2018-07-19 19:03:50 +00:00
InstrProfilingBuffer.c
InstrProfilingFile.c [profile] Support profiling runtime on Fuchsia 2018-07-25 03:01:35 +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] Support profiling runtime on Fuchsia 2018-07-25 03:01:35 +00:00
InstrProfilingNameVar.c
InstrProfilingPlatformDarwin.c
InstrProfilingPlatformFuchsia.c [profile] Support profiling runtime on Fuchsia 2018-07-25 03:01:35 +00:00
InstrProfilingPlatformLinux.c [profile] Support profiling runtime on Fuchsia 2018-07-25 03:01:35 +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
InstrProfilingUtil.c [compiler-rt] Add a routine to specify the mode used when creating profile dirs. 2018-07-31 23:37:24 +00:00
InstrProfilingUtil.h [compiler-rt] Add a routine to specify the mode used when creating profile dirs. 2018-07-31 23:37:24 +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