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

Snehasish Kumar via All-commits all-commits at lists.llvm.org
Tue Mar 14 11:16:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1bbf5ac3cbd1238c0ee8c5deae2b0c595663ac7
      https://github.com/llvm/llvm-project/commit/a1bbf5ac3cbd1238c0ee8c5deae2b0c595663ac7
  Author: Snehasish Kumar <snehasishk at google.com>
  Date:   2023-03-14 (Tue, 14 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 compiler-rt/lib/memprof/tests/rawprofile.cpp
    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