/external/perfetto/src/profiling/memory/ |
D | wrap_allocators.cc | 35 void* wrap_malloc(uint32_t heap_id, void* (*fn)(size_t), size_t size) { in wrap_malloc() argument 37 AHeapProfile_reportAllocation(heap_id, reinterpret_cast<uint64_t>(addr), in wrap_malloc() 42 void* wrap_calloc(uint32_t heap_id, in wrap_calloc() argument 47 AHeapProfile_reportAllocation(heap_id, reinterpret_cast<uint64_t>(addr), in wrap_calloc() 52 void* wrap_memalign(uint32_t heap_id, in wrap_memalign() argument 57 AHeapProfile_reportAllocation(heap_id, reinterpret_cast<uint64_t>(addr), in wrap_memalign() 62 int wrap_posix_memalign(uint32_t heap_id, in wrap_posix_memalign() argument 71 AHeapProfile_reportAllocation(heap_id, reinterpret_cast<uint64_t>(*memptr), in wrap_posix_memalign() 79 void wrap_free(uint32_t heap_id, void (*fn)(void*), void* pointer) { in wrap_free() argument 91 AHeapProfile_reportFree(heap_id, reinterpret_cast<uint64_t>(pointer)); in wrap_free() [all …]
|
D | client_api_benchmark.cc | 28 static uint32_t heap_id = in GetHeapId() local 30 return heap_id; in GetHeapId() 72 const uint32_t heap_id = GetHeapId(); in BM_ClientApiOneTenthAllocation() local 84 AHeapProfile_reportAllocation(heap_id, 0x123, 3200); in BM_ClientApiOneTenthAllocation() 93 const uint32_t heap_id = GetHeapId(); in BM_ClientApiOneHundrethAllocation() local 105 AHeapProfile_reportAllocation(heap_id, 0x123, 320); in BM_ClientApiOneHundrethAllocation() 114 const uint32_t heap_id = GetHeapId(); in BM_ClientApiAlmostNoAllocation() local 126 AHeapProfile_reportAllocation(heap_id, 0x123, 1); in BM_ClientApiAlmostNoAllocation() 135 const uint32_t heap_id = GetHeapId(); in BM_ClientApiSample() local 147 AHeapProfile_reportSample(heap_id, 0x123, 20); in BM_ClientApiSample() [all …]
|
D | wrap_allocators.h | 27 void* wrap_malloc(uint32_t heap_id, void* (*fn)(size_t), size_t size); 28 void* wrap_calloc(uint32_t heap_id, 32 void* wrap_memalign(uint32_t heap_id, 36 int wrap_posix_memalign(uint32_t heap_id, 41 void wrap_free(uint32_t heap_id, void (*fn)(void*), void* pointer); 42 void* wrap_realloc(uint32_t heap_id, 46 void* wrap_pvalloc(uint32_t heap_id, void* (*fn)(size_t), size_t size); 47 void* wrap_valloc(uint32_t heap_id, void* (*fn)(size_t), size_t size); 49 void* wrap_reallocarray(uint32_t heap_id,
|
D | client_api_unittest.cc | 75 uint32_t heap_id = AHeapProfile_registerHeap(AHeapInfo_create("NoClient")); in TEST() local 76 EXPECT_FALSE(AHeapProfile_reportAllocation(heap_id, 1, 1)); in TEST() 80 uint32_t heap_id = in TEST() local 95 EXPECT_TRUE(AHeapProfile_reportAllocation(heap_id, 1, 1)); in TEST() 100 EXPECT_FALSE(AHeapProfile_reportAllocation(heap_id, 1, 1)); in TEST() 104 uint32_t heap_id = in TEST() local 117 EXPECT_TRUE(AHeapProfile_reportAllocation(heap_id, 1, 1)); in TEST() 122 EXPECT_FALSE(AHeapProfile_reportAllocation(heap_id, 1, 1)); in TEST()
|
D | client_api.cc | 197 uint64_t MaybeToggleHeap(uint32_t heap_id, in MaybeToggleHeap() argument 199 AHeapInfo& heap = GetHeap(heap_id); in MaybeToggleHeap() 219 client->RecordHeapInfo(heap_id, &heap.heap_name[0], interval); in MaybeToggleHeap() 350 auto heap_id = static_cast<uint32_t>(info - &g_heaps[0]); in AHeapProfile_registerHeap() local 364 uint64_t interval = MaybeToggleHeap(heap_id, client.get()); in AHeapProfile_registerHeap() 374 return heap_id; in AHeapProfile_registerHeap() 378 AHeapProfile_reportAllocation(uint32_t heap_id, uint64_t id, uint64_t size) { in AHeapProfile_reportAllocation() argument 379 AHeapInfo& heap = GetHeap(heap_id); in AHeapProfile_reportAllocation() 415 client_ptr->RecordHeapInfo(heap_id, "", new_interval); in AHeapProfile_reportAllocation() 422 if (!client->RecordMalloc(heap_id, sampled_alloc_sz, size, id)) { in AHeapProfile_reportAllocation() [all …]
|
D | heapprofd_standalone_client_example.cc | 23 void OtherFn(uint32_t heap_id, uint64_t i) { in OtherFn() argument 24 AHeapProfile_reportAllocation(heap_id, i, i); in OtherFn() 30 uint32_t heap_id = AHeapProfile_registerHeap(AHeapInfo_create("test")); in main() local 32 OtherFn(heap_id, i); in main()
|
D | client.cc | 365 bool Client::RecordMalloc(uint32_t heap_id, in RecordMalloc() argument 389 1 + sequence_number_[heap_id].fetch_add(1, std::memory_order_acq_rel); in RecordMalloc() 390 metadata.heap_id = heap_id; in RecordMalloc() 435 bool Client::RecordFree(uint32_t heap_id, const uint64_t alloc_address) { in RecordFree() argument 442 1 + sequence_number_[heap_id].fetch_add(1, std::memory_order_acq_rel); in RecordFree() 444 current_entry.heap_id = heap_id; in RecordFree() 462 bool Client::RecordHeapInfo(uint32_t heap_id, in RecordHeapInfo() argument 470 hnr.heap_id = heap_id; in RecordHeapInfo()
|
D | heapprofd_end_to_end_test.cc | 168 static uint32_t heap_id = AHeapProfile_registerHeap(AHeapInfo_create("test")); in CustomAllocateAndFree() local 169 AHeapProfile_reportAllocation(heap_id, 0x1234abc, bytes); in CustomAllocateAndFree() 170 AHeapProfile_reportFree(heap_id, 0x1234abc); in CustomAllocateAndFree() 174 static uint32_t heap_id = in SecondaryAllocAndFree() local 176 AHeapProfile_reportAllocation(heap_id, 0x1234abc, bytes); in SecondaryAllocAndFree() 177 AHeapProfile_reportFree(heap_id, 0x1234abc); in SecondaryAllocAndFree() 288 static uint32_t heap_id = in RunAccurateMalloc() local 304 if (!AHeapProfile_reportAllocation(heap_id, 0x1, 10u)) in RunAccurateMalloc() 306 AHeapProfile_reportFree(heap_id, 0x1); in RunAccurateMalloc() 307 if (!AHeapProfile_reportAllocation(heap_id, 0x2, 15u)) in RunAccurateMalloc() [all …]
|
D | client.h | 80 bool RecordMalloc(uint32_t heap_id, 86 bool RecordFree(uint32_t heap_id, 88 bool RecordHeapInfo(uint32_t heap_id,
|
D | heapprofd_producer.h | 202 HeapInfo& GetHeapInfo(uint32_t heap_id) { in GetHeapInfo() 203 auto it = heap_infos.find(heap_id); in GetHeapInfo() 206 it, std::piecewise_construct, std::forward_as_tuple(heap_id), in GetHeapInfo() 212 HeapTracker& GetHeapTracker(uint32_t heap_id) { in GetHeapTracker() 213 return GetHeapInfo(heap_id).heap_tracker; in GetHeapTracker()
|
D | wire_protocol.h | 126 PERFETTO_CROSS_ABI_ALIGNED(uint32_t) heap_id; 134 PERFETTO_CROSS_ABI_ALIGNED(uint32_t) heap_id; 139 PERFETTO_CROSS_ABI_ALIGNED(uint32_t) heap_id;
|
D | wire_protocol_unittest.cc | 34 one.clock_monotonic_coarse_timestamp, one.heap_id, in operator ==() 39 other.heap_id, other.arch) && in operator ==() 46 return (std::tie(one.sequence_number, one.addr, one.heap_id) == in operator ==() 47 std::tie(other.sequence_number, other.addr, other.heap_id)); in operator ==()
|
D | heapprofd_producer.cc | 1063 streaming_alloc->add_heap_id(alloc_metadata.heap_id); in HandleAllocRecord() 1086 process_state.GetHeapTracker(alloc_rec->alloc_metadata.heap_id); in HandleAllocRecord() 1126 streaming_free->add_heap_id(free_rec.entry.heap_id); in HandleFreeRecord() 1134 HeapTracker& heap_tracker = process_state.GetHeapTracker(entry.heap_id); in HandleFreeRecord() 1156 if (entry.heap_id == 0) { in HandleHeapNameRecord() 1160 ProcessState::HeapInfo& hi = process_state.GetHeapInfo(entry.heap_id); in HandleHeapNameRecord() 1168 ProcessState::HeapInfo& hi = process_state.GetHeapInfo(entry.heap_id); in HandleHeapNameRecord()
|
/external/igt-gpu-tools/tests/ |
D | ion_fb.c | 37 const int heap_id = ion_get_heap_id(ion_fd, ION_HEAP_TYPE_SYSTEM); in make_fb_with_fds() local 38 igt_assert(heap_id != -1); in make_fb_with_fds() 43 heap_id, in make_fb_with_fds() 77 const int heap_id = ion_get_heap_id(ion_fd, ION_HEAP_TYPE_SYSTEM); in clone_with_fds() local 78 igt_assert(heap_id != -1); in clone_with_fds() 83 heap_id, in clone_with_fds() 123 const int heap_id = ion_get_heap_id(ion_fd, ION_HEAP_TYPE_SYSTEM); in mmap_with_buffer() local 124 igt_assert(heap_id != -1); in mmap_with_buffer() 132 heap_id, in mmap_with_buffer()
|
/external/igt-gpu-tools/lib/ |
D | ion.c | 31 ret = hi->heap_id; in ion_get_heap_id() 43 int ion_alloc_one_fd(int ion_fd, size_t size, int heap_id, int *ion_buffer_fd) in ion_alloc_one_fd() argument 45 if (heap_id < 0 || heap_id >= kBitsInAnInt) in ion_alloc_one_fd() 51 const int heap_mask = 1 << heap_id; in ion_alloc_one_fd()
|
D | ion.h | 24 int ion_alloc_one_fd(int ion_fd, size_t size, int heap_id, int *ion_buffer_fd);
|
/external/linux-kselftest/tools/testing/selftests/android/ion/ |
D | ionutils.c | 49 unsigned int heap_id; in ion_export_buffer_fd() local 80 heap_id = MAX_HEAP_COUNT + 1; in ion_export_buffer_fd() 83 heap_id = heap_data[i].heap_id; in ion_export_buffer_fd() 88 if (heap_id > MAX_HEAP_COUNT) { in ion_export_buffer_fd() 95 alloc_data.heap_id_mask = 1 << heap_id; in ion_export_buffer_fd()
|
D | ion.h | 95 __u32 heap_id; member
|
/external/perfetto/src/profiling/memory/include/perfetto/ |
D | heap_profile.h | 156 bool AHeapProfile_reportAllocation(uint32_t heap_id, 173 bool AHeapProfile_reportSample(uint32_t heap_id, 186 void AHeapProfile_reportFree(uint32_t heap_id, uint64_t alloc_id);
|
/external/perfetto/protos/perfetto/trace/profiling/ |
D | profile_packet.proto | 222 repeated uint32 heap_id = 5; field 231 repeated uint32 heap_id = 2; field
|
/external/perfetto/protos/perfetto/trace/ |
D | perfetto_trace.proto | 11110 repeated uint32 heap_id = 5; field 11119 repeated uint32 heap_id = 2; field
|