[PATCH] D87332: [profile] Add %t LLVM_PROFILE_FILE option to substitute $TMPDIR

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 14:50:07 PDT 2020


vsk created this revision.
vsk added a reviewer: ejvaughan.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
vsk requested review of this revision.

Add support for expanding the %t filename specifier in LLVM_PROFILE_FILE
to the TMPDIR environment variable. This is supported on all platforms.

On Darwin, TMPDIR is used to specify a temporary application-specific
scratch directory. When testing apps on remote devices, it can be
challenging for the host device to determine the correct TMPDIR, so it's
helpful to have the runtime do this work.

rdar://68524185


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87332

Files:
  compiler-rt/lib/profile/InstrProfilingFile.c
  compiler-rt/test/profile/instrprof-tmpdir.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87332.290589.patch
Type: text/x-patch
Size: 4978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200908/8fcba3fa/attachment.bin>


More information about the llvm-commits mailing list