[PATCH] D117256: [memprof] Introduce a wrapper around MemInfoBlock.

Snehasish Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 13 14:48:35 PST 2022


snehasish created this revision.
snehasish added reviewers: tejohnson, davidxl.
snehasish requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

This patch has two parts:

- Refactor out the MemInfoBlock fields into a macro based MIBEntryDef

format described in the RFC.

- Use the macro based format to add a wrapper around the MemInfoBlock

when stored in the MemProfRecord. This wrapped block can then be
serialized/deserialized based on a schema specified by a list of enums.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117256

Files:
  compiler-rt/include/profile/MemProfData.inc
  compiler-rt/include/profile/MemProfMIB.inc
  compiler-rt/lib/memprof/memprof_allocator.cpp
  compiler-rt/lib/memprof/tests/rawprofile.cpp
  llvm/include/llvm/ProfileData/MemProf.h
  llvm/include/llvm/ProfileData/MemProfData.inc
  llvm/include/llvm/ProfileData/MemProfMIB.inc
  llvm/test/tools/llvm-profdata/memprof-basic.test
  llvm/unittests/ProfileData/MemProfTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117256.399800.patch
Type: text/x-patch
Size: 31968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220113/562b29da/attachment-0001.bin>


More information about the llvm-commits mailing list