[PATCH] D148417: [compiler-rt][profiling] Add an incremental buffer writing mode to libprofile

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 21 14:43:34 PDT 2023


paquette updated this revision to Diff 515923.
paquette edited the summary of this revision.
paquette added a comment.

- Rebase
- Don't assume dst buffer is 0 filled; use `memset` for padding
- Make `__llvm_profile_write_buffer_incremental` return the number of bytes actually written on success. -1 is still the error.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148417/new/

https://reviews.llvm.org/D148417

Files:
  clang/docs/SourceBasedCodeCoverage.rst
  compiler-rt/lib/profile/InstrProfiling.h
  compiler-rt/lib/profile/InstrProfilingBuffer.c
  compiler-rt/lib/profile/InstrProfilingInternal.h
  compiler-rt/lib/profile/InstrProfilingPort.h
  compiler-rt/lib/profile/InstrProfilingWriter.c
  compiler-rt/test/profile/IncrementalWriteMode/Inputs/buffer-to-file.c
  compiler-rt/test/profile/IncrementalWriteMode/Inputs/write-n-bytes-and-compare-against-whole-buffer-write.c
  compiler-rt/test/profile/IncrementalWriteMode/compare-against-whole-buffer-write.c
  compiler-rt/test/profile/IncrementalWriteMode/construct-buffer.c
  compiler-rt/test/profile/IncrementalWriteMode/debug-info-correlate.c
  compiler-rt/test/profile/IncrementalWriteMode/error-0-byte-write.c
  compiler-rt/test/profile/IncrementalWriteMode/error-exhausted-buffer.c
  compiler-rt/test/profile/IncrementalWriteMode/error-uninitialized-state.c
  compiler-rt/test/profile/IncrementalWriteMode/reinitialize-state.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148417.515923.patch
Type: text/x-patch
Size: 39743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230421/c7f44465/attachment.bin>


More information about the llvm-commits mailing list