[all-commits] [llvm/llvm-project] 287177: [memprof] Record BuildIDs in the raw profile.

Snehasish Kumar via All-commits all-commits at lists.llvm.org
Mon Mar 13 12:28:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 287177a47a396ca6cc0bef7696108cdaa0c68e5f
      https://github.com/llvm/llvm-project/commit/287177a47a396ca6cc0bef7696108cdaa0c68e5f
  Author: Snehasish Kumar <snehasishk at google.com>
  Date:   2023-03-13 (Mon, 13 Mar 2023)

  Changed paths:
    M clang/test/CodeGen/Inputs/memprof.exe
    M clang/test/CodeGen/Inputs/memprof.memprofraw
    M compiler-rt/include/profile/MemProfData.inc
    M compiler-rt/lib/memprof/memprof_allocator.cpp
    M compiler-rt/lib/memprof/memprof_rawprofile.cpp
    M compiler-rt/lib/memprof/memprof_rawprofile.h
    M llvm/include/llvm/ProfileData/MemProfData.inc
    M llvm/lib/ProfileData/RawMemProfReader.cpp
    M llvm/test/Transforms/PGOProfile/Inputs/memprof.exe
    M llvm/test/Transforms/PGOProfile/Inputs/memprof.memprofraw
    M llvm/test/Transforms/PGOProfile/Inputs/memprof_pgo.profraw
    M llvm/test/tools/llvm-profdata/Inputs/basic.memprofexe
    M llvm/test/tools/llvm-profdata/Inputs/basic.memprofraw
    A llvm/test/tools/llvm-profdata/Inputs/buildid.memprofexe
    A llvm/test/tools/llvm-profdata/Inputs/buildid.memprofraw
    M llvm/test/tools/llvm-profdata/Inputs/inline.memprofexe
    M llvm/test/tools/llvm-profdata/Inputs/inline.memprofraw
    M llvm/test/tools/llvm-profdata/Inputs/multi.memprofexe
    M llvm/test/tools/llvm-profdata/Inputs/multi.memprofraw
    M llvm/test/tools/llvm-profdata/Inputs/pic.memprofexe
    M llvm/test/tools/llvm-profdata/Inputs/pic.memprofraw
    M llvm/test/tools/llvm-profdata/Inputs/update_memprof_inputs.sh
    M llvm/test/tools/llvm-profdata/memprof-basic.test
    A llvm/test/tools/llvm-profdata/memprof-buildid.test
    M llvm/test/tools/llvm-profdata/memprof-inline.test
    M llvm/test/tools/llvm-profdata/memprof-multi.test

  Log Message:
  -----------
  [memprof] Record BuildIDs in the raw profile.

This patch adds support for recording BuildIds usng the sanitizer
ListOfModules API. We add another entry to the SegmentEntry struct and
change the memprof raw version.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D145190




More information about the All-commits mailing list