[PATCH] D16371: [compiler-rt/profile] Added Hostname to .profdata file

Daniel Waters via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 20 13:40:21 PST 2016


grotdunst created this revision.
grotdunst added reviewers: hfinkel, echristo, dexonsmith, davidxl.
grotdunst added a subscriber: llvm-commits.

This revision facilitates the use of LLVM's instrumentation-based profiling within a cluster computing environment sharing a common file system.  With the current compiler-rt, profiling data can be coherently gathered from multiple processors on the same node by having unique file names based on processor IDs. However, these files did not specify a hostname, meaning that in a shared file system processors from different nodes would write to the same file if they had the same PID. Through this revision, any inclusion of "%h" in a .profdata file name will be translated to the name of the host on which the program is run.

http://reviews.llvm.org/D16371

Files:
  lib/profile/InstrProfilingFile.c
  test/profile/instrprof-hostname.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16371.45411.patch
Type: text/x-patch
Size: 3046 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160120/628ff989/attachment.bin>


More information about the llvm-commits mailing list