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 [PGO] Reduce IO in profile dumping with merging 2017-06-28 16:46:06 +00:00
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 [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
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 [Profile] cleanup: do not reference name directly of vars shared between rt and llvm 2016-07-22 04:08:16 +00:00
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 Fix most MSVC warnings in compiler-rt profiling library 2016-06-17 18:12:50 +00:00