| /llvm-project-15.0.7/llvm/test/Instrumentation/HeapProfiler/ |
| H A D | scale-granularity.ll | 1 ; Test that the scale (-memprof-mapping-scale) and granularity (-memprof-mapping-granularity) comma… 3 ; RUN: opt < %s -memprof -memprof-module -memprof-mapping-granularity 32 -S | FileCheck --check-pre… 4 ; RUN: opt < %s -memprof -memprof-module -memprof-mapping-scale 1 -S | FileCheck --check-prefix=CHE… 5 ; RUN: opt < %s -memprof -memprof-module -memprof-mapping-granularity 16 -memprof-mapping-scale 0 -…
|
| H A D | instrumentation-use-callbacks.ll | 1 ; Test memprof internal compiler flags: 2 ; -memprof-use-callbacks 3 ; -memprof-memory-access-callback-prefix 5 ; RUN: opt < %s -memprof -memprof-module -memprof-use-callbacks -S | FileCheck %s --check-prefix=CH… 6 ; RUN: opt < %s -memprof -memprof-module -memprof-use-callbacks -memprof-memory-access-callback-pre… 7 ; RUN: opt < %s -memprof -memprof-module -memprof-use-callbacks=false -S | FileCheck %s --check-pre… 8 ; RUN: opt < %s -memprof -memprof-module -S | FileCheck %s --check-prefix=CHECK-INLINE
|
| H A D | basic.ll | 3 ; RUN: opt < %s -memprof -memprof-module -S | FileCheck --check-prefixes=CHECK,CHECK-S3 %s 4 ; RUN: opt < %s -memprof -memprof-module -memprof-mapping-scale=5 -S | FileCheck --check-prefixes=C… 6 …ed the requires since both memprof and memprof-module require reading module level metadata which … 7 ; RUN: opt < %s -passes='function(memprof),module(memprof-module)' -S | FileCheck --check-prefixes=… 8 ; RUN: opt < %s -passes='function(memprof),module(memprof-module)' -memprof-mapping-scale=5 -S | Fi… 13 ; CHECK: @llvm.used = appending global [1 x i8*] [i8* bitcast (void ()* @memprof.module_ctor to i8*… 14 … [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 1, void ()* @memprof.module_ctor, i8* … 132 ; memprof should not instrument functions with available_externally linkage. 166 ; have the element-atomic property. Eventually, memprof will have to be enhanced to lower 180 ; CHECK: define internal void @memprof.module_ctor()
|
| H A D | filename.ll | 4 ; RUN: opt < %s -mtriple=x86_64-unknown-linux -memprof -memprof-module -S | FileCheck --check-prefi… 12 !0 = !{i32 1, !"MemProfProfileFilename", !"/tmp/memprof.profraw"} 15 ; CHECK: @__memprof_profile_filename = constant [21 x i8] c"/tmp/memprof.profraw\00", comdat
|
| H A D | version-mismatch-check.ll | 4 ; RUN: opt < %s -memprof-module -S | FileCheck %s 5 ; RUN: opt < %s -memprof-module -memprof-guard-against-version-mismatch=0 -S | FileCheck %s --check… 10 ; CHECK-LABEL: define internal void @memprof.module_ctor()
|
| H A D | shadow.ll | 1 ; RUN: opt < %s -passes='function(memprof),module(memprof-module)' -S | FileCheck --check-prefixes=… 5 ; RUN: opt < %t.pic.ll -passes='function(memprof),module(memprof-module)' -S | FileCheck --check-pr…
|
| H A D | stack.ll | 3 ; RUN: opt < %s -passes='function(memprof),module(memprof-module)' -S | FileCheck --check-prefixes=… 4 ; RUN: opt < %s -passes='function(memprof),module(memprof-module)' -memprof-instrument-stack -S | F…
|
| H A D | no-instrumentation.ll | 4 ; RUN: opt < %s -passes='function(memprof),module(memprof-module)' -S -debug 2>&1 | FileCheck %s 17 ;; Confirm we ran memprof and decided not to instrument
|
| H A D | masked-load-store.ll | 1 ; RUN: opt < %s -memprof -memprof-use-callbacks -S \ 3 ; RUN: opt < %s -memprof -memprof-use-callbacks -memprof-instrument-reads=0 -S \ 5 ; RUN: opt < %s -memprof -memprof-use-callbacks -memprof-instrument-writes=0 -S \ 7 ; RUN: opt < %s -memprof -memprof-use-callbacks -memprof-instrument-reads=0 -memprof-instrument-wri…
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | CMakeLists.txt | 118 add_compiler_rt_component(memprof) 129 add_compiler_rt_runtime(clang_rt.memprof 137 PARENT_TARGET memprof) 145 PARENT_TARGET memprof) 153 PARENT_TARGET memprof) 172 add_compiler_rt_runtime(clang_rt.memprof 180 … # add_dependencies(clang_rt.memprof-dynamic-${arch} clang_rt.memprof-dynamic-${arch}-version-list) 189 PARENT_TARGET memprof) 195 add_sanitizer_rt_symbols(clang_rt.memprof 197 EXTRA memprof.syms.extra) [all …]
|
| H A D | memprof_mibmap.h | 14 ::llvm::memprof::MemInfoBlock mib; 22 void InsertOrMerge(const uptr Id, const ::llvm::memprof::MemInfoBlock &Block,
|
| H A D | README.txt | 8 memprof_*.{cc,h} : Sources of the memprof runtime library. 17 make check-memprof
|
| H A D | memprof_rawprofile.cpp | 18 using ::llvm::memprof::MemInfoBlock; 19 using SegmentEntry = ::llvm::memprof::SegmentEntry; 20 using Header = ::llvm::memprof::Header;
|
| /llvm-project-15.0.7/llvm/test/Verifier/ |
| H A D | memprof-metadata-bad.ll | 1 ; Test that incorrect memprof and callsite metadata fail verification. 6 %call1 = call noalias dereferenceable_or_null(40) i8* @malloc(i64 noundef 40), !memprof !0 7 %call2 = call noalias dereferenceable_or_null(40) i8* @malloc(i64 noundef 40), !memprof !1 8 %call3 = call noalias dereferenceable_or_null(40) i8* @malloc(i64 noundef 40), !memprof !3 28 %1 = add i32 0, 1, !memprof !0, !callsite !9 34 ; CHECK: !memprof annotations should have at least 1 metadata operand (MemInfoBlock) 37 ; CHECK: !memprof MemInfoBlock first operand should not be null 40 ; CHECK: !memprof MemInfoBlock first operand should be an MDNode 43 ; CHECK: Each !memprof MemInfoBlock should have at least 2 operands 47 ; CHECK: Not all !memprof MemInfoBlock operands 1 to N are MDString [all …]
|
| H A D | memprof-metadata-good.ll | 1 ; Test that well-formed memprof and callsite metadata pass verification. 6 …%call = call noalias dereferenceable_or_null(40) i8* @malloc(i64 noundef 40), !memprof !0, !callsi… 26 ; !memprof metadata should be able to support an arbitrary list of string tags.
|
| /llvm-project-15.0.7/llvm/include/llvm/ProfileData/ |
| H A D | InstrProfWriter.h | 46 llvm::MapVector<GlobalValue::GUID, memprof::IndexedMemProfRecord> 51 llvm::MapVector<memprof::FrameId, memprof::Frame> MemProfFrameData; 75 const memprof::IndexedMemProfRecord &Record); 79 bool addMemProfFrame(const memprof::FrameId, const memprof::Frame &F,
|
| H A D | MemProfData.inc | 29 // A 64-bit magic number to uniquely identify the raw binary memprof profile file. 38 namespace memprof { 39 // A struct describing the header used for the raw binary memprof profile format. 168 } // namespace memprof
|
| H A D | MIBEntryDef.inc | 9 * This file defines the macros for memprof profiling data structures. 10 * Eg. usage to define the memprof meminfoblock struct:
|
| /llvm-project-15.0.7/llvm/unittests/ProfileData/ |
| H A D | MemProfTest.cpp | 27 using ::llvm::memprof::CallStackMap; 28 using ::llvm::memprof::Frame; 29 using ::llvm::memprof::FrameId; 30 using ::llvm::memprof::IndexedMemProfRecord; 31 using ::llvm::memprof::MemInfoBlock; 32 using ::llvm::memprof::MemProfRecord; 33 using ::llvm::memprof::MemProfSchema; 34 using ::llvm::memprof::Meta; 35 using ::llvm::memprof::PortableMemInfoBlock; 36 using ::llvm::memprof::RawMemProfReader; [all …]
|
| H A D | InstrProfTest.cpp | 227 using ::llvm::memprof::IndexedMemProfRecord; 228 using ::llvm::memprof::MemInfoBlock; 230 llvm::DenseMap<::llvm::memprof::FrameId, ::llvm::memprof::Frame>; 249 llvm::memprof::IndexedMemProfRecord MR; in makeRecord() 258 const memprof::MemProfRecord &Got = arg; 315 const memprof::MemProfRecord &Record = RecordOr.get(); in TEST_F() 317 memprof::FrameId LastUnmappedFrameId = 0; in TEST_F() 324 return memprof::Frame(0, 0, 0, false); in TEST_F() 403 const memprof::MemProfRecord &Record = RecordOr.get(); in TEST_F() 405 memprof::FrameId LastUnmappedFrameId = 0; in TEST_F() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/memprof/ |
| H A D | CMakeLists.txt | 16 list(APPEND MEMPROF_TEST_DEPS memprof) 49 add_lit_testsuite(check-memprof "Running the MemProfiler tests" 52 set_target_properties(check-memprof PROPERTIES FOLDER "Compiler-RT Misc") 54 add_lit_testsuite(check-memprof-dynamic 59 set_target_properties(check-memprof-dynamic
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-profdata/ |
| H A D | memprof-merge.test | 3 The input memprof and instrumented raw profiles were generated from the following source code: 19 Steps to collect the memprof raw profile and the instrprof raw profile: 28 # Collect memprof profile. 41 have a way to display the contents of the memprof indexed format yet.
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | MemoryProfileInfo.cpp | 17 using namespace llvm::memprof; 34 AllocationType llvm::memprof::getAllocType(uint64_t MaxAccessCount, in getAllocType() 44 MDNode *llvm::memprof::buildCallstackMetadata(ArrayRef<uint64_t> CallStack, in buildCallstackMetadata() 55 MDNode *llvm::memprof::getMIBStackNode(const MDNode *MIB) { in getMIBStackNode() 61 AllocationType llvm::memprof::getMIBAllocType(const MDNode *MIB) { in getMIBAllocType()
|
| /llvm-project-15.0.7/llvm/lib/ProfileData/ |
| H A D | InstrProfWriter.cpp | 257 const Function::GUID Id, const memprof::IndexedMemProfRecord &Record) { in addMemProfRecord() 263 memprof::IndexedMemProfRecord &Existing = Result.first->second; in addMemProfRecord() 267 bool InstrProfWriter::addMemProfFrame(const memprof::FrameId Id, in addMemProfFrame() 268 const memprof::Frame &Frame, in addMemProfFrame() 425 auto Schema = memprof::PortableMemInfoBlock::getSchema(); in writeImpl() 431 auto RecordWriter = std::make_unique<memprof::RecordWriterTrait>(); in writeImpl() 433 OnDiskChainedHashTableGenerator<memprof::RecordWriterTrait> in writeImpl() 445 auto FrameWriter = std::make_unique<memprof::FrameWriterTrait>(); in writeImpl() 446 OnDiskChainedHashTableGenerator<memprof::FrameWriterTrait> in writeImpl()
|
| /llvm-project-15.0.7/compiler-rt/include/profile/ |
| H A D | MemProfData.inc | 29 // A 64-bit magic number to uniquely identify the raw binary memprof profile file. 38 namespace memprof { 39 // A struct describing the header used for the raw binary memprof profile format. 168 } // namespace memprof
|